erdtman / cose-js

JavaScript implementation of COSE
Apache License 2.0
29 stars 25 forks source link

Cbor Tags #56

Open JuliusGoddard opened 3 years ago

JuliusGoddard commented 3 years ago

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?

erdtman commented 2 years ago

Could you please explain a bit more?

ctrlsam commented 2 years ago

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