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

Introduce nb field for capabilities #22

Closed
cdata opened this issue Sep 22, 2022 · 1 comment · Fixed by #105
Closed

Introduce nb field for capabilities #22

cdata opened this issue Sep 22, 2022 · 1 comment · Fixed by #105
Labels
enhancement New feature or request

Comments

@cdata
Copy link
Member

cdata commented Sep 22, 2022

Part of #11

https://github.com/ucan-wg/spec#241-nb-non-normative-fields

@cdata cdata added the enhancement New feature or request label Sep 22, 2022
@jsantell
Copy link
Contributor

nb has been removed in 0.10.0. The capabilities are currently defined as:

{
    "att": [{ "with": "$RESOURCE", "can": "$ABILITY", "nb": "$UNUSED" }]
}

As of 0.10.0, att should be renamed to cap, with a structure like:

{
  "cap": {
    "$RESOURCE":  {
      "$ABILITY_1": [{}],
      "$ABILITY_2": [{ "foo": "bar" }]
    }
  }
}

jsantell added a commit to jsantell/rs-ucan that referenced this issue Jun 5, 2023
…wg#22.

* Represents capabilities as map-of-maps rather than array of tuples.
* Renames 'att' to 'cap' (Ucan spec 0.10.0).
* Renames 'Capability' to 'CapabilityView'.
* Leaves caveat parsing up to consumer.
jsantell added a commit to jsantell/rs-ucan that referenced this issue Jun 5, 2023
…wg#22.

* Represents capabilities as map-of-maps rather than array of tuples.
* Renames 'att' to 'cap' (Ucan spec 0.10.0).
* Renames 'Capability' to 'CapabilityView'.
* Leaves caveat parsing up to consumer.
jsantell added a commit to jsantell/rs-ucan that referenced this issue Jun 5, 2023
…wg#22.

* Represents capabilities as map-of-maps rather than array of tuples.
* Renames 'att' to 'cap' (Ucan spec 0.10.0).
* Renames 'Capability' to 'CapabilityView'.
* Leaves caveat parsing up to consumer.
jsantell added a commit to jsantell/rs-ucan that referenced this issue Jun 10, 2023
…wg#22.

* Represents capabilities as map-of-maps rather than array of tuples.
* Renames 'att' to 'cap' (Ucan spec 0.10.0).
* Renames 'Capability' to 'CapabilityView'.
* Leaves caveat parsing up to consumer.
jsantell added a commit to jsantell/rs-ucan that referenced this issue Jun 10, 2023
…wg#22.

* Represents capabilities as map-of-maps rather than array of tuples.
* Renames 'att' to 'cap' (Ucan spec 0.10.0).
* Renames 'Capability' to 'CapabilityView'.
* Validates caveats in proof chain
jsantell added a commit to jsantell/rs-ucan that referenced this issue Jun 12, 2023
…wg#22.

* Represents capabilities as map-of-maps rather than array of tuples.
* Validates caveats in proof chain
* Renames 'att' to 'cap' (Ucan spec 0.10.0).
* Renames various capability semantics structs with spec names (With=>Resource,
  Can/Action=>Ability, Resource=>ResourceURI)
* Renames 'Capability' to 'CapabilityView'.
jsantell added a commit to jsantell/rs-ucan that referenced this issue Jun 12, 2023
…wg#22.

* Represents capabilities as map-of-maps rather than array of tuples.
* Validates caveats in proof chain
* Renames 'att' to 'cap' (Ucan spec 0.10.0).
* Renames various capability semantics structs with spec names (With=>Resource,
  Can/Action=>Ability, Resource=>ResourceURI)
* Renames 'Capability' to 'CapabilityView'.
jsantell added a commit to jsantell/rs-ucan that referenced this issue Jun 23, 2023
…wg#22.

* Represents capabilities as map-of-maps rather than array of tuples.
* Validates caveats in proof chain
* Renames 'att' to 'cap' (Ucan spec 0.10.0).
* Renames various capability semantics structs with spec names (With=>Resource,
  Can/Action=>Ability, Resource=>ResourceURI)
* Renames 'Capability' to 'CapabilityView'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants