mirror of https://github.com/zcash/orchard.git
Add random_seed getter fn
This commit is contained in:
parent
45bcc16f80
commit
22e7ba14a2
|
@ -10,6 +10,7 @@ and this project adheres to Rust's notion of
|
||||||
- `note`:
|
- `note`:
|
||||||
- `RandomSeed` and its functions `from_bytes` and `as_bytes` now public
|
- `RandomSeed` and its functions `from_bytes` and `as_bytes` now public
|
||||||
- `Note::from_parts` now public
|
- `Note::from_parts` now public
|
||||||
|
- added pub fn `random_seed`
|
||||||
- `keys::Diversifier::from_bytes` now public
|
- `keys::Diversifier::from_bytes` now public
|
||||||
|
|
||||||
## [0.2.0] - 2022-06-24
|
## [0.2.0] - 2022-06-24
|
||||||
|
|
|
@ -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.
|
/// Generates a new note.
|
||||||
///
|
///
|
||||||
/// Defined in [Zcash Protocol Spec § 4.7.3: Sending Notes (Orchard)][orchardsend].
|
/// Defined in [Zcash Protocol Spec § 4.7.3: Sending Notes (Orchard)][orchardsend].
|
||||||
|
|
Loading…
Reference in New Issue