web3-cardano-token icon indicating copy to clipboard operation
web3-cardano-token copied to clipboard

Encountered unknown address header

Open jinglescode opened this issue 3 years ago • 0 comments

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();

jinglescode avatar Apr 17 '22 05:04 jinglescode