SaplingNote

Type Alias SaplingNote 

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

Sapling note.

Aliased Type§

pub struct SaplingNote { /* private fields */ }

Implementations§

Source§

impl SaplingNote

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 SaplingNote

Source§

const SHIELDED_PROTOCOL: ShieldedProtocol = ShieldedProtocol::Sapling

Note’s associated shielded protocol.
Source§

type ZcashNote = Note

Decrypted note type.
Source§

type Nullifier = <WalletNote<Note, Nullifier> 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§

impl OutputInterface for SaplingNote

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.