bech32
bech32-encode
bech32-decode
bech32-verify
8.12

bech32🔗ℹ

Mohamed Amine LEGHERABA <mohamed.amine.legheraba@gmail.com>

 (require bech32) package: bech32

Encoding and decoding functions for the bech32 encoding, as defined by the BIP-173 specification. Also working with the bech23m encoding, according to the specification BIP-350.

procedure

(bech32-encode value)  string?

  value : string?
Encodes value to a bech32 string. value should be a hexadecimal string.

procedure

(bech32-decode value)  string?

  value : string?
Decodes bech32 string value to a hexadecimal string.

procedure

(bech32-verify value)  string?

  value : string?
Verify the checksum of the bech32 string value.