A Research on Traceability Technology of Agricultural Products Supply Chain Based on Blockchain and IPFS
Algorithm 3
Commodity trading algorithm.
Input: IDbuyer, IDseller, address_buyer, address_seller, Ppri, Pquan, Pqual, Fine
Output: Transaction result
(1)
The seller applies smart contract function: negotiate (IDbuyer, IDseller, Ppri, Pquan, Pqual)//Both parties can negotiate the commodity price, quantity and quality through this function.