fromDelegation static method

DelegationIdentity fromDelegation(
  1. SignIdentity key,
  2. DelegationChain delegation
)

Create a delegation without having access to delegateKey.

@param key The key used to sign the reqyests. @param delegation A delegation object created using createDelegation.

Implementation

static DelegationIdentity fromDelegation(
  SignIdentity key,
  DelegationChain delegation,
) {
  return DelegationIdentity(key, delegation);
}