diff --git a/CHANGELOG.md b/CHANGELOG.md index c01f0981..f5597373 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to Rust's notion of - `note`: - `RandomSeed` and its functions `from_bytes` and `as_bytes` now public - `Note::from_parts` now public + - added pub fn `random_seed` - `keys::Diversifier::from_bytes` now public ## [0.2.0] - 2022-06-24 diff --git a/src/note.rs b/src/note.rs index adbcaa76..9e4f5bda 100644 --- a/src/note.rs +++ b/src/note.rs @@ -126,6 +126,11 @@ impl Note { } } + ///Get the seed randomness used by the note + pub fn random_seed(&self) -> &RandomSeed { + &self.rseed + } + /// Generates a new note. /// /// Defined in [Zcash Protocol Spec ยง 4.7.3: Sending Notes (Orchard)][orchardsend].