CN108694584B - Grain safety tracing and exciting method and system based on block chain - Google Patents

Grain safety tracing and exciting method and system based on block chain Download PDF

Info

Publication number
CN108694584B
CN108694584B CN201810751103.XA CN201810751103A CN108694584B CN 108694584 B CN108694584 B CN 108694584B CN 201810751103 A CN201810751103 A CN 201810751103A CN 108694584 B CN108694584 B CN 108694584B
Authority
CN
China
Prior art keywords
block chain
grain
management module
contract
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810751103.XA
Other languages
Chinese (zh)
Other versions
CN108694584A (en
Inventor
刘齐
乐天
宋晓丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZHIXING COLLEGE OF HUBEI University
Original Assignee
Zhixing College of Hubei University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhixing College of Hubei University filed Critical Zhixing College of Hubei University
Priority to CN201810751103.XA priority Critical patent/CN108694584B/en
Publication of CN108694584A publication Critical patent/CN108694584A/en
Application granted granted Critical
Publication of CN108694584B publication Critical patent/CN108694584B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/381Currency conversion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0208Trade or exchange of goods or services in exchange for incentives or rewards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/02Agriculture; Fishing; Forestry; Mining

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Marketing (AREA)
  • Game Theory and Decision Science (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Agronomy & Crop Science (AREA)
  • Animal Husbandry (AREA)
  • Marine Sciences & Fisheries (AREA)
  • Mining & Mineral Resources (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Primary Health Care (AREA)
  • Tourism & Hospitality (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a grain safety tracing and exciting method and system based on a block chain, which can know the accurate source of a grain production area for grain collection of a granary; for the purchasing merchants, the purchasing merchants can be encouraged to obtain credit evaluation approved by each party through honest operation, so that grains can be better collected; for farmers, certain market feedback and bonus can be obtained, the farmers are encouraged to submit grains well and quickly, high-reputation acquisition merchants are found to sell the grains, planting technology is continuously improved, and better improved varieties are selected; for a supervision department and an end user, the specific storage and circulation processes of grain raw materials can be inquired by product tracing; for grain product production enterprises, the enterprises can obtain complete grain circulation data, and the market competitiveness of the enterprises is improved; for the grain department, the token can be rewarded, so that the related grain subsidies can play a half-effort effect, and the economic benefit of the subsidies is maximized.

Description

Grain safety tracing and exciting method and system based on block chain
Technical Field
The invention relates to the technical field of grain block chains, in particular to a grain safety tracing and exciting method and system based on a block chain.
Background
At present, the food is generally purchased from a buyer to a farmer. And then the grain is transported to a grain depot by a purchasing company for storage. In this connection, grain depots are not clear where the grain of the buyer came from. Meanwhile, the credit rating of the purchaser cannot be established because there is not enough data approved by multiple parties. At present, food products on the market can not be traced. So that the consumer cannot be confident of the original source of the product. When a safety problem occurs, a supervisor cannot accurately check which step has the problem.
Meanwhile, the related subsidies of the food departments usually aim at a certain item or a certain group, and cannot accurately subsidize relevant links in the whole industrial chain, so that the incentive effect is single. The secure issuance of subsidies is itself a time consuming and costly process.
Based on the above, aiming at the limitations existing in the current situation, the invention provides a grain safety tracing and exciting method and system based on a block chain, which are convenient for supervision and transparent publicization, can establish credit evaluation and tracing grain sources and excite the working energy efficiency of farmers and production enterprises.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a grain safety tracing and exciting method and system based on a block chain, which are convenient to supervise and transparently disclose, can establish credit evaluation and trace grain sources and excite the working energy efficiency of farmers and production enterprises.
The technical scheme adopted by the invention for solving the technical problems is as follows:
the first illustrative aspect of the invention relates to a grain safety tracing and exciting method based on a block chain, which comprises the following steps:
s1, establishing a block chain network consisting of a supervision platform, a purchase platform, a storage platform, a production enterprise platform and consumers;
s2, triggering an intelligent contract in the block chain according to a record submitted by a network node application of the collecting and storing platform, wherein the intelligent contract comprises a grain collecting contract and a delivery contract, if the intelligent contract is the grain collecting contract, turning to the step S3, and if the intelligent contract is the delivery contract, turning to the step S4;
s3, if the intelligent contract is a grain collection contract, calculating to obtain the credit value of the corresponding purchasing company on the purchasing platform and the reward token of the corresponding farmer of the purchasing company, and simultaneously determining whether to generate a new block to be linked to the corresponding link network through the storing platform and the monitoring platform;
s4, if the intelligent contract is an ex-warehouse contract, acquiring final commodity subpackaging information after production of a corresponding production enterprise on the production enterprise platform is finished;
s5, the block chain network acquires the data query request and feeds back the tracing data contained in the contract corresponding to the data query request;
and S6, the consumer can make evaluation feedback according to the obtained traceability data, trigger satisfaction feedback contracts in the block chain, and other network nodes can pay certain reward tokens to the peasant household according to the evaluation feedback information of the consumer and the evaluation feedback information of the excellent evaluation.
On the basis of the grain security tracing and incentive method based on the block chain in the first aspect, an exemplary second aspect of the present invention is that, in step S2, the intelligent contract further includes a pre-purchase contract, specifically:
s201, the acquisition trader puts forward grain to the farmers;
s202, the grain receiving information is uploaded to a block chain by a buyer through a buyer terminal at a buyer node;
s203, the block chain sends a pre-acquisition contract to the farmer terminal, and simultaneously sends information of the reward token corresponding to the pre-acquisition contract.
On the basis of the grain safety tracing and excitation method based on the block chain in the second aspect, an exemplary third aspect of the present invention is that the step S3 specifically includes:
s301, the grain is handed over to a grain depot on the storage platform by the purchasing company within the specified time, the step S302 is switched to, and if the grain is not handed over after overdue, the step S303 is switched to;
s302, uploading the purchasing completion information to a block chain by the grain depot, generating a purchasing contract, increasing the credit value of a purchasing merchant, charging corresponding reward tokens into the account number of the corresponding farmer, and terminating purchasing;
s303, deducting a certain credit value of the purchasing company, if the purchasing company pays the grain after time-out, determining whether to continue purchasing by the grain depot, if yes, going to the step S302, reducing the reward token to 1/3 of the original value, and if not, terminating purchasing.
Based on the grain security tracing and incentive method based on the block chain in the third aspect, an exemplary fourth aspect of the present invention is that in the step S3, the calculation method of the reward token specifically includes:
M=T*Q*C*T,
wherein M is the actual rewarding token obtained by each transaction of the peasant household, T is the grain volume of the transaction, Q is the grain quality coefficient, C is the credit coefficient of the buyer, and T is the time coefficient of the buying company to the grain depot.
Based on the grain security tracing and incentive method based on the block chain in the first aspect, an exemplary fifth aspect of the present invention is that in the step S6, the calculation method of the reward token specifically includes:
bonus=S*amount,
wherein, bonus is the reward token paid by other network nodes to the peasant household, S is the satisfaction, and amount is the transaction amount.
On the basis of the grain security tracing and incentive method based on the blockchain in the first aspect, an exemplary sixth aspect of the present invention is that whether the triggered intelligent contract is completed or not is determined by the relevant network node in the corresponding flow, if the agreement is achieved, the ledger related to the intelligent contract is validated, and if the agreement is not achieved, the ledger related to the intelligent contract is invalidated.
The seventh exemplary aspect of the present invention relates to a grain safety tracing and incentive system based on a block chain, which includes:
the acquisition platform system comprises a Web module, a user management module, a credit management module, a push notification module, a transaction module, a first account management module and a first PeerNode block link interface, the Web module is used for providing two service interfaces for farmers and buyers, the user management module is used for managing user registration and identity information, the credit management module is used for managing and recording the credit value of the purchasing company, the push notification module is used for pushing related platform notification to the farmer terminal, the transaction module is used for generating corresponding grain receiving transaction information and calling a first PeerNode block chain interface, writing information into a block chain through a gRPC protocol, wherein the first account management module is used for managing the relative transaction action of the rewarded token of the user, the bonus token transaction information is written into the blockchain through a first PeerNode blockchain interface, the first PeerNode block link port is used for basic calling SDK of block chain Peer node communication;
the collection and storage platform system comprises a delivery management module, a collection and storage management module, a second account management module and a second Peernode block chain interface, wherein the collection and storage management module is used for receiving transaction information sent by the collection and storage platform system and triggering the collection and storage platform system together to generate a grain collection contract, the delivery management module is used for writing corresponding delivery information into a block chain when a grain production enterprise sells grains from a grain bin and generating a corresponding batch unique code, the second account management module is used for managing related transaction actions of rewarded token tokens of a user, the transaction information of the rewarded token tokens is written into the block chain through the second Peernode block chain interface, and the second Peernode block chain interface is used for basic calling SDK of Peer node communication of the block chain;
the production enterprise platform comprises a goods inlet management module, a subpackage delivery management module, a third account management module and a third PeerNode block link interface, the loading management module is used for taking the information loaded from the granary out of the block chain and connecting a supply chain platform of the production enterprise, storing the batch unique code, the system is communicated with a delivery management module to trigger and generate a delivery contract, the subpackaging delivery management module is used for correspondingly storing the final product packaging batch number and the unique granary batch code of the input goods into a block chain, and provides the product tracing interface and the webpage interface for the consumer, and triggers and generates the satisfaction feedback contract together with the consumer, the third account management module is used for the production enterprises to make marketing reward measures according to the evaluation feedback information of the consumers, corresponding reward tokens are charged into corresponding farmer accounts, the third PeerNode block chain interface is used for basic calling SDK of the block chain Peer node communication; and
the supervision platform system comprises a query traceability module, a fourth account management module and a fourth PeerNode block chain interface, wherein the query traceability module is used for calling the block chain interface and querying the traceability information of grains according to the product number, and the fourth account management module is used for making a corresponding exchange contract according to a subsidized corresponding policy to exchange prizes for rewarding token users on the block chain;
the acquisition platform system, the collection and storage platform system, the production enterprise platform and the supervision platform system form a block chain network with each terminal through corresponding PeerNode block chain interfaces.
In an eighth exemplary aspect of the present invention, based on the grain security tracing and incentive system based on the block chain in the seventh aspect, the credit management module queries the information class stored in the block chain by calling the first PeerNode block chain interface to calculate the credit value of the acquirer.
Compared with the prior art, the invention has the beneficial effects that:
1. for grain collection of the granary, the accurate source of the grain production area can be known.
2. For the purchasing merchants, the merchants can be encouraged to obtain credit evaluation approved by all parties through honest operation, so that grains can be received better.
3. For farmers, certain market feedback and bonus can be obtained, the farmers are encouraged to submit grains well and quickly, high-reputation acquisition merchants are found to sell the grains, planting technology is continuously improved, and better improved varieties are selected.
4. For the supervision department and the terminal user, the specific storage and circulation processes of the grain raw materials can be inquired by product tracing.
5. For grain product production enterprises, the enterprises can obtain complete grain circulation data and improve the market competitiveness of the enterprises.
6. For the grain department, the token can be rewarded, so that the related grain subsidies can play a half-effort effect, and the economic benefit of the subsidies is maximized.
Drawings
The invention is further illustrated with reference to the following figures and examples.
FIG. 1 is a schematic flow diagram of the present invention;
FIG. 2 is a flow diagram of the present invention;
FIG. 3 is a block diagram of a system of the present invention;
FIG. 4 is a schematic flow chart of an acquisition scenario in accordance with the present invention;
FIG. 5 is a schematic diagram of the reward token transfer algorithm of the present invention;
FIG. 6 is a schematic diagram of an algorithm flow of the storage process of the present invention;
FIG. 7 is a schematic diagram of the warehouse-out subpackage process according to the present invention;
FIG. 8 is a schematic diagram of a tracing process according to the present invention.
The reference numbers are as follows:
1. the system comprises a purchase platform system, 11, a Web module, 12, a user management module, 13, a credit management module, 14, a push notification module, 15, a module, 16, a first account management module, 17, a first Peernode block chain interface, 2, a collection platform system, 21, a collection management module, 22, a delivery management module, 23, a second account management module, 24, a second Peernode block chain interface, 3, a production enterprise platform, 31, a goods input management module, 32, a subpackage delivery module, 33, a third account management module, 34, a third Peernode block chain interface, 4, a supervision platform system, 41, an inquiry traceability module, 42, a fourth account management module, 43 and a fourth Peernode block chain interface.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1 and fig. 2, the grain safety tracing and excitation method based on a block chain according to the present invention includes the following steps:
s1, establishing a block chain network consisting of a supervision platform, a purchase platform, a storage platform, a production enterprise platform and consumers;
s2, triggering an intelligent contract in the block chain according to a record submitted by a network node application of the collecting and storing platform, wherein the intelligent contract comprises a grain collecting contract and a delivery contract, if the intelligent contract is the grain collecting contract, turning to the step S3, and if the intelligent contract is the delivery contract, turning to the step S4;
s3, if the intelligent contract is a grain collection contract, calculating to obtain the credit value of the corresponding purchasing company on the purchasing platform and the reward token of the corresponding farmer of the purchasing company, and simultaneously determining whether to generate a new block to be linked to the corresponding link network through the storing platform and the monitoring platform;
s4, if the intelligent contract is an ex-warehouse contract, acquiring final commodity subpackaging information after production of a corresponding production enterprise on the production enterprise platform is finished;
s5, the block chain network acquires the data query request and feeds back the tracing data contained in the contract corresponding to the data query request;
and S6, the consumer can make evaluation feedback according to the obtained traceability data, trigger satisfaction feedback contracts in the block chain, and other network nodes can pay certain reward tokens to the peasant household according to the evaluation feedback information of the consumer and the evaluation feedback information of the excellent evaluation.
In the above technical solution, the ex-warehouse information includes time, quantity, delivery location, serial number of the manufacturing enterprise, and the like, the reward token is a token that flows in the block chain of the present invention, and the farmer sells grains to the national grain depot through a high-credit acquisition merchant to obtain the reward token. The grain department can make some exchange plans at irregular intervals, so that the reward token can have certain official change ability.
The reward token can freely circulate in the block chain system. This enables the buyer to buy the reward token of the farmer in addition to the food accident of the farmer in the buying process. Therefore, the complicated process that farmers personally exchange for grain departments is omitted. And the exchange workload of the grain department is greatly reduced, and the efficiency is improved.
When the consumer conducts tracing inquiry, the intelligent chain and the manufacturer can collect evaluation feedback information of the consumer at the same time. For premium, good-rated products, the business or other entity may pay the farmer certain reward tokens to encourage the farmer to continue to maintain and improve the texture and taste of the food. Thus, by the effective feedback and excitation measures, farmers can be really encouraged to select high-quality rice seeds and scientifically plant the rice seeds
In specific implementation, in step S2, the intelligent contract further includes a pre-contract, specifically:
s201, the acquisition trader puts forward grain to the farmers;
s202, the grain receiving information is uploaded to a block chain by a buyer through a buyer terminal at a buyer node;
s203, the block chain sends a pre-acquisition contract to the farmer terminal, and simultaneously sends information of the reward token corresponding to the pre-acquisition contract.
In the technical scheme, the grain collecting information comprises longitude and latitude of transaction positions, quantity, names of farmers and mobile phone numbers.
In a specific implementation, the step S3 specifically includes:
s301, the grain is handed over to a grain depot on the storage platform by the purchasing company within the specified time, the step S302 is switched to, and if the grain is not handed over after overdue, the step S303 is switched to;
s302, uploading the purchasing completion information to a block chain by the grain depot, generating a purchasing contract, increasing the credit value of a purchasing merchant, charging corresponding reward tokens into the account number of the corresponding farmer, and terminating purchasing;
s303, deducting a certain credit value of the purchasing company, if the purchasing company pays the grain after time-out, determining whether to continue purchasing by the grain depot, if yes, going to the step S302, reducing the reward token to 1/3 of the original value, and if not, terminating purchasing.
In specific implementation, in the step S3, the method for calculating the reward token specifically includes:
M=T*Q*C*T,
wherein M is the actual rewarding token obtained by each transaction of the peasant household, T is the grain volume of the transaction, Q is the grain quality coefficient, C is the credit coefficient of the buyer, and T is the time coefficient of the buying company to the grain depot.
Wherein, the regulation rule of C is mainly formulated and graded by grain depot. Based on the formula, the enthusiasm of farmers and buyers can be fully mobilized, and grains can be handed in quickly and easily.
In specific implementation, in the step S6, the method for calculating the reward token specifically includes:
bonus=S*amount,
wherein, bonus is the reward token paid by other network nodes to the peasant household, S is the satisfaction, and amount is the transaction amount.
And in specific implementation, whether the triggered intelligent contract is completed or not is confirmed through the related network nodes in the corresponding flow, if the consensus is achieved, the ledger related to the intelligent contract takes effect, and if the consensus is not achieved, the ledger related to the intelligent contract fails.
As shown in fig. 3, a grain safety tracing and incentive system based on a block chain includes:
the acquisition platform system 1 comprises a Web module 11, a user management module 12, a credit management module 13, a push notification module 14, a transaction module 15, a first account management module 16 and a first PeerNode block link interface 17, the Web module 11 is used to provide two service interfaces for farmers and buyers, the user management module 12 is used to manage user registration and identity information, the credit management module 13 is used for managing and recording the credit value of the purchasing company, the push notification module 14 is used for pushing relevant platform notification to the farmer terminal, such as bonus token posting, bonus token redemption, etc., the transaction module 15 is configured to generate corresponding receive transaction information and invoke the first PeerNode blockchain interface, and writing the information into the block chain through a gRPC protocol, filling transaction information into the acquisition provider when the acquisition provider acquires the information to the farmer once, and scanning the mobile phone of the farmer by using the mobile phone. At this time, the mobile phone end of the farmer and the mobile phone end of the buyer can send a piece of transaction information to the transaction module of the system. The transaction module records transaction related information including, but not limited to, time, location, unit price of the transaction, volume of the transaction, pre-sent granary, and the like. This information is written into the blockchain, which generates a pre-store order. Meanwhile, the transaction module triggers an intelligent contract, a certain reward token value is transferred into a reward token account of a farmer according to the setting of the contract, the reward token value is usually a fixed value B, the first account management module 16 is used for managing the relative transaction action of the reward token of the user, the reward token transaction information is written into a block chain through a first Peernode block chain interface 17, and the first Peernode block chain interface 17 is used for basic calling SDK of the communication of the Peer nodes of the block chain;
the collection and storage platform system 2 comprises a delivery management module 22, a collection and storage management module 21, a second account management module 23 and a second Peernode block chain interface 24, wherein the collection and storage management module 21 is used for receiving transaction information sent by the collection and storage platform system 2 and jointly triggering the collection and storage platform system 2 to generate a grain collection contract, the delivery management module 22 is used for writing corresponding delivery information into a block chain when a grain production enterprise sells grains from a grain bin and generating a corresponding batch unique code, the second account management module 23 is used for managing reward token related transaction actions of a user, the reward token transaction information is written into the block chain through the second Peernode block chain interface 24, and the second Peernode block chain interface 24 is used for basic calling SDK of Peernode communication of the block chain;
the production enterprise platform 3 comprises an input management module 31, a subpackage output management module 32, a third account management module 33 and a third PeerNode block chain interface 34, wherein the input management module 31 is used for the production enterprise to take out the information of the input from the granary from the block chain and connect with a supply chain platform of the enterprise, store the batch unique code and communicate with the output management module 22 to trigger and generate an output contract, the subpackage output management module 32 is used for storing the final product packaging batch number and the input granary batch unique code into the block chain correspondingly, providing a product tracing interface and a webpage interface for the consumer and triggering and generating a satisfaction feedback contract together with the consumer, the third account management module 33 is used for the production enterprise to make a corresponding reward token for the corresponding farmer according to the evaluation feedback information of the consumer, the third PeerNode block chain interface 34 is used for basic calling SDK of block chain PeerNode communication; and
the supervision platform system 4 comprises a query traceability module 41, a fourth account management module 42 and a fourth PeerNode block chain interface 43, wherein the query traceability module 41 is used for calling the block chain interface and querying traceability information of grains according to product numbers, and the fourth account management module 42 is used for making corresponding exchange contracts according to the subsidized corresponding policies to exchange prizes for rewarding token users on the block chain;
the acquisition platform system 1, the storage platform system 2, the production enterprise platform 3 and the supervision platform system 4 form a block chain network with terminals (such as a consumer terminal, a farmer terminal and an acquisition and purchase business terminal) through corresponding PeerNode block chain interfaces.
In the above technical solution, the method for managing and recording the credit value in the credit management module 13 is as follows: the initial value C of the credit value of the purchasing company is 100; and performing corresponding addition and subtraction management according to the transaction information of the purchasing company, the spot check information of the platform side and the complaint information. For example, business rules such as 30 points for a false transaction, 10 points for a valid complaint, 5 points for 3 normal transactions, … … are identified to manage the buyer's credit.
The storage management module 21 is specifically configured to: when the purchasing merchant finishes purchasing and generates a pre-storage order from the block chain, the module monitors the time notice reaching the block chain and sends pre-storage information to the granary. The barn information system will gather this information and begin scheduling the corresponding smart barn into a ready state. When the purchasing company sends the grains to the grain bin for storage, the corresponding pre-storage order is executed. And writing the grain storage state and the intelligent storage information into the block chain. At this time, the intelligent contract is triggered to store, and a certain reward token is stored in the account number of the farmer according to the previously preset storage plan in the contract, and the calculation formula is as follows:
reward token M value of transaction is grain quantity T of transaction, grain quality coefficient Q, purchasing merchant credit coefficient C, purchasing merchant's time coefficient T of purchasing on-the-grain depot
The regulation rule of C is based on the grain depot and is graded.
When the purchasing company fails to send the grains to the grain bin within the expected time and overtime happens, the intelligent contract for purchasing is triggered, the pre-sold order is closed, and a certain credit score of the purchasing company is correspondingly deducted. If the standard of the grain warehouse for checking the grain does not reach the quality of the acquisition and storage, triggering an acquisition intelligent contract, and deducting a certain reward token (the account value of the reward token of the farmer can be negative) for the farmer by processing the acquisition overtime condition of the acquisition provider.
The batch unique code can be used for inquiring and tracking the track of grain storage and allocation in an information management system and a system in the granary.
In specific implementation, the credit management module 13 queries the information class stored in the block chain by calling the first PeerNode block chain interface to calculate the credit value of the purchaser.
Scheme example 1:
as shown in fig. 4, the acquisition scenario flow:
SG1, the purchasing manufacturer inputs the variety, price and purchasing amount to be purchased in the mobile phone app;
SG2, the peasant household opens the two-dimensional code in the mobile phone app; if the peasant household uses the system app, the step SG3 is reached, and if not, the step SG4 is reached;
SG3, the buyer scans the two-dimensional code in the mobile phone app of the peasant household. Go to step SG5
SG4, the buyer scans and inputs the mobile phone number of the farmer, and goes to step SG 5;
SG5, transaction completion, and related information reported to the transaction platform system from the mobile phone;
the SG6 and the transaction platform subsystem store the transaction information into the block chain;
SG7, transaction information are distributed to granary, supervision and other nodes on the blockchain by a P2P network;
SG8, after the granary and the supervision node confirm that the transaction is legal, the blockchain network forms a consensus, and the transaction information is finally stored in each node of the blockchain;
after the SG9 and the transaction are confirmed by the block chain, automatically triggering an acquisition intelligent contract of the block chain, and initiating an award token transfer from the subsidy user to the account number of the farmer;
SG10, if the blockchain network fails to agree, the barn or supervisory node overrules the transaction. The transaction platform can return the final result of the block chain to the mobile phone end, and specific reasons can be known to farmers and buyers.
In the algorithm agreed at step SG8, the granary and the supervising node make a decision whether to approve the transaction based on the traffic data in their respective information systems.
Scheme example 2:
as shown in fig. 5, the bonus token transfer algorithm implements the process of:
MB1, the payer (individual account, or other intelligent contract such as SG9), initiates an offer to transfer payment from account a to account B via the rewarded token management module on the node;
MB2, the proposal being broadcast over the network via P2P protocol between subsystem nodes;
MB3, each party of the network inquires the information of the account A on the own node, and determines whether the transfer is legal (such as whether the account has enough balance, whether the account is frozen, etc.);
MB4, if each network side confirms that the note account is legal, the transfer success consensus is reached;
MB5, the nodes of the payer have the consensus broadcast to the whole network, each node confirms that the consensus takes effect, modifies the consensus to obtain a local account book, and records the transaction;
MB6, if consensus is not achieved, returns payment error information to the payment means.
Because of the nature of the blockchain distributed ledger, the reward tokens present in each node ledger are secure, not tamperproof.
Scheme example 3:
as shown in fig. 6, the algorithm flow of the storage process is as follows:
SC1, the purchasing party delivers the grain to the granary, and the granary enters the relevant information from the purchasing platform to the corresponding transaction order after inspection, wherein,
SC1-1, if the grain quality or the delivery time can not meet the requirements of the granary, the granary triggers a credit contract, deducts the credit score of the purchasing merchant by 10 points, and the purchasing is terminated;
SC1-2, if the granary chooses to add points to the purchasing merchant, the credit score value of the purchasing merchant can be increased through the platform;
SC2, the trade information is sent to the block chain by the acquisition platform through the PeerNode interface module to show the completion of the trade.
SC3, the blockchain platform broadcasts the status of the transaction to other nodes via P2P protocol;
the SC4 and other nodes confirm that the transaction status is correctly modified, and a consensus is achieved; if the surface book state is inconsistent to achieve consensus, the state change fails, and the process is ended;
SC5, after the consensus is achieved, the collection and storage platform calls a subsidy intelligent contract to start calculating the final grain delivery subsidy of the peasant household;
the SC6, subsidy contract, will inquire the balance to subsidy public account, and detect whether the preset accords with the subsidy condition;
SC7, if the preset conditions are met, initiates a bonus token transfer, and the subsequent process is the same as the bonus token transfer algorithm process.
Thus, as a grain department supervisor can well utilize the characteristics of cross-regional chain tracing to understand that the release of the subsidy is related to the transactions, and the data can be used for further analyzing the effectiveness of the subsidy.
Scheme example 4:
as shown in fig. 7 and 8, the outbound and subcontract tracing process:
CK1, the granary delivers grains out of the warehouse, and the grain warehouse-out batch information is generated by calling the block chain through the storage platform;
CK2, blockchain network automation P2P, distributes these information to various nodes;
CK3, the production enterprise sends the product batch information to the block chain platform, and associates the product batch information with the ex-warehouse batch information;
CK4, the consumer scans the two-dimensional code on the commodity through the mobile phone app, initiates the inquiry and call to the enterprise platform, and fills in the satisfaction S;
the CK5 and the enterprise platform initiate a tracing request call to the block chain;
the CK6 and the block chain return the traceability information of the grain flow to the enterprise, and then the traceability information is fed back to the consumer;
CK7, block chain trigger satisfaction feedback contract, according to the function relationship of bonus ═ f (S, account), trigger a fund to transfer from subsidy user to farmer account, the concrete flow is the same as the realization process of the rewarding token transfer algorithm shown in figure 5, the selection of f function is suitable for the concrete service. Therefore, the consumer can inquire the traceability information of the commodity through the Web system of the manufacturer.
The foregoing shows and describes the general principles, essential features, and advantages of the invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (6)

1. A grain safety tracing and exciting method based on a block chain is characterized by comprising the following steps:
s1, establishing a block chain network consisting of a supervision platform, a purchase platform, a storage platform, a production enterprise platform and consumers;
s2, triggering an intelligent contract in the block chain according to a record submitted by a network node application of the collecting and storing platform, wherein the intelligent contract comprises a grain collecting contract and a delivery contract, if the intelligent contract is the grain collecting contract, turning to the step S3, and if the intelligent contract is the delivery contract, turning to the step S4;
s3, if the intelligent contract is a grain collection contract, calculating to obtain the credit value of the corresponding purchasing company on the purchasing platform and the reward token of the corresponding farmer of the purchasing company, and simultaneously determining whether to generate a new block to be linked to the corresponding link network through the storing platform and the monitoring platform;
s4, if the intelligent contract is an ex-warehouse contract, acquiring final commodity subpackaging information after production of a corresponding production enterprise on the production enterprise platform is finished;
s5, the block chain network acquires the data query request and feeds back the tracing data contained in the contract corresponding to the data query request;
s6, the consumer can make evaluation feedback according to the obtained tracing data, trigger satisfaction feedback contracts in the block chain, and other network nodes can pay certain reward tokens to farmers according to the evaluation feedback information of the consumer;
still include grain safety traceability and incentive system based on block chain, wherein the system includes:
the acquisition platform system comprises a Web module, a user management module, a credit management module, a push notification module, a transaction module, a first account management module and a first PeerNode block link interface, the Web module is used for providing two service interfaces for farmers and buyers, the user management module is used for managing user registration and identity information, the credit management module is used for managing and recording the credit value of the purchasing company, the push notification module is used for pushing related platform notification to the farmer terminal, the transaction module is used for generating corresponding grain receiving transaction information and calling a first PeerNode block chain interface, writing information into a block chain through a gRPC protocol, wherein the first account management module is used for managing the relative transaction action of the rewarded token of the user, the bonus token transaction information is written into the blockchain through a first PeerNode blockchain interface, the first PeerNode block link port is used for basic calling SDK of block chain Peer node communication;
the collection and storage platform system comprises a delivery management module, a collection and storage management module, a second account management module and a second Peernode block chain interface, wherein the collection and storage management module is used for receiving transaction information sent by the collection and storage platform system and triggering the collection and storage platform system together to generate a grain collection contract, the delivery management module is used for writing corresponding delivery information into a block chain when a grain production enterprise sells grains from a grain bin and generating a corresponding batch unique code, the second account management module is used for managing related transaction actions of rewarded token tokens of a user, the transaction information of the rewarded token tokens is written into the block chain through the second Peernode block chain interface, and the second Peernode block chain interface is used for basic calling SDK of Peer node communication of the block chain;
the production enterprise platform comprises a goods inlet management module, a subpackage delivery management module, a third account management module and a third PeerNode block link interface, the loading management module is used for taking the information loaded from the granary out of the block chain and connecting a supply chain platform of the production enterprise, storing the batch unique code, the system is communicated with a delivery management module to trigger and generate a delivery contract, the subpackaging delivery management module is used for correspondingly storing the final product packaging batch number and the unique granary batch code of the input goods into a block chain, and provides the product tracing interface and the webpage interface for the consumer, and triggers and generates the satisfaction feedback contract together with the consumer, the third account management module is used for the production enterprises to make marketing reward measures according to the evaluation feedback information of the consumers, corresponding reward tokens are charged into corresponding farmer accounts, the third PeerNode block chain interface is used for basic calling SDK of the block chain Peer node communication; and
the supervision platform system comprises a query traceability module, a fourth account management module and a fourth PeerNode block chain interface, wherein the query traceability module is used for calling the block chain interface and querying the traceability information of grains according to the product number, and the fourth account management module is used for making a corresponding exchange contract according to a subsidized corresponding policy to exchange prizes for rewarding token users on the block chain;
the acquisition platform system, the collection and storage platform system, the production enterprise platform and the supervision platform system form a block chain network with each terminal through corresponding PeerNode block chain interfaces; and the credit management module inquires the information class stored in the block chain by calling the first PeerNode block chain interface to calculate the credit value of the purchasing company.
2. The grain security tracing and incentive method based on block chain as claimed in claim 1, wherein in the step S2, the intelligent contract further comprises pre-procurement contracts, specifically:
s201, the acquisition trader puts forward grain to the farmers;
s202, the grain receiving information is uploaded to a block chain by a buyer through a buyer terminal at a buyer node;
s203, the block chain sends a pre-acquisition contract to the farmer terminal, and simultaneously sends information of the reward token corresponding to the pre-acquisition contract.
3. The grain safety tracing and exciting method based on the block chain as claimed in claim 2, wherein the step S3 specifically comprises:
s301, the grain is handed over to a grain depot on the storage platform by the purchasing company within the specified time, the step S302 is switched to, and if the grain is not handed over after overdue, the step S303 is switched to;
s302, uploading the purchasing completion information to a block chain by the grain depot, generating a purchasing contract, increasing the credit value of a purchasing merchant, charging corresponding reward tokens into the account number of the corresponding farmer, and terminating purchasing;
s303, deducting a certain credit value of the purchasing company, if the purchasing company pays the grain after time-out, determining whether to continue purchasing by the grain depot, if yes, going to the step S302, reducing the reward token to 1/3 of the original value, and if not, terminating purchasing.
4. The grain security tracing and incentive method based on block chain as claimed in claim 3, wherein in the step S3, the calculation method of the reward token is specifically as follows:
M=T*Q*C*T,
wherein M is the actual rewarding token obtained by each transaction of the peasant household, T is the grain volume of the transaction, Q is the grain quality coefficient, C is the credit coefficient of the buyer, and T is the time coefficient of the buying company to the grain depot.
5. The grain security tracing and incentive method based on block chain as claimed in claim 1, wherein in the step S6, the calculation method of the reward token is specifically as follows:
bonus=S*amount,
wherein, bonus is the reward token paid by other network nodes to the peasant household, S is the satisfaction, and amount is the transaction amount.
6. The grain security tracing and incentive method based on block chains as claimed in claim 1, wherein the triggered intelligent contract is confirmed to be completed or not by the related network node in the corresponding process, if the consensus is achieved, the ledger related to the intelligent contract is validated, and if the consensus is not achieved, the ledger related to the intelligent contract is invalidated.
CN201810751103.XA 2018-07-10 2018-07-10 Grain safety tracing and exciting method and system based on block chain Active CN108694584B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810751103.XA CN108694584B (en) 2018-07-10 2018-07-10 Grain safety tracing and exciting method and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810751103.XA CN108694584B (en) 2018-07-10 2018-07-10 Grain safety tracing and exciting method and system based on block chain

Publications (2)

Publication Number Publication Date
CN108694584A CN108694584A (en) 2018-10-23
CN108694584B true CN108694584B (en) 2021-11-30

Family

ID=63850059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810751103.XA Active CN108694584B (en) 2018-07-10 2018-07-10 Grain safety tracing and exciting method and system based on block chain

Country Status (1)

Country Link
CN (1) CN108694584B (en)

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109493085B (en) * 2018-10-26 2022-03-15 电子科技大学 Method for judging label to be copied based on block chain technology
WO2020087447A1 (en) * 2018-11-01 2020-05-07 河南紫云云计算股份有限公司 E-commerce transaction method and platform constructed based on h5-technology digital wallet
CN109325767A (en) * 2018-11-01 2019-02-12 河南紫云云计算股份有限公司 Based on the electric business method of commerce built with the digital wallet of H5 technology and platform
CN111144893B (en) * 2018-11-06 2023-09-12 航天信息股份有限公司 Grain transaction detection system, method and device based on blockchain
CN109446845A (en) * 2018-11-15 2019-03-08 蒋魁 A kind of information processing system and method based on block chain
CN109377228A (en) * 2018-11-21 2019-02-22 北京小米移动软件有限公司 A kind of commodity circulation information based on block chain deposits card method and system
CN109472701A (en) * 2018-11-22 2019-03-15 西昌学院 A kind of pesticide herd product life cycle traceability system and its operation method
CN109493096A (en) * 2018-11-22 2019-03-19 北京知道创宇信息技术有限公司 A kind of product traceability method, apparatus and its storage medium
CN109685551A (en) * 2018-12-05 2019-04-26 深圳正品创想科技有限公司 Information processing method and its device, server and information processing system
CN110096549A (en) * 2019-04-08 2019-08-06 中科云创(北京)科技有限公司 Mantenance data maintaining method and system based on block chain
CN110189225A (en) * 2019-05-27 2019-08-30 广东兰贝斯科技有限公司 A kind of food fast transaction method based on block chain
CN111445357A (en) * 2019-11-26 2020-07-24 杭州亿房达科技有限公司 Commodity room market trading subject credit quantification and excitation method based on block chain intelligent contract
CN110969488A (en) * 2019-12-05 2020-04-07 四川芯辰光微纳科技有限公司 Anti-counterfeiting traceability reward algorithm and system based on information entropy
CN111127037B (en) * 2019-12-19 2024-01-05 盐城工学院 Commodity universal anti-counterfeiting method based on blockchain account system
CN111242418B (en) * 2019-12-30 2024-06-07 航天信息股份有限公司 Electronic money accounting method and system in grain circulation process
WO2022124291A1 (en) * 2020-12-08 2022-06-16 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Control method, data distribution system, and program
CN113095823A (en) * 2021-03-19 2021-07-09 杭州农副产品物流网络科技有限公司 Agricultural and sideline product settlement system with tracing function
CN113642975B (en) * 2021-04-29 2024-09-13 北京国氢中联氢能科技研究院有限公司 Block chain-based hydrogen energy supervision method and system
CN114819990A (en) * 2022-04-22 2022-07-29 上海正圆计算机科技有限公司 Traceability data rating system and method based on block chain

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106778109A (en) * 2016-11-24 2017-05-31 江苏通付盾科技有限公司 A kind of certification authority evaluation method and device based on intelligent contract
CN107547529A (en) * 2017-08-21 2018-01-05 集合智造(北京)餐饮管理有限公司 A kind of method, system that shared retail is realized based on block chain
CN107578337A (en) * 2017-08-28 2018-01-12 杭州云象网络技术有限公司 A kind of intelligence based on block chain intelligence contract technology, which is thrown, cares for product trustship method
CN107679923A (en) * 2017-10-24 2018-02-09 浙江华信区块链科技服务有限公司 A kind of advertisement operation settlement system and method based on block chain technology
CN107844704A (en) * 2017-11-01 2018-03-27 济南浪潮高新科技投资发展有限公司 One kind is based on block chain believable intelligent contract reinforcement means
CN107909372A (en) * 2017-10-25 2018-04-13 复旦大学 A kind of agricultural product source tracing method based on block chain technology

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170134161A1 (en) * 2015-11-06 2017-05-11 Cable Television Laboratories, Inc Blockchaining for media distribution

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106778109A (en) * 2016-11-24 2017-05-31 江苏通付盾科技有限公司 A kind of certification authority evaluation method and device based on intelligent contract
CN107547529A (en) * 2017-08-21 2018-01-05 集合智造(北京)餐饮管理有限公司 A kind of method, system that shared retail is realized based on block chain
CN107578337A (en) * 2017-08-28 2018-01-12 杭州云象网络技术有限公司 A kind of intelligence based on block chain intelligence contract technology, which is thrown, cares for product trustship method
CN107679923A (en) * 2017-10-24 2018-02-09 浙江华信区块链科技服务有限公司 A kind of advertisement operation settlement system and method based on block chain technology
CN107909372A (en) * 2017-10-25 2018-04-13 复旦大学 A kind of agricultural product source tracing method based on block chain technology
CN107844704A (en) * 2017-11-01 2018-03-27 济南浪潮高新科技投资发展有限公司 One kind is based on block chain believable intelligent contract reinforcement means

Also Published As

Publication number Publication date
CN108694584A (en) 2018-10-23

Similar Documents

Publication Publication Date Title
CN108694584B (en) Grain safety tracing and exciting method and system based on block chain
JP6032617B2 (en) Credit providing system and method
JP2020123405A (en) System for payment via electronic wallet
US20130346176A1 (en) System and method for payment incentivizing
US20130138563A1 (en) Systems and methods for prepaid merchant payment services
CN101567071A (en) Data interactive processing method and device of online transaction system and bank system
CN103400271A (en) Agricultural product trading system for agricultural product wholesale market and trading method thereof
US20120215659A1 (en) Systems and Methods Relating to Bank Transactions, Prepaid Access, Payment Based Promotions, and Payment Networks
CA2834156A1 (en) Methods and systems for offer and dynamic gift verification and redemption
US11288703B2 (en) Systems and methods for offering products using linked transactions
CN107358427A (en) A kind of stored value card shared for multi-brand
CN107153899A (en) A kind of five in one retail shopping center system and its application method
CN110163720A (en) A kind of system and method bidded immediately based on staple commodities transaction
CN103703482A (en) System and method of effecting a merchant funded reward
CN110555708A (en) Operating method for realizing important commodity transaction tracing by intelligent POS (point-of-sale)
CN105405036A (en) Classified group buying system and method
CN109003163A (en) A kind of store method for running and system
CN112750006A (en) Agricultural product transaction system, method, device and storage medium
KR100804817B1 (en) The system of co-settlement and the method thereof
TWI649704B (en) Payment integration method and server for integrated payment
KR20160056995A (en) Point service method and system for transactions between members
CN110969506A (en) Cultivation demand management method and device and server
KR100660269B1 (en) Credit card payment processing method by a distributed variable merchant discount rate
TWI765623B (en) Opened automatic-collection reward point method and system thereof
KR102273848B1 (en) A system for an order and settlement based on a block chain and methods thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20210818

Address after: 430000, No.1, Xingchen Avenue, chenjiaji, Jiang'an District, Wuhan City, Hubei Province

Applicant after: ZHIXING COLLEGE OF HUBEI University

Address before: 430000 east of Guanggu 6th Road and south of shendun 2nd Road, Donghu New Technology Development Zone, Wuhan City, Hubei Province

Applicant before: WUHAN XINGYUN WISDOM TECHNOLOGY Co.,Ltd.

Applicant before: ZHIXING COLLEGE OF HUBEI University

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant