The following (await window.cardano['<wallet>'].enable()).signData('<addr>', '<payload>')
Returns an object
{ key: <key>, signature: <sig> }
I'm successfully parsing the key to a CoseKey with ermugo/message-signing
in node.js, but struggling to pull the header which contains the key. Reading CIP-0030 I believe it is contained within the headers as x
. Could someone explain how I read this in code, please? Thanks for your time.
edit: if there is documentation that explains how to do this please show me the way.