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

feat!: update to v0.10.0 spec #131

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

druide
Copy link

@druide druide commented Jun 20, 2024

  • added "ucan" scheme support (spec v0.10.0, except "ucan://<did>/<scheme>")
  • serialize/deserialize Capabilities as a Map (as specified in the spec, was a List)
  • removed "my", "as", "prf" schemes (are not in the spec)
  • fixed some methods to return Result intstead of logging to console
  • updated Cargo dependencies
  • added with_facts, with_proofs, builder methods
  • added with_add_proof_facts builder method to enable embedding of proofs to facts (as mentioned in the spec)
  • get proofs from facts (if any is embedded), then request store for absent CIDs
  • add bytes_to_ed25519_private_key and bytes_to_p256_private_key methods

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Link to issue

#121
#25

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Refactor (non-breaking change that updates existing functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Comments have been added/updated

Please delete options that are not relevant.

Test plan (required)

Demonstrate the code is solid. Which commands did you test with and what are the expected results?
Which tests have you added or updated? Do the tests cover all of the changes included in this PR?

Screenshots/Screencaps

Please add previews of any UI Changes.

* added "ucan" scheme support (spec v0.10.0, except "ucan://<did>/<scheme>")
* serialize/deserialize Capabilities as a Map (as specified in spec, was a List)
* removed "my", "as", "prf" schemes (are not in spec)
* fixed some methods to return Result intstead of logging to console
* updated Cargo dependencies
* added `with_facts`, `with_proofs`, builder methods
* added `with_add_proof_facts` bundler method to enable embedding of proofs to facts (as mentioned in spec)
* get proofs from facts (if any is embedded), then request store for absent CIDs
* add `bytes_to_ed25519_private_key` and `bytes_to_p256_private_key` methods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant