function unpackTwo(packed) {
const hexString = packed.startsWith("0x") ? packed.slice(2) : packed;
const bytes = new Uint8Array(
hexString.match(/.{1,2}/g).map((byte) => parseInt(byte, 16))
);
const aLength = bytes[0];
const bLength = bytes[1 + aLength];
const aBytes = bytes.slice(1, 1 + aLength);
const bBytes = bytes.slice(2 + aLength, 2 + aLength + bLength);
const a = new TextDecoder().decode(aBytes);
const b = new TextDecoder().decode(bBytes);
return [a, b];
}