Represents a decoded "view" of a UCAN as a JS object that can be used in your domain logic, etc.

Type Parameters

Hierarchy

Properties

att: C
audience: PrincipalView<`did:${string}:${string}`>
capabilities: C
code: Code
exp: null | number
expiration: number
facts: Fact[]
fct: Fact[]
iss: Issuer
issuer: PrincipalView<`did:${string}:${string}`>
model: Model<C>
nbf?: number
nnc?: string
nonce?: string
notBefore?: number
prf: Link<Capabilities, MulticodecCode<number, string>, SigAlg>[]
proofs: Link<Capabilities, MulticodecCode<number, string>, SigAlg>[]
s: SignatureView<unknown, SigAlg>
signature: SignatureView<unknown, SigAlg>
v: `${number}.${number}.${number}`
version: `${number}.${number}.${number}`

Methods

  • Returns JWT<C>

  • Returns UCANJSON<View<C>>

Generated using TypeDoc