Minor documentation fixes.
Co-authored-by: ying tong <yingtong@z.cash> Co-authored-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
60785a1d7a
commit
d6484da088
|
@ -26,7 +26,7 @@ and this library adheres to Rust's notion of
|
|||
- `zcash_primitives::zip32::sapling` has been added and now contains
|
||||
all of the Sapling zip32 key types that were previously located in
|
||||
`zcash_primitives::zip32` directly. The base `zip32` module reexports
|
||||
the moved types for backwards compability.
|
||||
the moved types for backwards compatibility.
|
||||
- `DiversifierKey::{from_bytes, as_bytes}`
|
||||
- `ExtendedSpendingKey::{from_bytes, to_bytes}`
|
||||
- `zcash_primitives::transaction::Builder` constructors:
|
||||
|
|
|
@ -62,7 +62,7 @@ pub fn sapling_default_address(
|
|||
sapling_find_address(fvk, dk, DiversifierIndex::new()).unwrap()
|
||||
}
|
||||
|
||||
/// Convenience function cfor child OVK derivation
|
||||
/// Convenience function for child OVK derivation
|
||||
fn derive_child_ovk(parent: &OutgoingViewingKey, i_l: &[u8]) -> OutgoingViewingKey {
|
||||
let mut ovk = [0u8; 32];
|
||||
ovk.copy_from_slice(&prf_expand_vec(i_l, &[&[0x15], &parent.0]).as_bytes()[..32]);
|
||||
|
@ -357,7 +357,7 @@ impl ExtendedSpendingKey {
|
|||
result
|
||||
}
|
||||
|
||||
/// Writes the encoded form of the extended spending key as define in
|
||||
/// Writes the encoded form of the extended spending key as defined in
|
||||
/// [ZIP 32](https://zips.z.cash/zip-0032) to the provided writer.
|
||||
pub fn write<W: Write>(&self, mut writer: W) -> io::Result<()> {
|
||||
writer.write_all(&self.to_bytes())
|
||||
|
|
Loading…
Reference in New Issue