-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
enhancementNew feature or requestNew feature or requestenhancement-delegationNew feature for delegation tokensNew feature for delegation tokensv1.0.0-rc.1
Description
Given I have a UCAN delegation token with (one of?) my DID(s) in the aud field, add a Delegate method that makes it easier to continue the delegation chain. This can be accomplished but the New constructor but almost every field must then be copied by the library user.
The method signature would be something like:
func (t *Token) Delegate(privKey crypto.PrivKey, aud did.DID, opts ...DelegateOption) (*Token, error)
And DelegateOption would include the following implementations:
WithAttenuatedCommand- `WithAttenuatedPolicy
WithAdditionalPolicyPredicatesWithoutInheritedPolicy
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestenhancement-delegationNew feature for delegation tokensNew feature for delegation tokensv1.0.0-rc.1