decodeBech32
export function decodeBech32(addr: string): [string, number[]]
Decomposes a Bech32 checksummed string (eg. a Cardano address), and returns the human readable part and the original bytes Throws an error if checksum is invalid.
Arguments
1. addr
addr: string
Returns
[string, number[]]
First part is the human-readable part, second part is a list containing the underlying bytes.