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.
Click to show internal directories.
Click to hide internal directories.