diff --git a/src/util/bip32.rs b/src/util/bip32.rs index 3fd8fc2b..eba3a1da 100644 --- a/src/util/bip32.rs +++ b/src/util/bip32.rs @@ -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(&self, secp: &Secp256k1) -> XpubIdentifier { 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 { let mut engine = XpubIdentifier::engine(); self.public_key.write_into(&mut engine);