module Bech32
Extended Modules
Defined in:
bech32/base.crbech32/convert.cr
bech32/decode.cr
bech32/encode.cr
bech32/exceptions.cr
bech32/version.cr
Constant Summary
-
ALPHABET =
"qpzry9x8gf2tvdw0s3jn54khce6mua7l"
-
ALPHABET_MAP =
{'q' => 0_u8, 'p' => 1_u8, 'z' => 2_u8, 'r' => 3_u8, 'y' => 4_u8, '9' => 5_u8, 'x' => 6_u8, '8' => 7_u8, 'g' => 8_u8, 'f' => 9_u8, '2' => 10_u8, 't' => 11_u8, 'v' => 12_u8, 'd' => 13_u8, 'w' => 14_u8, '0' => 15_u8, 's' => 16_u8, '3' => 17_u8, 'j' => 18_u8, 'n' => 19_u8, '5' => 20_u8, '4' => 21_u8, 'k' => 22_u8, 'h' => 23_u8, 'c' => 24_u8, 'e' => 25_u8, '6' => 26_u8, 'm' => 27_u8, 'u' => 28_u8, 'a' => 29_u8, '7' => 30_u8, 'l' => 31_u8}
-
LIMIT =
90
-
VERSION =
{{ (`shards version \"/srv/crystaldoc.info/github-wout-bech32-v0.3.1/src/bech32\"`).chomp.stringify }}
Instance Method Summary
- #decode(value : String, limit = LIMIT, encoding = Encoding::Bech32) : Tuple(String, Bytes)
- #encode(prefix : String, words : Bytes, limit = LIMIT, encoding = Encoding::Bech32) : String
- #from_words(words : Bytes) : Bytes
- #to_words(bytes : Bytes) : Bytes