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.
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)
Generated using TypeDoc