signRevocationBatchWithPrivateKey static method

AuthorizationBatch signRevocationBatchWithPrivateKey({
  1. required AuthorizationBatch revocationBatch,
  2. required Uint8List privateKey,
})

Signs multiple revocation authorizations with a private key.

Implementation

static AuthorizationBatch signRevocationBatchWithPrivateKey({
  required AuthorizationBatch revocationBatch,
  required Uint8List privateKey,
}) {
  // 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.signAllWithPrivateKey(privateKey);
}