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

Properties

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

Type declaration

decodeUnsafe: ((str, LIMIT?) => SecretJS.Decoded)

Type declaration

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