web3-cardano-token
web3-cardano-token copied to clipboard
Encountered unknown address header
What is causing this error?
Deserialization failed in Address because: Encountered unknown address header 0b10101101
When doing
const addressCose: Serialization.Address = Serialization.Address.from_bytes(headerCBORBytes);
Where headerCBORBytes is:
const headerCBORBytes: Uint8Array | undefined = protectedHeaders.header(MessageSigning.Label.new_text('address'))?.as_bytes();