Research Article

Antitampering Scheme of Evidence Transfer Information in Judicial System Based on Blockchain

Algorithm 2

Chaincode of evidence revocation.
Input:;//the set of IDs of the evidence to be revoked
    rer,//revoker’s ID
    orgr,//the organization of the revoker
    orge,//the organization of the revocation recipient
Output: the endorsement result;
(1) int ;//state array for EV
(2)for do
(3)  ifthen
(4)   return false;
(5)  else
(6)   ifthen
(7)    ifthen
(8)     for all organization org that has higher priority than orgrdo
(9)      ifthen
(10)      if&& then
(11)       ifthen
(12)        ;
(13)       end if
(14)      end if
(15)     end if
(16)    end for
(17)   end if
(18)  end if
(19) end if
(20)end for
(21)ifthen
(22)  simulate the execution of the transaction;
(23)  generate the read-write set;
(24)  sign the proposal and the read-write set;
(25)  return signed endorsement file;
(26)else
(27)  return false;
(28)end if