diff --git a/src/note.rs b/src/note.rs index d35fb4ca8e..dbfa575c10 100644 --- a/src/note.rs +++ b/src/note.rs @@ -1,5 +1,23 @@ use crate::{keys::FullViewingKey, value::NoteValue, Address}; +/// The ZIP 212 seed randomness for a note. +#[derive(Debug)] +struct RandomSeed([u8; 32]); + +impl RandomSeed { + fn psi(&self) -> () { + todo!() + } + + fn rcm(&self) -> () { + todo!() + } + + fn esk(&self) -> () { + todo!() + } +} + /// A discrete amount of funds received by an address. #[derive(Debug)] pub struct Note { @@ -7,6 +25,15 @@ pub struct Note { recipient: Address, /// The value of this note. value: NoteValue, + /// A unique creation ID for this note. + /// + /// This is set to the nullifier of the note that was spent in the [`Action`] that + /// created this note. + /// + /// [`Action`]: crate::bundle::Action + rho: Nullifier, + /// The seed randomness for various note components. + rseed: RandomSeed, } impl Note {