We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
delegateCapability on the Builder API passes the issuer as both audience and requiredIssuer to Store.findWithCapability.
delegateCapability
issuer
audience
requiredIssuer
This works if the UCAN you are looking for has the capability by parenthood but not if the capability came from delegation
https://github.com/ucan-wg/ts-ucan/blob/main/packages/core/src/builder.ts#L224
The text was updated successfully, but these errors were encountered:
Yeah, right.
It seems like we'd need to actually provide the expected rootIssuer to delegateCapability, in case a Store was passed to it.
rootIssuer
Store
Maybe delegateCapability should just be two functions with two different signatures.
delegateCapability(requiredCapability: Capability, proof: DelegationChain, semantics: DelegationSemantics)
delegateCapabilityFromStore(requiredCapability: Capability, rootIssuer: string, store: Store)
Possibly with better names 😅
Maybe we can drop the Capability, so it's just delegate and delegateFromStore. And simplify the param name from requiredCapability to capability.
Capability
delegate
delegateFromStore
requiredCapability
capability
Sorry, something went wrong.
No branches or pull requests
delegateCapability
on the Builder API passes theissuer
as bothaudience
andrequiredIssuer
to Store.findWithCapability.This works if the UCAN you are looking for has the capability by parenthood but not if the capability came from delegation
https://github.com/ucan-wg/ts-ucan/blob/main/packages/core/src/builder.ts#L224
The text was updated successfully, but these errors were encountered: