mirror of https://github.com/zcash/orchard.git
Merge pull request #424 from nuttycom/ivk_prepare
Add `IncomingViewingKey::prepare` convenience method.
This commit is contained in:
commit
2b9c9a1deb
|
@ -10,6 +10,7 @@ and this project adheres to Rust's notion of
|
|||
## [0.8.0] - 2024-03-25
|
||||
|
||||
### Added
|
||||
- `orchard::keys::IncomingViewingKey::prepare`
|
||||
- `orchard::note::Rho`
|
||||
- `orchard::action::Action::rho`
|
||||
- `orchard::note_encryption::CompactAction::rho`
|
||||
|
|
|
@ -663,6 +663,11 @@ impl IncomingViewingKey {
|
|||
pub fn address(&self, d: Diversifier) -> Address {
|
||||
self.ivk.address(d)
|
||||
}
|
||||
|
||||
/// Returns the [`PreparedIncomingViewingKey`] for this [`IncomingViewingKey`].
|
||||
pub fn prepare(&self) -> PreparedIncomingViewingKey {
|
||||
PreparedIncomingViewingKey::new(self)
|
||||
}
|
||||
}
|
||||
|
||||
/// An Orchard incoming viewing key that has been precomputed for trial decryption.
|
||||
|
|
Loading…
Reference in New Issue