We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1492d39 commit a50678cCopy full SHA for a50678c
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
@@ -99,6 +100,7 @@ def __init__(
99
100
self.index = index
101
self.network = network
102
103
+
104
def get_extended_privkey_from_path(self, path):
105
"""Get an extended privkey from a derivation path.
106
@@ -276,6 +278,11 @@ def get_xpub_bytes(self):
276
278
self.network,
277
279
280
281
+ def get_fingerprint(self):
282
+ """Get the public key fingerprint."""
283
+ return _pubkey_to_fingerprint(self.pubkey)
284
285
286
@classmethod
287
def from_xpriv(cls, xpriv):
288
"""Get a BIP32 "wallet" out of this xpriv
0 commit comments