signRevocationWithPrivateKey static method
Authorization
signRevocationWithPrivateKey({
- required Authorization revocation,
- 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);
}