View full-text article in PMC Sensors (Basel). 2022 Oct 15;22(20):7842. doi: 10.3390/s22207842 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 3: Verification algorithm of data trading information traceability process Input: SupPeer, Keysupcha, Keyoriinfo, TradingName Output: Veriresult1 // Query the original data trading information and its corresponding block number from the off-chain database2 OriTradingInfo=queryTradingInfo(SupPeer, Keyoriinfo, TradingName);3 // Compute the hash value of the original data trading information4 H1=calcHash(OriTradingInfo);5 // Query the hash value in the blockchain based on the block number6 H2=queryTradingInfo(SupPeer, Keysupchan, OriTradingInfo[7]);7 If (H1==H2)8 return Veripass;9 else10 return Verifail;