fromDelegations static method

DelegationChain fromDelegations(
  1. List<SignedDelegation> delegations,
  2. DerEncodedBlob publicKey
)

Creates a DelegationChain object from a list of delegations and a DER-encoded public key.

delegations is the list of delegations. publicKey is the DER-encoded public key of the key-pair signing the first delegation.

Implementation

static DelegationChain fromDelegations(
  List<SignedDelegation> delegations,
  DerEncodedBlob publicKey,
) {
  return DelegationChain(delegations, publicKey);
}