Bech32

class Bech32

Bech32 encode / decode functions

Functions

Link copied to clipboard
open fun decode(string: String): Array<Byte>
Decodes a Bech32 string.
Link copied to clipboard
open fun decodeM(string: String): Array<Byte>
Decodes a Bech32m string.
Link copied to clipboard
open fun encode(hrp: String, data: Array<Byte>): String
Encodes data as a Bech32 string.
Link copied to clipboard
open fun encodeM(hrp: String, data: Array<Byte>): String
Encodes data as a Bech32m string.