revoke method

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

Implementation

Future<RevocationList2020Credential> revoke(
    int indexToRevoke, WalletStore wallet) async {
  revocationList.flipBit(indexToRevoke);
  return RevocationList2020Credential.fromJson(
      await signCredential(wallet, toJson()));
}