Function decodeBech32

  • Decode a Bech32-encoded string into an array of 5-bit integers.

    Note, this method always completes. If validBech32 is not valid bech32, an incorrect result will be returned. If validBech32 is potentially malformed, check it with isBech32CharacterSet before calling this method.

    For the reverse, see encodeBech32.

    Parameters

    • validBech32: string

      the bech32-encoded string to decode

    Returns (0 | 2 | 1 | 3 | 4 | 8 | 16 | 5 | 6 | 10 | 7 | 12 | 9 | 11 | 13 | 14 | 15 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 28 | 26 | 27 | 29 | 30 | 31)[]

Generated using TypeDoc