Research Article

CR-BA: Public Key Infrastructure Certificate Revocation Scheme Based on Blockchain and Accumulator

Algorithm 3

Verification algorithm, verify.
Input: accValue, member, witness, key
Output: true or false//validation response
(1)ChaincodeStub stub = ctx.getStub ();
(2)byte [] ojectBytes = stub.getState(Accumulator.class.getSimpleName ());
(3)Accumulator accValue = deserialize (ojectBytes); //deserialize the accumulator object
(4)Acc ← FindBlockchainContract; //get the accumulator value
(5)result ← Acc.verify(member);//verify member is in the accumulator
(6)if (result = = 0) {
(7)   return true; //verify successfully
(8)else
(9)return false;