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

v1.0.0-rc.1 #1

Open
wants to merge 53 commits into
base: main
Choose a base branch
from
Open

v1.0.0-rc.1 #1

wants to merge 53 commits into from

Conversation

expede
Copy link
Member

@expede expede commented Aug 14, 2023

Preview 📚

  • Copy revocation section from ucan-wg/spec
  • Expand on much of the prose
  • Tweak the JSON format
  • Switch to invocation type

@cla-bot cla-bot bot added the cla-signed label Aug 14, 2023
@expede expede changed the title Revocation v1.0 WIP: v1.0-RC Aug 14, 2023
@expede expede changed the title WIP: v1.0-RC v1.0-RC.1 Aug 16, 2023
@expede expede marked this pull request as draft August 16, 2023 01:00
@expede expede changed the title v1.0-RC.1 v1.0.0-rc.1 Aug 16, 2023
@expede expede marked this pull request as ready for review August 16, 2023 06:35
README.md Outdated Show resolved Hide resolved
Comment on lines +1 to +10
type RevocationAction <: Action {
cmd "ucan/revoke"
nnc ""
arg RevocationArguments
}

type RevocationArguments struct {
rev &Delegation
pth [&Delegation]
}
Copy link
Member Author

@expede expede Oct 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even more things that I want from IPLD Schema ☝️

  • Subtyping
  • Concrete values

I'd even be happy extending...

nullable for map values, list values, and struct fields
optional for struct fields
implicit for struct fields -- in some representations

...with something like...

exactly for struct values

type JwtHeader struct {
  typ String exactly "JWT"
  alg String

README.md Outdated Show resolved Hide resolved
@expede expede marked this pull request as ready for review December 20, 2023 16:21
type RevocationArguments struct {
rev &Delegation
pth [&Delegation]
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the reference our currently deployed implementation uses ucan and proof field names as opposed to rev and pth see

https://github.com/web3-storage/w3up/blob/9aba8a155cca663387952fc9b11bc3748de8f2fc/packages/capabilities/src/ucan.js#L43-L62

Unless there is good reason to introduce a break here I would prefer not to, that said it's not a deal breaker just inconvenient.

"revoke": {"/": "bafkreictzcfwelyww7zmjkl5nptyot24oilky2bppw42nui2acozhfmzqa"},
"path": [
{"/": "bafkreic4lzfu6gq6pxonmalbjzjumrs5p47plsolmccaz4qhgmzo24fagu"},
{"/": bafkreicc3jmhhtkzv26rb43cfx6ihyjlj2hixdfrkirglrermfo6cduelm""}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{"/": bafkreicc3jmhhtkzv26rb43cfx6ihyjlj2hixdfrkirglrermfo6cduelm""}
{"/": "bafkreicc3jmhhtkzv26rb43cfx6ihyjlj2hixdfrkirglrermfo6cduelm""}

Copy link

@Gozala Gozala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer name changes from what we have in live system, that said it is not a deal breaker just an inconvenience.

Other than that this is great and thank you so much for putting it together.

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

Successfully merging this pull request may close these issues.

None yet

8 participants