Represents UCAN chain view over the set of DAG UCAN nodes. You can think of this as UCAN interface of the CAR.

Implements

Type Parameters

Hierarchy

Implements

Constructors

Properties

blocks: Map<string, Block<any, 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.

root: UCANBlock<C, MulticodecCode<number, string>, SigAlg>

Accessors

  • get audience(): Principal<`did:${string}:${string}`>
  • Returns Principal<`did:${string}:${string}`>

  • get capabilities(): C
  • Returns

    Returns C

  • get data(): View<C>
  • Returns View<C>

  • get expiration(): number
  • Returns

    Returns number

  • get facts(): Fact[]
  • Returns

    Returns Fact[]

  • get issuer(): Principal<`did:${string}:${string}`>
  • Returns Principal<`did:${string}:${string}`>

  • get nonce(): undefined | string
  • Returns

    Returns undefined | string

  • get notBefore(): undefined | number
  • Returns

    Returns undefined | number

  • get version(): `${number}.${number}.${number}`
  • Returns `${number}.${number}.${number}`

Methods

Generated using TypeDoc