Research Article
Antitampering Scheme of Evidence Transfer Information in Judicial System Based on Blockchain
Algorithm 1
Chaincode of evidence sending.
| Input: transaction proposal TP; | Output: endorsement result; | (1) | if ||then | (2) | //decrypt ACK with receiver's public key | (3) | if is signed by then | (4) | if ACK.transactionID = = TP.txID && | (5) | ACK.R = = H (Root ({M(TP.prooflist.hash)})) then | (6) | simulate the transaction; | (7) | calculate the read-write set; | (8) | sign the endorsement file; | (9) | return signed endorsement file; | (10) | end if | (11) | end if | (12) | else | (13) | return false; | (14) | end if |
|