Research Article

Privacy-Preserving Redactable Blockchain for Internet of Things

Algorithm 2

(implements ).
Input:Chain , a final candidate transaction , an index of the block
Output:0/1
(1)Parse ;
(2)Parse ;
(3)Parse .
(4)if then
(5)return 0;
(6)if is invalid then
(7)return 0;
(8)Compare the message signed by and the hash of the redaction request, If not equal, return 0;
(9)Parse ;
(10)Parse ;
(11)if then
(12)return 1;
(13)else
(14)return 0;