-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Rename CannotCidOr
, API for creating powerlines & more
#18
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## v1.0-rc.1 #18 +/- ##
=============================================
+ Coverage 12.77% 12.86% +0.08%
=============================================
Files 68 68
Lines 5612 5620 +8
Branches 2698 2703 +5
=============================================
+ Hits 717 723 +6
- Misses 4302 4309 +7
+ Partials 593 588 -5
|
Yeah makes sense. I really dislike having to do nested |
Given that this is really specific to |
Yeah you're raising a good point. I'll rename it now. |
faa751e
to
c9f3022
Compare
I made |
And also: Rename the associated types `DelegationStoreError` and `InvocationStoreError` to just `Error`.
c9f3022
to
2ed32e3
Compare
Rebased onto the latest |
CannotCidOr
and add API for creating powerlinesCannotCidOr
, API for creating powerlines & more
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Looks great!
DelegationStoreError
andInvocationStoreError
into justError
. They're namespaced by the trait anyways, and is a common pattern in rustCannotCidOr
toDelegationInsertError
Also, previously, given a
delegation::Agent
, there was no way to create a powerline. TheAgent::signer
is private, so it can't be used withDelegation::try_sign
directly.I get the fact that
store.get_chain
shouldn't take asubject: Option<DID>
, but I thinkAgent::delegate
should.I needed that to keep creating powerlines from the fission-server crate.
And more things:
expiration
optional (although we're still discussing)Envelope::try_from_ipld_envelope
Envelope::varsig_encode
(I needed some API for getting a byte representation of a UCAN, and I think that's probably the best function?)via
andcommand
functions for accessing thosePayload
fields