Interface Delegation<C>

A materialized view of a UCAN delegation, which can be encoded into a UCAN token and used as proof for an invocation or further delegations.

Type Parameters

Hierarchy

Implemented by

Properties

asCID: Link<C, MulticodecCode<number, string>, SigAlg>
audience: Principal<`did:${string}:${string}`>
blocks: Map<string, Block<unknown, number, number, 1>>

Map of all the IPLD blocks that were included with this delegation DAG. Usually this would be blocks corresponding to proofs, however it may also contain other blocks e.g. things that capabilities or facts may link. It is not guaranteed to include all the blocks of this DAG, as it represents a partial DAG of the delegation desired for transporting.

Also note that map may contain blocks that are not part of this delegation DAG. That is because Delegation is usually constructed as view / selection over the CAR which may contain bunch of other blocks.

bytes: ByteView<UCAN<C>>
capabilities: C
cid: Link<C, MulticodecCode<number, string>, SigAlg>
data: View<C>
expiration?: number
facts: Fact[]
issuer: Principal<`did:${string}:${string}`>
nonce?: string
notBefore?: number
proofs: Proof<Capabilities>[]
root: UCANBlock<C, MulticodecCode<number, string>, SigAlg>

Methods

Generated using TypeDoc