Research Article
SESCF: A Secure and Efficient Supply Chain Framework via Blockchain-Based Smart Contracts
| (1) | inspect: inputs signed with | | (2) | assert current time T Exhash. | | (3) | N := Goods.count | | (4) | assert N = Exhash.Osize | | (5) | Smart contract forwards to | | (6) | scans and inputs the RFID tag of the goods | | (7) | inputs (Qspec, ) | | (8) | count := 0 | | (9) | for i [N] do | | (10) | compare .information with Qspec | | (11) | if the quality of is not up to standard then | | (12) | count++ | | (13) | end if | | (14) | end for | | (15) | if count then | | (16) | Smart contract sends count to and | | (17) | else | | (18) | signs with | | (19) | broadcasts | | (20) | end if |
|