export function toUint8Array(str: string): Uint8Array { return new Uint8Array(str.split('').map(c => c.charCodeAt(0))); }