Research Article

A Research on Traceability Technology of Agricultural Products Supply Chain Based on Blockchain and IPFS

Algorithm 1

User registration algorithm.
Input: IDuser, VIDuser, User_address, PKuser
Output: Registration result
(1)Users send IDuser, VIDuser, User_address and PKuser to regulatory agencies
(2)Regulatory agencies verify users’ identity information
(3)if the verification is successful then
(4) Regulatory agencies call node_register (User_address, PKuser)//Only the regulatory agencies can call, register the user with successful verification, and send the relationship of User_address and PKuser into address_pk.
(5) Update address_pk
(6) return “successfully registration”
(7)else
(8)return “registration failed. Please submit the real information to register again.”
(9)end if