bitcoin.encoding package¶
Provides methods to allow encoding and decoding Bitcoin addresses.
-
bitcoin.encoding.b58encode(value: bytes) → str¶ Encodes bytes using base58 convention into an human-readable string.
- Sources
-
bitcoin.encoding.b58decode(value: str) → bytes¶ Decodes a base58 string into a bytes object.
-
bitcoin.encoding.bech32encode(hrp, version, program)¶ Encodes bytes using bech32 convention into an human-readable string.
-
bitcoin.encoding.bech32decode(string)¶ Decodes a bech32 string into a bytes object.