signRevocationBatch static method
Future<AuthorizationBatch>
signRevocationBatch({
- required AuthorizationBatch revocationBatch,
- required Signer signer,
Signs multiple revocation authorizations.
Implementation
static Future<AuthorizationBatch> signRevocationBatch({
required AuthorizationBatch revocationBatch,
required Signer signer,
}) async {
// Validate that all authorizations are revocations
for (final auth in revocationBatch.authorizations) {
if (!auth.isRevocation) {
throw ArgumentError('All authorizations in batch must be revocations');
}
}
return revocationBatch.signAll(signer);
}