Merge pull request #488 from sgeisler/2020-10-bip32-doc-fix
Bip32 documentation fix
This commit is contained in:
commit
d92ca87c69
|
@ -465,7 +465,7 @@ impl ExtendedPrivKey {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the HASH160 of the chaincode
|
/// Returns the HASH160 of the public key belonging to the xpriv
|
||||||
pub fn identifier<C: secp256k1::Signing>(&self, secp: &Secp256k1<C>) -> XpubIdentifier {
|
pub fn identifier<C: secp256k1::Signing>(&self, secp: &Secp256k1<C>) -> XpubIdentifier {
|
||||||
ExtendedPubKey::from_private(secp, self).identifier()
|
ExtendedPubKey::from_private(secp, self).identifier()
|
||||||
}
|
}
|
||||||
|
@ -548,7 +548,7 @@ impl ExtendedPubKey {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the HASH160 of the chaincode
|
/// Returns the HASH160 of the public key of the xpub
|
||||||
pub fn identifier(&self) -> XpubIdentifier {
|
pub fn identifier(&self) -> XpubIdentifier {
|
||||||
let mut engine = XpubIdentifier::engine();
|
let mut engine = XpubIdentifier::engine();
|
||||||
self.public_key.write_into(&mut engine);
|
self.public_key.write_into(&mut engine);
|
||||||
|
|
Loading…
Reference in New Issue