| With the further expansion of the scale of aquaculture in China,the total amount of aquatic products entering the market has increased year by year.At present,advanced information technology is not used in aquatic product transactions,and the collection of measurement data in aquatic product transactions is still at the stage of manual entry.In order to ensure the reliability of measurement data in aquatic product transactions and maintain the economic interests of aquaculture farmers and purchasers,this article proposes a model of aquatic product transaction measurement data collection,transmission and storage that combines blockchain technology with Internet of Things technology.The model includes three parts of the data collection platform,blockchainbased data transmission security and blockchain-based data storage security.The data collection platform collects weighing data and related information,and then uses blockchain technology to upload the data directly to the blockchain network.The blockchain network is used to realize the distributed storage of data.Users can trace the data by querying the data.In order to complete the above model,the main research done in this paper is as follows:(1)Analyze the problems and user needs in the aquatic product transaction process,combine the blockchain and the Internet of Things technology,design the automatic collection and transmission security model of aquatic product transaction measurement data based on the blockchain technology,and realize the aquatic product transaction measurement The automatic collection and transmission of data will store the measurement data in the blockchain to prevent data tampering and provide users with credible data.(2)Aiming at the problem of manual entry of weighing data in traditional aquatic product transactions,a data collection platform based on Raspberry Pi was constructed.A complete data acquisition platform is inseparable from the support of hardware and software.The portable electronic scale is connected to the Raspberry Pi to realize automatic collection of weighing data,and the data is processed and uploaded.The hardware composition includes the Raspberry Pi control board and portable electronics.Scale,GPS positioning module,NB-IOT communication module and human-computer interaction module.(3)In response to the problem of easy leakage and tampering of data in traditional Internet of Things data transmission and the problem that blockchain technology cannot guarantee the authenticity of data before the chain,the blockchain node is deployed on the Raspberry Pi platform,and the collected data Directly on the chain,reduce manual intervention in the data circulation link,and ensure the authenticity of the data from the source.Use Fabric member management service components to confirm the true identities of network members and ensure the reliability of data sources;use Fabric encryption services to ensure that data transmission is not easy to leak or tamper with;encryption services mainly include hash algorithms,elliptic curve algorithms,and elliptic curve numbers signature.In addition,in view of the problem of centralized data storage in the traditional Internet of Things,the blockchain network is used to implement distributed data storage,and the data is stored in the block structure.When the data changes,the hash value of the Merkel tree root node changes.In order to ensure that the data is not tampered with.The PBFT consensus mechanism ensures the consistency of distributed ledger data.Aiming at the current problems in aquatic product transactions,this paper proposes a model of aquatic product transaction measurement data collection,transmission and storage by combining blockchain technology and Internet of Things technology.Build the Hyperledger Fabric alliance chain blockchain network,and design and write smart contracts such as data upload and data query.Through related experimental tests,it is found that the system performance meets the design requirements,can realize the automatic collection of measurement data,and ensure the data transmission and storage process The security in China provides users with trusted measurement data.The combination of blockchain and the Internet of Things can effectively ensure the security of data. |