-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1317 from Oscar-Pepper/zingo_sync_scanner
Zingo sync scanner module
- Loading branch information
Showing
16 changed files
with
1,050 additions
and
68 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
//! Traits for interfacing a wallet with the sync engine | ||
use crate::SyncState; | ||
use std::collections::HashMap; | ||
use std::fmt::Debug; | ||
|
||
use zcash_client_backend::keys::UnifiedFullViewingKey; | ||
use zcash_primitives::zip32::AccountId; | ||
|
||
/// Temporary dump for all neccessary wallet functionality for PoC | ||
pub trait SyncWallet { | ||
/// Errors associated with interacting with the wallet data | ||
type Error: std::fmt::Debug; | ||
/// Errors associated with interfacing the sync engine with wallet data | ||
type Error: Debug; | ||
|
||
/// Mutable reference to the wallet sync state | ||
fn set_sync_state(&mut self) -> Result<&mut SyncState, Self::Error>; | ||
/// Returns all unified full viewing keys known to this wallet. | ||
fn get_unified_full_viewing_keys( | ||
&self, | ||
) -> Result<HashMap<AccountId, UnifiedFullViewingKey>, Self::Error>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.