We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0cf37f6 + aba3e6f commit 6ac3077Copy full SHA for 6ac3077
1 file changed
bip32/bip32.py
@@ -14,6 +14,7 @@
14
_deriv_path_str_to_list,
15
_pubkey_is_valid,
16
_privkey_is_valid,
17
+ _pubkey_to_fingerprint,
18
)
19
20
@@ -276,6 +277,11 @@ def get_xpub_bytes(self):
276
277
self.network,
278
279
280
+ def get_fingerprint(self):
281
+ """Get the public key fingerprint."""
282
+ return _pubkey_to_fingerprint(self.pubkey)
283
+
284
285
@classmethod
286
def from_xpriv(cls, xpriv):
287
"""Get a BIP32 "wallet" out of this xpriv
0 commit comments