Merge pull request #488 from sgeisler/2020-10-bip32-doc-fix

Bip32 documentation fix
This commit is contained in:
Steven Roose 2020-10-07 21:15:14 +02:00 committed by GitHub
commit d92ca87c69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);