| With the improvement of people’s living standards,people pay more and more attention to vegetable safety,and natural green organic vegetables are becoming more and more popular.However,organic vegetables have not been able to fly on the tables of ordinary people.There are many reasons for this phenomenon.First of all,the high cost of planting organic vegetables and the long cultivation period make them more expensive.Secondly,the quality of most organic vegetables on the market is uneven,and incidents of shoddy vegetables occur from time to time.More importantly,there are often many cumbersome processes in the process of organic vegetables from growers to consumers,leading to further increases in costs.This makes most consumers discourage the organic vegetables currently on the market,and consumers generally do not have a high degree of trust in organic vegetables.In order to solve the above-mentioned problems,this paper proposes a shared trading platform for family-grown vegetables based on blockchain technology.The vegetables sold on the platform are exclusively supplied by an intelligent fully automated indoor greenhouse,which is not affected by the weather.Green and organic vegetables are grown throughout the year.The fully automated equipment can ensure that the vegetables thrive.It takes a small amount of time and energy to harvest green organic vegetables at home.When users harvest vegetables,there will often be a surplus of vegetables or a single category.At this time,users can sell their own vegetables or buy other types of vegetables through the platform of this article.It is worth emphasizing that only users of the greenhouse can sell vegetables on the platform,and the purchaser can be any user.While ensuring the source of vegetables,the platform also adopts a technical solution that combines the Hyperledger open source framework in the alliance chain with the traditional e-commerce system.The traditional e-commerce system is responsible for the traditional vegetable transaction function,and the blockchain system is responsible for storing the vegetable transaction information,which protects the user’s privacy information.At the same time,it can trace the source of the vegetables because of its correctness and immutability to further ensure the quality of the vegetables.The blockchain ledger is jointly maintained by all the greenhouse users,that is,merchants on the chain.The distributed maintenance ledger greatly increases consumers’ trust in the platform and merchants.At the same time,the existence of the platform allows vegetables to pass directly from growers to consumers,avoiding cumbersome intermediate links,and greatly reducing economic and time costs.This article starts with the actual trading situation of vegetables,analyzes the business process and functional requirements of the platform,and then combines the technical characteristics of the blockchain hyperledger to design the technical architecture of the platform and the architecture of the Fabric points transaction system.The detailed transaction process,smart contract,consensus algorithm and encryption algorithm of the blockchain system,the realization of data synchronization and the database are all designed in detail.The blockchain system of this platform uses Go for programming,and the traditional e-commerce platform uses Node.js to implement the application interface.Currently,platform implementation and testing have been completed. |