mirror of
https://github.com/bitcoin/bips.git
synced 2025-05-12 12:03:29 +00:00
fix error Base48 to Base58
chore: fix error Base48 to Base58 fix error Base48 to Base58
This commit is contained in:
parent
fade15caa2
commit
5772c6b40d
@ -53,7 +53,7 @@ def decode(s: str) -> bytes:
|
|||||||
"""
|
"""
|
||||||
Decode a base58-encoding string, returning bytes
|
Decode a base58-encoding string, returning bytes
|
||||||
|
|
||||||
:param s: Base48 string to decode
|
:param s: Base58 string to decode
|
||||||
:return: Bytes encoded by ``s``
|
:return: Bytes encoded by ``s``
|
||||||
"""
|
"""
|
||||||
if not s:
|
if not s:
|
||||||
@ -118,7 +118,7 @@ def get_xpub_fingerprint_hex(xpub: str) -> str:
|
|||||||
"""
|
"""
|
||||||
Get the parent fingerprint as a hex string from an extended public key
|
Get the parent fingerprint as a hex string from an extended public key
|
||||||
|
|
||||||
:param s: The extended pubkey
|
:param xpub: The extended pubkey
|
||||||
:return: The parent fingerprint as a hex string
|
:return: The parent fingerprint as a hex string
|
||||||
"""
|
"""
|
||||||
data = decode(xpub)
|
data = decode(xpub)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user