principal

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0, MIT Imports: 1 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

type Signer interface {
	ucan.Signer
	Code() uint64
	Verifier() Verifier
	Encode() []byte
	// Raw encodes the bytes of the private key without multiformats tags.
	Raw() []byte
}

Signer is the principal that can issue UCANs (and sign payloads). While it's primary role is to sign payloads it also provides a `Verifier` interface so it can be used for verifying signed payloads as well.

type Verifier

type Verifier interface {
	ucan.Verifier
	Code() uint64
	Encode() []byte
	// Raw encodes the bytes of the public key without multiformats tags.
	Raw() []byte
}

Verifier is the principal that issued a UCAN. In usually represents remote principal and is used to verify that certain payloads were signed by it.

Directories

Path Synopsis
ed25519
rsa

Jump to

Keyboard shortcuts

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