Skip to main content

IronwoodNote

Type Alias IronwoodNote 

Source
pub type IronwoodNote = WalletNote<Note, Nullifier, Ironwood>;
Expand description

Ironwood note. Shares Orchard’s note and nullifier types (version V3) but belongs to the Ironwood pool with its own note commitment tree.

Aliased Type§

pub struct IronwoodNote { /* private fields */ }

Implementations§

Source§

impl IronwoodNote

Source

pub fn read<R: Read>(reader: R) -> Result<Self>

Deserialize into reader

Source

pub fn write<W: Write>(&self, writer: W) -> Result<()>

Serialize into writer

Trait Implementations§

Source§

impl NoteInterface for IronwoodNote

Source§

const SHIELDED_PROTOCOL: ShieldedPool = ShieldedPool::Ironwood

Note’s associated shielded protocol.
Source§

type ZcashNote = Note

Decrypted note type.
Source§

type Nullifier = <WalletNote<Note, Nullifier, Ironwood> as OutputInterface>::Input

Nullifier type.
Source§

fn note(&self) -> &Self::ZcashNote

Decrypted note with recipient and value
Source§

fn nullifier(&self) -> Option<Self::Nullifier>

Derived nullifier
Source§

fn position(&self) -> Option<Position>

Commitment tree leaf position
Source§

fn memo(&self) -> &Memo

Memo
Source§

fn refetch_nullifier_ranges(&self) -> &[Range<BlockHeight>]

List of block ranges where the nullifiers must be re-fetched to guarantee the note has not been spent. These scan ranges were marked ScannedWithoutMapping or RefetchingNullifiers priority before this note was scanned, meaning the nullifiers were discarded due to memory constraints and will be re-fetched later in the sync process.
Source§

impl OutputInterface for IronwoodNote

Source§

const POOL_TYPE: PoolType

Output’s associated pool type.
Source§

type KeyId = KeyId

Identifier for key used to decrypt output.
Source§

type Input = Nullifier

Transaction input type associated with spend detection of output.
Source§

fn output_id(&self) -> OutputId

Output ID.
Source§

fn key_id(&self) -> KeyId

Identifier for key used to decrypt output.
Source§

fn spending_transaction(&self) -> Option<TxId>

Transaction ID of transaction this output was spent. If None, output is not spent.
Source§

fn set_spending_transaction(&mut self, spending_transaction: Option<TxId>)

Sets spending transaction.
Source§

fn value(&self) -> u64

Note value..
Returns the type used to link with transaction inputs for spend detection. Returns None in the case the nullifier is not available for shielded outputs. Read more
Source§

fn transaction_inputs(transaction: &WalletTransaction) -> Vec<&Self::Input>

Inputs within transaction used to detect an output’s spend status. Read more
Source§

fn transaction_outputs(transaction: &WalletTransaction) -> &[Self]

Outputs within transaction.