interface BechLib {
    decode: ((str, LIMIT?) => Decoded);
    decodeUnsafe: ((str, LIMIT?) => undefined | Decoded);
    encode: ((prefix, words, LIMIT?) => string);
    fromWords: ((words) => number[]);
    fromWordsUnsafe: ((words) => number[] | undefined);
    toWords: ((bytes) => number[]);
}

Properties

decode: ((str, LIMIT?) => Decoded)

Type declaration

    • (str, LIMIT?): Decoded
    • Parameters

      • str: string
      • Optional LIMIT: number

      Returns Decoded

decodeUnsafe: ((str, LIMIT?) => undefined | Decoded)

Type declaration

    • (str, LIMIT?): undefined | Decoded
    • Parameters

      • str: string
      • Optional LIMIT: number

      Returns undefined | Decoded

encode: ((prefix, words, LIMIT?) => string)

Type declaration

    • (prefix, words, LIMIT?): string
    • Parameters

      • prefix: string
      • words: ArrayLike<number>
      • Optional LIMIT: number

      Returns string

fromWords: ((words) => number[])

Type declaration

    • (words): number[]
    • Parameters

      • words: ArrayLike<number>

      Returns number[]

fromWordsUnsafe: ((words) => number[] | undefined)

Type declaration

    • (words): number[] | undefined
    • Parameters

      • words: ArrayLike<number>

      Returns number[] | undefined

toWords: ((bytes) => number[])

Type declaration

    • (bytes): number[]
    • Parameters

      • bytes: ArrayLike<number>

      Returns number[]

Generated using TypeDoc