From b8c7bc8dcb9106f7e84b16b285ad6ff437d54f10 Mon Sep 17 00:00:00 2001 From: Sebastian Geisler Date: Wed, 7 Oct 2020 16:50:27 +0200 Subject: [PATCH] Bip32 documentation fix --- src/util/bip32.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);