Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Invocation ¶
type Invocation interface { delegation.Delegation }
Invocation represents a UCAN that can be presented to a service provider to invoke or "exercise" a Capability. You can think of invocations as a serialized function call, where the ability or `can` portion of the Capability acts as the function name, and the resource (`with`) and caveats (`nb`) of the capability act as function arguments.
Most invocations will require valid proofs, which consist of a chain of Delegations. The service provider will inspect the proofs to verify that the invocation has sufficient privileges to execute.
func NewInvocation ¶
func NewInvocation(root ipld.Block, bs blockstore.BlockReader) (Invocation, error)
func NewInvocationView ¶
func NewInvocationView(root ipld.Link, bs blockstore.BlockReader) (Invocation, error)
type IssuedInvocation ¶
type IssuedInvocation interface { Invocation }
func Invoke ¶
func Invoke[C ucan.CaveatBuilder](issuer ucan.Signer, audience ucan.Principal, capability ucan.Capability[C], options ...delegation.Option) (IssuedInvocation, error)
Click to show internal directories.
Click to hide internal directories.