Skip to content

Commit 6ac3077

Browse files
committed
Merge PR #44
2 parents 0cf37f6 + aba3e6f commit 6ac3077

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bip32/bip32.py

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
_deriv_path_str_to_list,
1515
_pubkey_is_valid,
1616
_privkey_is_valid,
17+
_pubkey_to_fingerprint,
1718
)
1819

1920

@@ -276,6 +277,11 @@ def get_xpub_bytes(self):
276277
self.network,
277278
)
278279

280+
def get_fingerprint(self):
281+
"""Get the public key fingerprint."""
282+
return _pubkey_to_fingerprint(self.pubkey)
283+
284+
279285
@classmethod
280286
def from_xpriv(cls, xpriv):
281287
"""Get a BIP32 "wallet" out of this xpriv

0 commit comments

Comments
 (0)