diff --git a/bitcoin/src/bip32.rs b/bitcoin/src/bip32.rs index 8f11e67b8..34d93833a 100644 --- a/bitcoin/src/bip32.rs +++ b/bitcoin/src/bip32.rs @@ -880,7 +880,7 @@ impl Xpub { ret } - /// Returns the HASH160 of the chaincode + /// Returns the HASH160 of the public key component of the xpub pub fn identifier(&self) -> XKeyIdentifier { XKeyIdentifier(hash160::Hash::hash(&self.public_key.serialize())) }