Add random_seed getter fn

This commit is contained in:
Hazel OHearn 2022-07-07 11:05:07 -03:00
parent 45bcc16f80
commit 22e7ba14a2
No known key found for this signature in database
GPG Key ID: 8B008A957E71F0F8
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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].