encodeString
export function encodeString(
str: string,
split: boolean
): number[]
Encodes a Utf8 string into Cbor bytes. Strings can be split into lists with chunks of up to 64 bytes to play nice with Cardano tx metadata constraints.
Arguments
1. str
str: string
2. split
split: boolean
Returns
number[]