pub type SaplingNote = WalletNote<Note, Nullifier>;Expand description
Sapling note.
Aliased Type§
pub struct SaplingNote { /* private fields */ }Implementations§
Trait Implementations§
Source§impl NoteInterface for SaplingNote
impl NoteInterface for SaplingNote
Source§const SHIELDED_PROTOCOL: ShieldedProtocol = ShieldedProtocol::Sapling
const SHIELDED_PROTOCOL: ShieldedProtocol = ShieldedProtocol::Sapling
Note’s associated shielded protocol.
Source§type Nullifier = <WalletNote<Note, Nullifier> as OutputInterface>::Input
type Nullifier = <WalletNote<Note, Nullifier> as OutputInterface>::Input
Nullifier type.
Source§impl OutputInterface for SaplingNote
impl OutputInterface for SaplingNote
Source§fn spending_transaction(&self) -> Option<TxId>
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>)
fn set_spending_transaction(&mut self, spending_transaction: Option<TxId>)
Sets spending transaction.
Source§fn spend_link(&self) -> Option<Self::Input>
fn spend_link(&self) -> Option<Self::Input>
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 moreSource§fn transaction_inputs(transaction: &WalletTransaction) -> Vec<&Self::Input>
fn transaction_inputs(transaction: &WalletTransaction) -> Vec<&Self::Input>
Inputs within
transaction used to detect an output’s spend status. Read moreSource§fn transaction_outputs(transaction: &WalletTransaction) -> &[Self]
fn transaction_outputs(transaction: &WalletTransaction) -> &[Self]
Outputs within
transaction.