cose-js icon indicating copy to clipboard operation
cose-js copied to clipboard

Cbor Tags

Open JuliusGoddard opened this issue 3 years ago • 2 comments

The particular message type I need to send requires a CBOR tag. In my case it 18 or cose-sign1. Does cose-js have functionality to add a tag onto the message?

JuliusGoddard avatar Oct 18 '21 16:10 JuliusGoddard

Could you please explain a bit more?

erdtman avatar Nov 07 '21 20:11 erdtman

await cose.sign.verify(coseMessage, verifier, { defaultType: 18 }); ^ this will use cose-sign1 (18)

ctrlsam avatar Dec 06 '21 05:12 ctrlsam