batchRevoke method

Future<RevocationList2020Credential> batchRevoke(
  1. List<int> indexToRevoke,
  2. WalletStore wallet
)

Implementation

Future<RevocationList2020Credential> batchRevoke(
    List<int> indexToRevoke, WalletStore wallet) async {
  for (var i in indexToRevoke) {
    revocationList.flipBit(i);
  }
  return RevocationList2020Credential.fromJson(
      await signCredential(wallet, toJson()));
}