Module handshakes::prelude::bases [−][src]
Expand description
Contains simplified access to bech32
and base58check
encoder/decoder for Bitcoin
addresses. Also defines common encoder errors.
Enums
EncodingError | Errors that can be returned by the Bitcoin |
Functions
decode_base58 | Decodes base58check into a byte string. Returns a |
decode_bech32 | Decode a witness program from a bech32 string. Caller specifies an expected HRP. If a
different HRP is found, returns |
encode_base58 | Encodes a byte slice to base58check with the specified version byte. |
encode_bech32 | Encode a byte vector to bech32. This function expects |
Type Definitions
EncodingResult | A simple result type alias |