Emurgo / message-signing

MIT License
27 stars 17 forks source link

Encountered unknown address header #13

Closed jinglescode closed 2 years ago

jinglescode commented 2 years ago

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();
malakaw commented 2 years ago

When I use normal address signData() same question was happed, but when I use stack_address ,the error message is in "cardano_serialization_lib.asm.js:390391:1)"