Merge rust-bitcoin/rust-bitcoin#3641: Fix documentation of Xpub::identifier

434e131660 Fix documentation of Xpub::identifier (LLFourn)

Pull request description:

  :^)

ACKs for top commit:
  tcharding:
    ACK 434e131660
  apoelstra:
    ACK 434e131660e82e06efd97981c1d975c04de2d010; successfully ran local tests; lol

Tree-SHA512: 5c86679a05b6cc7c77f6d6727520002ada1037b4df97c565ac383824afb4e68194a297bdaf8b0074138be54e6142b8f0819da056912c7feed0538bb1a7054254
This commit is contained in:
merge-script 2024-11-23 14:57:22 +00:00
commit d662dba8b5
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 1 additions and 1 deletions

View File

@ -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()))
}