Create a delegation chain between two (or more) keys. By default, the expiration time will be very short (15 minutes).
To build a chain of more than 2 identities, this function needs to be called multiple times, passing the previous delegation chain into the options argument. For example:
The identity that will delegate.
The identity that gets delegated. It can now sign messages as if it was the identity above.
The length the delegation is valid. By default, 15 minutes from calling this function.
A set of options for this delegation. expiration and previous
Another DelegationChain that this chain should start with.
targets that scope the delegation (e.g. Canister Principals)
Creates a DelegationChain object from a list of delegations and a DER-encoded public key.
The list of delegations.
The DER-encoded public key of the key-pair signing the first delegation.
Creates a DelegationChain object from a JSON string.
The JSON string to parse.
Generated using TypeDoc
A chain of delegations. This is JSON Serializable. This is the object to serialize and pass to a DelegationIdentity. It does not keep any private keys.