NewModel of Food Supply Chain Finance Based on the Internet of Things and Blockchain

-e grain supply chain not only broadens the financing channels for small and medium-sized enterprises in the supply chain and strengthens the cohesion of the supply chain but also opens up new business models and sources of profit for commercial banks. -is article aims to study the use of advanced information technologies such as mobile Internet, Internet of -ings (IoT) transmission, BT, and other advanced information technologies to design intelligent grain depot integrated systems based on the IoT technology, in accordance with the principles of practicality and advancement, to realize the informatization of the daily management of the grain depot and provide construction experience for the informatization construction of the food industry. -is article proposes a detailed summary of several models of agricultural supply chain finance from the perspective of supply chain management and analyzes the applicable conditions and basic processes of these models. It also analyzes the structure of the agricultural supply chain through typical cases, introduces the operation of supply chain finance, and evaluates and analyzes its effectiveness and problems. -e experimental results in this paper show that, compared with other storage methods, this solution has obvious advantages in data query efficiency and data storage cost. Without a central server, the entire distributed system will have a certain degree of efficiency, reliability, and cost-effectiveness. When the amount of grain data reaches 100,000, 1 million, and 10 million, the system data integrity check time is 0.0263 seconds, 0.3251 seconds, and 1.5032 seconds, respectively. -e program seems very useful.


Background.
Our country is facing severe food security issues. Establishing and improving the development mechanism of my country's food supply chain is an effective measure to ensure the stability and safety of domestic food. In response to changes in the domestic and international situation, food companies have begun to build a food supply chain system to promote the close coordination of business operation procedures and the use of information systems in the process of food production and processing, to achieve the goal of efficient circulation and sharing of information in the supply chain, and ultimately improve. e overall efficiency of the supply chain reduces the difficulty of tracing responsibility and government supervision. ere are various problems in the traditional grain industry. Nowadays, some grain companies follow the new era of "Internet +" to create a service platform with symmetrical information between supply and demand parties, providing supply and demand service information, logistics information, price information, and so forth. It can solve the problem of the asymmetry of food supply and demand information. Due to these food information problems, coupled with the numerous links in the food supply chain, the problem of excessive costs caused by it can be correspondingly alleviated.
e "Internet +" food supply chain is to break the traditional development model of the food industry and develop it into a new type of food supply chain that meets the needs of the market.
faster. Grain production suppliers, grain processing companies, grain distributors, and grain end consumers can learn about food market-related information in real time, improve the transparency of the food market, promote the exchange of corporate information in all links of the food supply chain, reduce the undesirable results caused by unnecessary information asymmetry, improve the stability of the food supply chain, and resolve the contradiction between food supply and demand. Related departments provided references and ideas. e expansion from the sales end to the production end will drive the formation of a market-oriented approach that combines "Internet +" with a green development of production organization, which is in line with the structural reform of the food supply side. In the new era of "Internet +," adopt the new mode of innovative marketing of grain economy enterprises, build a grain online and offline e-commerce platform, and establish a grain network to develop the grain economy, thereby broadening grain distribution channels and promoting grain information flows quickly.
e grain e-commerce platform integrates the information from both the grain producer and the grain consumer and reflects the supply and demand information of the grain market in real time, thus effectively solving the problem of grain information asymmetry.

Related Work.
Mattevi and Jones' research has shown testing traceability concepts, driving factors, system characteristics, benefits and barriers, and understanding of the framework, with a focus on British SMEs operating in the food supply chain. It was also found that small and mediumsized enterprises did not regard technology as a driving force for traceability. In the field of supply chain, with the rapid development of Internet technology, many emerging technologies have been applied to the traceability system [1]. However, due to the uncertainty of the experimental process, there are still gaps in the experimental results. Tian et al. believe that the new technology of blockchain (BT) is a breakthrough innovation in decentralized information technology, and it proposes a new method. When faced with massive amounts of data in the real world, scalability has become a primary and urgent issue [2,3]. However, since this technology is still in its infancy, it has some inherent flaws. e purpose of Ambekar's research is to model the distribution phase of the public distribution system (PDS) and optimize the inventory strategy in this phase, so as to solve some low-efficiency problems in the system. In this study, the supply chain is modeled as a multistage supply chain composed of a warehouse, distribution center, parity store, and cardholder. e two-stage modeling method is used to model the distribution phase in PDS [4,5]. However, there are many influencing factors in this research process, so the experimental results have certain differences.

Innovation.
e innovation of this article is as follows: (1) proposing a data-sharing scheme based on BT, which comprehensively considers the security and efficiency of data sharing; (2) using the advantages of BT technology, applying BT technology to the traditional agricultural product supply chain based on the IoT technology, and designing the concept and reference frame of the agricultural product supply chain system based on BT and IoT technology; and (3) the combination of BT technology and the IoT improving the transparency and efficiency of the supply chain. is article demonstrates the application of IoT BT in the supply chain field and its advantages and disadvantages [6,7].

Related Algorithms of Food Supply Chain
rough the pallet "+" technology supervision model, it is possible to realize the intelligent supervision of movable assets and the digitization of assets, successfully connect the grain assets of upstream and downstream enterprises in the grain industry supply chain with the funds of financial institutions such as banks, help enterprises in the grain supply chain solve financing problems, and enable financial institutions to quickly cut into the financial services of the food supply chain [8,9].

Service Description Matching
Definition 3.1. Service description file D � {t l , t 2 , . . ., t n }, where t is the characteristic condition of the service description and n is the number of characteristic conditions [10,11].
Definition 3.2. Service description file feature vector w 1 , w 2 , . . . , w n , where w j is the corresponding weight in the service description file [12,13]. e weight of feature condition j in service description file i can be expressed as where tf ij is the number of feature condition j in service description file i, N is the total number of service description files, and df j is the number of service description files containing feature condition j [14,15].
If the feature vector of the requested service description file is W r � W r,1 , W r,2 , . . . , W r,n , the feature vector of the service in C a is W c � W c,1 , W c,2 , . . . , W c,n , and C a is the angle between W r and W c ; the similarity is shown as follows [16,17]:

Mobile Information Systems
Among them, W r,i is the weight of the i th characteristic condition in the description file D r and W c,i is the weight of the i th characteristic condition in the description file D c . If Sim(W r , W c ) > δ b , the service description match is satisfied, and S c is added to C b [18,19].

Dimensionless Qos Parameters.
According to the different measurement methods and values of QoS parameters, it can be divided into numerical type, text type, hierarchical type, and Boolean type [20,21]. Among them, the numerical type can be divided into the precise type and interval type. It uses specific numerical values to indicate the value of QoS parameters, such as 0.5, [2,5]

Standardization of Precision Parameters.
From the service quality trend attribute in the introduced QoS parameter model, it can be seen that different QoS parameters have different influences on the comprehensive QoS of the service, including two relations of proportional and inverse [24,25]. When the QoS parameter is a proportional parameter, the standardized formula is shown as follows: Similarly, when the QoS parameter is an inversely proportional parameter, the standardization is as follows:

Standardized Processing of Interval Data.
Different from the uniqueness of precise data, interval data has two values: an upper limit and a lower limit. Here, a standardization method similar to that of precise data is adopted; that is, the upper and lower limits of the interval are first standardized and then the average is taken. If the QoS parameter is a proportional parameter, it is shown in the following standardized formulas: Among them, the j-th service quality parameter value q ij � [q ij , q ij ] of the i-th service in the service set C is to be selected; that is, q ij and q ij are the upper and lower limits of the corresponding interval and q max and q min are the upper and lower limits of all intervals in the jth column of matrix Q, respectively. e maximum value and minimum value of the lower limit: q max j is the maximum value of the upper limit of the interval, V ij and V ij are the standardized results of the upper and lower limits of the interval, and the average of the two is taken to obtain the standardized result corresponding to V ij . Similarly, when the QoS parameter is an inversely proportional parameter, the following standardized formulas are shown [26,27]: If the same QoS parameter value in the candidate service set has both an accurate value and an interval value, the accurate value is regarded as a special interval value, namely, q ij � q max � q min , and then standardized [28,29].

Coupling Mapping Lattice.
e commonly used asymmetric diffusion coupled lattice model can be written as From it, the following three typical spatiotemporal chaotic system models evolved.

Mobile Information Systems
One-way coupled map lattice model: Two-way coupled map lattice model: Whole coupled map lattice model: In equations (5)- (8), i is the discrete time coordinate, n is the discrete space coordinate, ε is the coupling coefficient, L is the length of the system, and the nonlinear image f(x n (i)) reflects the local reaction process. At present, the first two models are mainly used when studying the application of spatiotemporal chaos in information encryption.

Based on the Design of the Food Supply Chain
Financial System e food supply chain has a dual meaning, that is, a narrow and broad food supply chain. e narrow meaning refers to the active construction of a supply chain centered on the logistics and information flow of food products when food products reach the end users. In a broad sense, the grain supply chain refers to the logistics and information network centered on grain logistics during the process of grain production, processing, and circulation and then to the final consumer.

Defects of the Traditional Centralized Food Supply Chain
Financial System. Traditional supply chain financial systems mostly use centralized system architecture design. ere is an absolutely trusted institution in the centralized system architecture. All users participating in the system agree with this trusted institution. e agency can solve problems in system transactions, such as preventing fraud, encrypting transaction privacy data and system user data, preventing the system from network attacks, and so on. Banks, Alipay, and so on are typical centralized system architectures.
e centralized system architecture diagram is shown in Figure 1.
Although the centralized system architecture can solve fraudulent behaviors in the transaction process to a certain extent and protect the privacy data of system users, the centralized system architecture still has the following problems: (1) a reliable institution in the central system can read the data of any user in the system, because there is no effective way to supervise the central institution, and the central institution abuses the data. (2) In the case of the central system, there are gaps in the system design of the trust center, and system privacy data may be lost, transaction data may be compromised, or the central organization may resell user data. You can violate the system at will for the benefit of organizing your data.

Architecture Design of Supply Chain Financial System.
According to the overall architecture design, the system is divided into the basic financial platform and business service platform. e core financial platform mainly includes the BT level and financial service level. e BT layer is based on the hyperledger fabric project and creates basic level BT technology for data transmission services such as data security storage and data synchronization. e service interface is the service level provided to the business service platform, which is used to quickly access the BT network layer for data interaction. e operation and maintenance platform provides BT network level and financial services, required operation, and maintenance functions. e business service platform mainly includes the back end of supply chain finance and the front end of supply chain finance. Its main function is to act as a platform level to transfer various business processes to the financial sector, and various functions can be added, specific companies to meet different operational needs. Figure 2 shows the architecture of the whole system.

Module Docking.
e BT network is mainly connected to the service interface module and connected with the service interface to provide BT services at the back end of supply chain finance. It includes the BT management module, BT service module, and distributed network service module. e structure of the BT network and interface services is shown in Figure 3.
As can be seen from Figure 3, member management includes member registration, member comments, and member authentication. BT services perform related management consents and P2P communication management functions. e code chain service performs chain code container and chain code development operations. Distributed workbooks store data in business processes. e service interface includes four functional modules: fabric SDK, privilege management, certificate management, and plan control. ey provide supply chain finance with interfaces for packet and call delivery, certificates, and permissions. Among them, scheduling control is to enter the financial back end call of the supply chain, call certificate management, user identity and privilege management, and the result-based SDK call to realize the requested function. Authority management is responsible for managing the role and operation authority of the supply chain system. Certificate management platform client functions are associated with certificates.

Food Supply Chain Driven by the IoT and BT
e purpose of the grain warehousing process driven by IoT technology is to accurately collect the information of the grain in the warehouse and to put the grain in the warehouse and place it in the appropriate storage area. Using RFID technology in the IoT technology can improve the accuracy of information collection and reduce time and labor costs.

Inspection.
Grain classification in the grain inspection process is an important part of the grain storage process and is directly related to the quality of grain storage. e biggest problem with the barn is that it is not strictly monitored during the grain inspection process. erefore, it is very important to conduct real-time inspections during the storage inspection stage to inspect grains. At present, rice, wheat, and corn are the most widely grown grains in our country. erefore, rice, wheat, and corn are the most stored grains in granaries. erefore, in this case, the inspection of rice is taken as an example to illustrate the inspection of grain.
As shown in Tables 1 and 2, take the rice warehousing as an example. In the grain inspection, the inspector randomly samples the grain in the grain truck and uses related instruments to determine the roughness rate and the whole rice rate of the sampled rice and the pollutants according to the standard. e rice grains are graded and then operated in accordance with the operating specifications of the granary.
ose that meet the storage requirements are put into the warehouse, and those that do not meet the requirements are returned. At the same time, the whole process of video image monitoring needs to be carried out during the grain inspection stage to ensure that there is no interference from other factors in the incoming grain inspection, and at the same time, when the result of the grain inspection fails, the problem can be quickly found. Table 3 shows the traceability query time for 100,000 batches of grain data. Since the supply chain currently has 5 levels, the traversal depth is 5. It can be seen that, for enough data, the query time is within 10 seconds. Mobile Information Systems e storage and retrieval duration of smart contract queries depends on the gas value of the transaction. erefore, the higher the gas value, the faster the creation of transactions on the Ethereum blockchain, but the higher the corresponding cost. e following table shows the relationship between gas consumption and production time. You will see that the higher the gas usage on the horizontal axis, the shorter the actual average transaction time. e cost of using the public chain to store data in the transaction segment price is only $0.000005, while the cost of the public chain to store all traceable initial information is $1.76. e conclusion drawn from Figure 4 is that, using GrainTrail's decentralized storage solution, Neo4j for auxiliary storage can minimize the storage cost of the BT, while using the BT as a necessary tool to ensure that data cannot be tampered with and, at the same time, increase the credibility of the system. Because the Neo4j graph database has outstanding performance in traversal query, it can support users' complex query functions.

Conclusions
In the rural grain financial market, the competition of financial institutions presents the characteristics of diversification and diversity. Food financial institutions can fully use their role in the food production supply chain and market value chain to establish a network serving food production, thereby establishing an important position in food. Some financial institutions are exploring and summarizing the supply chain financing models suitable for the development of local grain industrialization and promoting them, which has promoted the expansion of the grain supply chain financing business scale. Supply chain finance has many customers, but the focus is on the core enterprise, which is the leader of the supply chain organization. In a sense, choosing a supply chain is choosing a core enterprise,   and seizing the core enterprise is the key. Grain financial institutions are familiar with the grain market and have a large amount of valuable information about core corporate customers. Grain financial institutions should combine their own advantages in the supply chain and customer structure, step by step, and promote the grain supply chain finance of the factory in stages. Financial institutions can use online platforms to carry out online grain supply chain financing services. Loan application, review, loan issuance, and so on can all be done online. Taking innovation as a breakthrough, expand the supply chain financial service model. Financial institutions should actively innovate and explore diversified supply chain financing service models and introduce equity in accordance with the development stage of the supply chain and the different financial needs of agricultural planting, animal husbandry and fishery breeding, crop processing, agricultural raw material supply, and agricultural product sales. Modern financial service methods such as custody and trust financing promote the rapid and healthy development of the supply chain.
Data Availability e data that support the findings of this study are available from the corresponding author upon reasonable request.

Conflicts of Interest
e author declares no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.