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

UCAN JWT canonicalization #28

Merged
merged 5 commits into from
Oct 4, 2022
Merged

UCAN JWT canonicalization #28

merged 5 commits into from
Oct 4, 2022

Conversation

cdata
Copy link
Member

@cdata cdata commented Sep 26, 2022

This change introduces support for UCAN-IPLD and canonical JWT encoding. UCAN-IPLD depends in part on modifications to the spec that were introduced in 0.9; so, this change also includes the parts of 0.9 that were necessary to implement UCAN-IPLD. However, this change does not transition us completely to conformance with 0.9. The following issues were filed to cover the remaining ground before we have fully implemented 0.9: #22, #23, #24, #25 and #27.

The changes introduced that bring us partially towards 0.9 include:

  • The prf field now uses CIDs instead of nested JWT token strings
    • Relatedly, a block store trait has been introduced in order to support building proof chains
  • An nb field is supported in UcanIpld capabilities (even though it is ignored in the Ucan representation)

In addition to support for UCAN-IPLD, some bugs have been fixed. Most notably, #18 was addressed by changing how we generate the nnc field value. Additionally, all tests now run in both native and web browser environments on CI (previously, only key support tests ran in a browser). Also, browser tests now run inside of headless Chrome in the Github Actions runner. This is both more reliable, and moves us away from using my personal Browser Stack account for those tests 😅

Fixes #20
Fixes #18
Fixes #9

@cdata cdata marked this pull request as draft September 26, 2022 23:28
@cdata cdata marked this pull request as ready for review September 26, 2022 23:33
@justindotpub
Copy link

Thank you for the live walkthrough of the PR and codebase today @cdata. 🙏 Hopefully we'll have more valuable feedback in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants