pub trait NoteInterface: OutputInterface {
type ZcashNote;
type Nullifier: Copy;
const SHIELDED_PROTOCOL: ShieldedProtocol;
// Required methods
fn note(&self) -> &Self::ZcashNote;
fn nullifier(&self) -> Option<Self::Nullifier>;
fn position(&self) -> Option<Position>;
fn memo(&self) -> &Memo;
}Expand description
Provides a common API for all shielded output types.
Required Associated Constants§
Sourceconst SHIELDED_PROTOCOL: ShieldedProtocol
const SHIELDED_PROTOCOL: ShieldedProtocol
Note’s associated shielded protocol.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.