signRevocationWithPrivateKey static method

Authorization signRevocationWithPrivateKey({
  1. required Authorization revocation,
  2. required Uint8List privateKey,
})

Signs a revocation authorization with a private key.

Implementation

static Authorization signRevocationWithPrivateKey({
  required Authorization revocation,
  required Uint8List privateKey,
}) {
  if (!revocation.isRevocation) {
    throw ArgumentError('Authorization is not a revocation');
  }

  return revocation.sign(privateKey);
}