Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for CWT #30

Open
pdxjohnny opened this issue Mar 2, 2022 · 5 comments
Open

Support for CWT #30

pdxjohnny opened this issue Mar 2, 2022 · 5 comments
Labels
duplicate This issue or pull request already exists

Comments

@pdxjohnny
Copy link

pdxjohnny commented Mar 2, 2022

It would be great if ucan could support CWT as well as JWT for embedded us cases.

This would also pave the way for interoperatbility with attesttation frameworks such as DICE

References:

@expede
Copy link
Member

expede commented Mar 2, 2022

Hey @pdxjohnny; thanks for the idea! There's some related discussion here: #18

@expede
Copy link
Member

expede commented Mar 2, 2022

The TL;DR on current thinking (and we can be convinced otherwise!) is that this spec is the one for interoperability between systems. If we introduce many other encodings, then we either run into token incompatibilities, or larger implementations that support multiple codecs. If folks want to adapt the spec to an internal use case that uses a different encoding, that's a great idea and we're happy to help, but that we can't expect it to interop with other systems and so shouldn't be in the spec directly.

THAT SAID, please do comment in that discussion, and especially with any concrete tradeoffs that you'd like to solve for 😄

@expede expede added the duplicate This issue or pull request already exists label Mar 2, 2022
@pdxjohnny
Copy link
Author

Thanks @expede! Just commented: #18 (reply in thread)

Also, credit where credit is due, this idea came from @nedmsmith :)

@expede
Copy link
Member

expede commented Mar 2, 2022

Awesome; thanks both of you! Also, always super interested to hear about new use cases. If not something that can be public in text, I'm always happy to hop on a call sometime 😃

@expede
Copy link
Member

expede commented Nov 21, 2022

Hey @pdxjohnny 👋 In principle, if you're willing to deterministically encode the CWT, then you should be able to use the canonicalization spec and/or ucan-ipld to convert to/from CWT.

Does that meet your CWT needs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants