Signing and Verifying messages with COSE #15
Replies: 4 comments 4 replies
-
Hi Jarred, Thanks for sharing the idea. It makes sense to implement CIP-0008 in pycardano, because CIP-0008 is already a widely adopted standard and it is application agnostic. If you want to work on this feature, I am more than happy to help with the design and maybe some implementations. Btw, if you haven't, please join pycardano's discord server: https://discord.gg/qT9Mn9xjgz 😊 |
Beta Was this translation helpful? Give feedback.
-
Hello, Did you have any luck using pycose to verify the signature from |
Beta Was this translation helpful? Give feedback.
-
Hey there @ops222, yes we are able to use https://gist.github.com/astrojarred/0ab3247c11d59e38fe56725f56d019b1 I'm already using this code in production to verify signatures from both Nami and Eternl. I have not tested it with Typhon or Flint. Do let me know if you have any questions about it, you can find me here and in Discord. |
Beta Was this translation helpful? Give feedback.
-
CIP-8 has been integrated into pycardano thanks to @astrojarred . See this module here: https://github.com/cffls/pycardano/blob/main/pycardano/cip/cip8.py |
Beta Was this translation helpful? Give feedback.
-
I've been playing around with both the signing and verification of messages in python with pycardano, trying to follow the CIP-0008 for signing. I'm also trying to follow CIP-0003 such that messages signed by both pycardano vkeys and dApp wallets could be verified in python. My secondary end goal is be able to generate and verify JWT-like tokens generated by web3-cardano-token.
The aforementioned CIPs use COSE (CBOR Object Signing and Encryption), the algorithms for which are already written in a well-maintained python repository called pycose.
Is message signing and verification something that makes sense to be folded into pycardano, or do you think it's better off as a separate repository? The only new dependency needed would be the pycose library (
pip install cose
).Beta Was this translation helpful? Give feedback.
All reactions