ScanningKeyOps

Trait ScanningKeyOps 

Source
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§

Source

fn prepare(&self) -> D::IncomingViewingKey

Prepare the key for use in batch trial decryption.

Source

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.

Source

fn key_scope(&self) -> Option<Scope>

Returns the zip32::Scope for which this key was derived, if known.

Source

fn nf(&self, note: &D::Note, note_position: Position) -> Option<Nf>

Produces the nullifier for the specified note and witness, if possible.

IVK-based implementations of this trait cannot successfully derive nullifiers, in which this function will always return None.

Implementations on Foreign Types§

Source§

impl<D: Domain, Nf, K: ScanningKeyOps<D, Nf>> ScanningKeyOps<D, Nf> for &K

Source§

fn prepare(&self) -> D::IncomingViewingKey

Source§

fn account_id(&self) -> &AccountId

Source§

fn key_scope(&self) -> Option<Scope>

Source§

fn nf(&self, note: &D::Note, note_position: Position) -> Option<Nf>

Implementors§