Type declaration
decodeUnsafe: ((str, limit?) => void | Bech32Decoded<string>)
- (str, limit?): void | Bech32Decoded<string>
Parameters
str: string
Optional
limit: number | false
encode: (<Prefix>(prefix, words, limit?) => `${Lowercase<Prefix>}1${string}`)
- <Prefix>(prefix, words, limit?): `${Lowercase<Prefix>}1${string}`
Parameters
words: number[] | Uint8Array
Optional
limit: number | false
Returns `${Lowercase<Prefix>}1${string}`
fromWords: ((to) => Uint8Array)
- (to): Uint8Array
Returns Uint8Array
fromWordsUnsafe: ((to) => void | Uint8Array)
- (to): void | Uint8Array
Returns void | Uint8Array
toWords: ((from) => number[])
- (from): number[]
Returns number[]