delegate

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2025 License: Apache-2.0, MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Cmd = &cobra.Command{
		Use:     "delegate",
		Aliases: []string{"dg"},
		Args:    cobra.NoArgs,
		Short:   `Operations for UCAN Delegations`,
	}

	GenerateCmd = &cobra.Command{
		Use:     "generate",
		Aliases: []string{"gen"},
		Args:    cobra.NoArgs,
		Short:   `Generate a new delegation`,
		RunE:    doGenerate,
	}
)

Functions

func FormatDelegation

func FormatDelegation(d io.Reader) (string, error)

FormatDelegation takes a delegation archive from a read and returns a multibase-base64-encoded CIDv1 with embedded CAR data.

func FormatDelegationBytes

func FormatDelegationBytes(archive []byte) (string, error)

FormatDelegationBytes takes a delegation archive in byte form and returns a multibase-base64-encoded CIDv1 with embedded CAR data.

func MakeDelegation

func MakeDelegation(issuer ucan.Signer, audience ucan.Principal, capabilities []string, opts ...delegation.Option) (delegation.Delegation, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL