Delegation
Defined in: packages/identity/src/identity/delegation.ts:42
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:43
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”
readonlyexpiration:bigint
Defined in: packages/identity/src/identity/delegation.ts:45
pubkey
Section titled “pubkey”
readonlypubkey:Uint8Array
Defined in: packages/identity/src/identity/delegation.ts:44
targets?
Section titled “targets?”
readonlyoptionaltargets:Principal[]
Defined in: packages/identity/src/identity/delegation.ts:46
Methods
Section titled “Methods”toCborValue()
Section titled “toCborValue()”toCborValue():
object
Defined in: packages/identity/src/identity/delegation.ts:49
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?”
optionaltargets:Principal[]
Implementation of
Section titled “Implementation of”toJSON()
Section titled “toJSON()”toJSON():
JsonnableDelegation
Defined in: packages/identity/src/identity/delegation.ts:59
Returns
Section titled “Returns”JsonnableDelegation