Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR implements the following features:
Link to issue
Closes #12
Type of change
Test plan (required)
The fixtures will need to be verified manually. Taking a look through the code may be helpful for understanding how the fixtures were generated, but isn't required.
The fixtures are in
fixtures/0.10.0
:The
verify
fixtures request that an implementation check a token and associated proof map. For example:An implementation should confirm the token encodes a valid and well-formed UCAN with a delegated capability. The assertions provide extra information that can be validated by the implementation.
The
refute
fixtures are similar but should refute the validity of the token. For example:Note that the
refute
fixtures also have anerrors
field that lists an expected error. Assertions are still included in the fixtures, but they omit any field that is malformed or missing.The
build
fixtures request an implementation build a token when given a set of inputs. For example:Lastly, the
toCID
fixtures request an implementation compute the CID for a token with a specific hasher. For example:all.json
collects all of the above into a single JSON object.