Research Article
Design of a Blockchain-Based Traceability System with a Privacy-Preserving Scheme of Zero-Knowledge Proof
Algorithm 2 Data preprocessing algorithm.
| Input: Data | | Output: Tx | (1) | Data = [sensor, collector,controller, etc].collect() | (2) | ID = [sensor, collector,controller, etc].PID | (3) | Hashdata = hash(Data) | (4) | Tx = TXgenerator(Hashdata|ID) | (5) | Tx.submit() |
|