std::encoding::base32¶
Status: experimental
RFC 4648 base32 (uppercase) encode / decode.
API details and source¶
The implementation source contains the complete declarations and implementation notes. The table below lists canonical Gossamer call signatures; every item name links directly to its implementation file.
| Item | Canonical signature or declaration | Description |
|---|---|---|
decode |
fn decode(text: String) -> Result<Vec<u8>, errors::Error> |
Base32 string -> bytes. |
decode_hex |
fn decode_hex(text: String) -> Result<Vec<u8>, errors::Error> |
Decodes extended-hex base32 text into a String. |
decode_string |
fn decode_string(text: String) -> Result<String, errors::Error> |
Decodes standard base32 text into a String. |
encode |
fn encode(data: Vec<u8>) -> String |
Bytes -> base32 string. |
encode_hex |
fn encode_hex(data: Vec<u8>) -> String |
Encodes a String as extended-hex base32 text. |
encode_string |
fn encode_string(text: String) -> String |
Encodes a String as standard base32 text. |