Delegation
Defined in: packages/identity/src/identity/delegation.ts:30
A single delegation object that is signed by a private key. This is constructed by
DelegationChain.create()
.
DelegationChain
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Delegation(
pubkey
,expiration
,targets?
):Delegation
Defined in: packages/identity/src/identity/delegation.ts:31
Parameters
Section titled “Parameters”pubkey
Section titled “pubkey”Uint8Array
expiration
Section titled “expiration”bigint
targets?
Section titled “targets?”Returns
Section titled “Returns”Delegation
Properties
Section titled “Properties”expiration
Section titled “expiration”
readonly
expiration:bigint
Defined in: packages/identity/src/identity/delegation.ts:33
pubkey
Section titled “pubkey”
readonly
pubkey:Uint8Array
Defined in: packages/identity/src/identity/delegation.ts:32
targets?
Section titled “targets?”
readonly
optional
targets:Principal
[]
Defined in: packages/identity/src/identity/delegation.ts:34
Methods
Section titled “Methods”toCborValue()
Section titled “toCborValue()”toCborValue():
object
Defined in: packages/identity/src/identity/delegation.ts:37
Returns a value that can be encoded with CBOR. Typically called in the replacer function of the encode function.
Returns
Section titled “Returns”object
expiration
Section titled “expiration”expiration:
bigint
pubkey
Section titled “pubkey”pubkey:
Uint8Array
<ArrayBufferLike
>
targets?
Section titled “targets?”
optional
targets:Principal
[]
Implementation of
Section titled “Implementation of”toJSON()
Section titled “toJSON()”toJSON():
JsonnableDelegation
Defined in: packages/identity/src/identity/delegation.ts:47
Returns
Section titled “Returns”JsonnableDelegation