diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a6e53c..d3d7af6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ and this library adheres to Rust's notion of - `SpendAuthorizingKey::to_bytes` - `SpendValidatingKey::to_bytes` - `sapling_crypto::value::ValueSum::to_raw` +- `sapling_crypto::zip32::DiversifiableFullViewingKey::to_internal_fvk` ### Fixed - `sapling_crypto::prover::OutputProver::prepare_circuit` now takes `esk` as an diff --git a/src/zip32.rs b/src/zip32.rs index c2b7ea6..ea744f4 100644 --- a/src/zip32.rs +++ b/src/zip32.rs @@ -705,6 +705,11 @@ impl DiversifiableFullViewingKey { &self.fvk } + /// Returns the internal [`FullViewingKey`] component of this diversifiable full viewing key. + pub fn to_internal_fvk(&self) -> FullViewingKey { + self.derive_internal().fvk + } + /// Derives a nullifier-deriving key for the provided scope. /// /// This API is provided so that nullifiers for change notes can be correctly computed.