Skip to content

UCAN

Defined in: packages/core/src/ucan.ts:18

A UCAN token for Peerborne document authorization.

audience: string

Defined in: packages/core/src/ucan.ts:26

Audience’s public key (who receives this capability), Base64-encoded


capabilities: UCANCapability[]

Defined in: packages/core/src/ucan.ts:29

Capabilities being granted


expiration: number | null

Defined in: packages/core/src/ucan.ts:32

Expiration timestamp (seconds since epoch), or null for no expiration


issuer: string

Defined in: packages/core/src/ucan.ts:23

Issuer’s public key (who is granting this capability), Base64-encoded


nonce: string

Defined in: packages/core/src/ucan.ts:38

Nonce for uniqueness


notBefore: number | null

Defined in: packages/core/src/ucan.ts:35

Not-before timestamp (seconds since epoch), or null


proofs: string[]

Defined in: packages/core/src/ucan.ts:41

Optional proof chain (parent UCANs that authorize this delegation)


signature: string

Defined in: packages/core/src/ucan.ts:44

Signature of the token payload by the issuer


version: "0.1.0"

Defined in: packages/core/src/ucan.ts:20

Version of the UCAN spec