Research Article

Privacy-Preserving Redactable Blockchain for Internet of Things

Algorithm 1

(implements ).
Input: Blockchain , redaction request
Output: 0/1
(1)Parse the original -th block ;
(2)Parse the old block data ;
(3)Replace the old transaction with the initial candidate transaction ;
(4)Parse the new block data ;
(5)Parse the redacted -th block ;
(6)If , return 0;
(7)Parse the initial candidate transaction .
(8)Calculate using the disclosed transaction data and encryption key .
(9)Compare with the ciphertext in the original transaction. If not equal, return 0;
(10)Validate the ring signature contained in the redacted transaction and compare the message signed by with the digest , if not equal return 0;
(11)Return 1.