Fix documentation of Xpub::identifier

This commit is contained in:
LLFourn 2024-11-19 15:32:30 +11:00
parent c47a41a076
commit 434e131660
No known key found for this signature in database
GPG Key ID: A27093B54DA11F65
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()))
}