pub trait ScanningKeyOps<D: Domain, Nf> {
// Required methods
fn prepare(&self) -> D::IncomingViewingKey;
fn account_id(&self) -> &AccountId;
fn key_scope(&self) -> Option<Scope>;
fn nf(&self, note: &D::Note, note_position: Position) -> Option<Nf>;
}Expand description
A key that can be used to perform trial decryption and nullifier computation for a CompactSaplingOutput or CompactOrchardAction.
Required Methods§
Sourcefn prepare(&self) -> D::IncomingViewingKey
fn prepare(&self) -> D::IncomingViewingKey
Prepare the key for use in batch trial decryption.
Sourcefn account_id(&self) -> &AccountId
fn account_id(&self) -> &AccountId
Returns the account identifier for this key. An account identifier corresponds to at most a single unified spending key’s worth of spend authority, such that both received notes and change spendable by that spending authority will be interpreted as belonging to that account.
Sourcefn key_scope(&self) -> Option<Scope>
fn key_scope(&self) -> Option<Scope>
Returns the zip32::Scope for which this key was derived, if known.