Class: Delegation<C>
delegation.Delegation
Type parameters
Name |
---|
C |
Hierarchy
Delegation
↳
Delegation
Constructors
constructor
• new Delegation<C
>(root
, blocks?
, meta?
)
Type parameters
Name | Type |
---|---|
C | extends [Capability <Ability , `${string}:${string}`, unknown >, ...Capability<Ability, `${string}:${string}`, unknown>[]] |
Parameters
Name | Type |
---|---|
root | UCANBlock <C , MulticodecCode <number , string >, SigAlg > |
blocks? | Map <string , Block <any , number , number , 1 >> |
meta? | Record <string , any > |
Overrides
CoreDelegation.constructor
Defined in
Properties
#meta
• Private
#meta: Record
<string
, any
>
Defined in
blocks
• blocks: Map
<string
, Block
<any
, number
, number
, 1
>>
Inherited from
CoreDelegation.blocks
Defined in
node_modules/@ucanto/core/dist/src/delegation.d.ts:18
root
• root: UCANBlock
<C
, MulticodecCode
<number
, string
>, SigAlg
>
Inherited from
CoreDelegation.root
Defined in
node_modules/@ucanto/core/dist/src/delegation.d.ts:17
Accessors
asCID
• get
asCID(): Link
<UCAN
<C
>, MulticodecCode
<number
, string
>, SigAlg
, 1
>
Returns
Link
<UCAN
<C
>, MulticodecCode
<number
, string
>, SigAlg
, 1
>
Inherited from
CoreDelegation.asCID
Defined in
node_modules/@ucanto/core/dist/src/delegation.d.ts:22
audience
• get
audience(): Principal
<`did:${string}:${string}`>
Returns
Principal
<`did:${string}:${string}`>
Inherited from
CoreDelegation.audience
Defined in
node_modules/@ucanto/core/dist/src/delegation.d.ts:37
bytes
• get
bytes(): ByteView
<UCAN
<C
>>
Returns
ByteView
<UCAN
<C
>>
Inherited from
CoreDelegation.bytes
Defined in
node_modules/@ucanto/core/dist/src/delegation.d.ts:23
capabilities
• get
capabilities(): C
Returns
C
Inherited from
CoreDelegation.capabilities
Defined in
node_modules/@ucanto/core/dist/src/delegation.d.ts:41
cid
• get
cid(): Link
<UCAN
<C
>, MulticodecCode
<number
, string
>, SigAlg
, 1
>
Returns
Link
<UCAN
<C
>, MulticodecCode
<number
, string
>, SigAlg
, 1
>
Inherited from
CoreDelegation.cid
Defined in
node_modules/@ucanto/core/dist/src/delegation.d.ts:21
data
• get
data(): View
<C
>
Returns
View
<C
>
Inherited from
CoreDelegation.data
Defined in
node_modules/@ucanto/core/dist/src/delegation.d.ts:24
expiration
• get
expiration(): number
Returns
number
Inherited from
CoreDelegation.expiration
Defined in
node_modules/@ucanto/core/dist/src/delegation.d.ts:45
facts
• get
facts(): Fact
[]
Returns
Fact
[]
Inherited from
CoreDelegation.facts
Defined in
node_modules/@ucanto/core/dist/src/delegation.d.ts:57
issuer
• get
issuer(): Principal
<`did:${string}:${string}`>
Returns
Principal
<`did:${string}:${string}`>
Inherited from
CoreDelegation.issuer
Defined in
node_modules/@ucanto/core/dist/src/delegation.d.ts:33
nonce
• get
nonce(): undefined
| string
Returns
undefined
| string
Inherited from
CoreDelegation.nonce
Defined in
node_modules/@ucanto/core/dist/src/delegation.d.ts:53
notBefore
• get
notBefore(): undefined
| number
Returns
undefined
| number
Inherited from
CoreDelegation.notBefore
Defined in
node_modules/@ucanto/core/dist/src/delegation.d.ts:49
proofs
• get
proofs(): Proof
<Capabilities
>[]
Returns
Proof
<Capabilities
>[]
Inherited from
CoreDelegation.proofs
Defined in
node_modules/@ucanto/core/dist/src/delegation.d.ts:29
signature
• get
signature(): Signature
<unknown
, SigAlg
>
Returns
Signature
<unknown
, SigAlg
>
Inherited from
CoreDelegation.signature
Defined in
node_modules/@ucanto/core/dist/src/delegation.d.ts:20
version
• get
version(): `${number}.${number}.${number}`
Returns
`${number}.${number}.${number}`
Inherited from
CoreDelegation.version
Defined in
node_modules/@ucanto/core/dist/src/delegation.d.ts:19
Methods
export
▸ export(): IterableIterator
<Block
<any
, number
, number
, 1
>>
Returns
IterableIterator
<Block
<any
, number
, number
, 1
>>
Inherited from
CoreDelegation.export
Defined in
node_modules/@ucanto/core/dist/src/delegation.d.ts:25
iterate
▸ iterate(): IterableIterator
<Delegation
<Capabilities
>>
Iterate over the proofs
Returns
IterableIterator
<Delegation
<Capabilities
>>
Inherited from
CoreDelegation.iterate
Defined in
node_modules/@ucanto/core/dist/src/delegation.d.ts:63
meta
▸ meta(): Record
<string
, any
>
User defined delegation metadata.
Returns
Record
<string
, any
>