CN113469810A - Commodity supply chain transaction information storage and tracking system and method based on block chain - Google Patents

Commodity supply chain transaction information storage and tracking system and method based on block chain Download PDF

Info

Publication number
CN113469810A
CN113469810A CN202110747080.7A CN202110747080A CN113469810A CN 113469810 A CN113469810 A CN 113469810A CN 202110747080 A CN202110747080 A CN 202110747080A CN 113469810 A CN113469810 A CN 113469810A
Authority
CN
China
Prior art keywords
commodity
user
commodities
module
block chain
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.)
Pending
Application number
CN202110747080.7A
Other languages
Chinese (zh)
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.)
Nanjing University of Posts and Telecommunications
Original Assignee
Nanjing University of Posts and Telecommunications
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 Nanjing University of Posts and Telecommunications filed Critical Nanjing University of Posts and Telecommunications
Priority to CN202110747080.7A priority Critical patent/CN113469810A/en
Publication of CN113469810A publication Critical patent/CN113469810A/en
Pending legal-status Critical Current

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
    • 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
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • G06F16/275Synchronous replication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Computer Hardware Design (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Economics (AREA)
  • Computing Systems (AREA)
  • Development Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a commodity supply chain transaction information storage and tracking system and method based on a block chain, wherein the overall management system comprises: the system comprises a user management module, a commodity operation module and a linked data query module. The invention combines the blockchain technology in the supply chain transaction of the commodity, has the characteristics of decentralization, no tampering, traceability and the like, can solve the problem of information isolated island, false commodity, opaque price and other pain points in the commodity transaction, and reduces the trust crisis generated by both parties of the transaction. The invention adopts the method of storing the transaction data in the block chain network and also storing the transaction data in the server database, solves the problem that the data on the chain can not be fed back in time because of the synchronization of the consensus algorithm, improves the response speed of the system, and simultaneously ensures the accuracy of the transaction data.

Description

Commodity supply chain transaction information storage and tracking system and method based on block chain
Technical Field
The invention relates to the field of block chain application, in particular to a commodity supply chain transaction information storage and tracking system and method based on a block chain.
Background
The supply chain surrounds a core enterprise, and an integral functional network chain structure mode is formed from the links of production of commodities, selling, secondary selling and the like through controlling information flow, logistics and fund flow. There are some problems that are difficult to solve in conventional supply chain transactions. For example, the following problems are difficult to solve in the conventional supply chain transaction industry: (1) the traditional information storage mode is relatively dispersed, and the information of different departments is stored in the database of the traditional information storage mode. The information is difficult to integrate, and the problem of information isolated island is probably caused; (2) the transaction flow is too complex, and the root of the problem is inconvenient to find after the problem occurs. (3) The safety of the transaction has certain hidden dangers, for example, the price of the transaction product is relatively opaque, a false product problem exists, the ecology of a certain product industry is influenced by the existence of a black intermediary, meanwhile, disputes exist in the commodity, the quality of the commodity is problematic, and the like, and the uncertainty can cause serious trust crisis to both parties of the transaction.
The block chain is a new technology, and has the characteristics of decentralization, no tampering, anonymity and traceability of data. By this technique, a large number of people can be made aware of digital information by the distribution system without having to make copies. The database is stored on millions of computers at the same time and is therefore accessible to anyone who is public in the public domain. A common and always up-to-date database contains information stored in a block chain. It has also been proven to have inherent technical advantages in addressing the trustworthiness of the traceability system. Blockchain techniques allow users to complete transactions at low cost. A user initiates a transaction over a peer-to-peer network. The transaction is performed using a combination of a public key and a private key, both of which are unique identifiers for each user. Blockchain techniques are dedicated to decentralization and rely on digital public ledgers, and use distributed techniques and consensus algorithms. The product data is stored in the block chain aiming at the supply chain problem existing in the traditional supply chain transaction, so that the transparency of the product information on the supply chain and the traceability of the related problem generated in the transaction can be ensured, and the integrity of the product data is ensured. The block chain technology is an effective technical guarantee for the construction of the product information sharing platform. The blockchain will make the entire process of supply chain transactions more efficient, transparent, accurate, and trusted.
For example, application publication No. CN111598696A discloses a transaction tracing method and apparatus based on a block chain, which specifically includes writing upstream transaction information into the block chain, writing key information of an upstream node of an intermediate node and key information of a terminal node into the block chain, an intelligent contract, and downstream transaction information. Allowing the owner to track the transaction, thereby reducing costs and stabilizing prices.
Disclosure of Invention
The invention mainly develops decentralized service application based on a block chain technology and a supply chain transaction business process. The specific commodity is used as a tracking object, a seller building the commodity and a secondary seller are supervised by a government party, the data chaining management of the whole process from the commodity building to the commodity selling to the secondary selling is realized, and because resources on a chain are precious, the problem that data cannot be fed back in time due to synchronization of a consensus algorithm is solved, data which are not strongly related to the specific commodity and the data on the chaining can be saved in a local database for backup, so that the data reliability is ensured while the high efficiency of data transmission is ensured.
In order to achieve the purpose, the invention is realized by the following technical scheme:
the invention relates to a commodity supply chain transaction information storage and tracking system based on a block chain, which is characterized in that: the overall management system includes: the system comprises a user management module, a commodity operation module and an on-chain data query module, wherein a user operates commodities;
the user management module: the method comprises the steps that a user is created, namely, a government issues contracts of a commodity producing party and a commodity selling party to a blockchain network, a government manager account is logged in through a login page to create accounts of the producer and the seller, the user is created by any one of the commodity producing party or the commodity selling party, and each account is stored with an Ethernet address of the user;
a commodity management module: selling and secondarily selling commodities created by a commodity party;
the user operates the commodity module: the user operates the commodity owned by the user;
an on-chain data query module: the user inquires the information of the commodity on the block chain;
and the user management module, the commodity operation module by the user and the on-chain data query module form a closed loop.
The invention is further improved in that: all commodities in the commodity management module are created by a commodity producing party, the created data is uploaded to the block chain network and the local database at the same time, and each commodity information is subjected to independent intelligent contract storage.
The invention is further improved in that: the module for operating the commodity by the user comprises a commodity consignment selling module, a commodity module to be paid and a commodity module to be confirmed;
the commodity consignment module consigns the commodities which are not needed by the user to the commodity selling party who wants to consign the commodities by the user, and the commodity selling party sells the commodities;
the to-be-paid commodity module has a function of paying for a reserved commodity for a user who purchases a second-hand commodity, and the paid amount is temporarily stored in a contract;
the module of commodities to be confirmed realizes the function of determining the selling of the commodities by the users of the commodities, and after the users determine the function, the selling price of the commodities is transferred to the sellers of the commodities through the intelligent contracts.
The commodity supply chain transaction information storage and tracking method based on the block chain is characterized by comprising the following steps: the method comprises the following steps:
the method comprises the following steps: starting a block chain network, and deploying the written intelligent contract on the block chain network;
step two: starting a web application server, operating foreground and background systems, establishing a commodity producer and a commodity seller in a server database by using an account of a government agency, and simultaneously transmitting data to a blockchain network to ensure that an establishing user can operate the data in the blockchain network;
step three: the commodity producer issues commodities through own user address, the issued commodities are sold to users, and the generated transaction data are stored in the block chain network and the server database at the same time;
and step four, the commodity seller sells the commodities to the required buyers again.
The invention is further improved in that: in the third step, when the producer creates the commodity, the intelligent contract verifies the identity, and only when the user sending the instruction is the producer, the commodity contract can be successfully created.
The invention is further improved in that: in the third step, the purchasing user can purchase the commodity after tracing and querying the commodity data through the commodity address before purchasing.
The invention has the beneficial effects that: the method for storing the data in the block chain network and storing the data in the server database in the commodity production storage and tracking process based on the block chain technology solves the problem that the data on the chain cannot be fed back in time due to synchronization of the consensus algorithm, improves the response speed of the system, and simultaneously ensures the accuracy of the transaction data. The multi-party participation realizes the uplink storage of the commodity from the production to the sale and then to the secondary sale, solves the trust problem of the intermediate link and enhances the information sharing efficiency. The problems brought by the traditional scheme are solved in a targeted manner, and the occurrence of the block chain technology provides an implementation scheme for the tracing scheme.
Drawings
FIG. 1 is a system flow design.
Fig. 2 is a system architecture selection.
Fig. 3 is a functional overall design.
Detailed Description
The embodiments of the present invention will be described in detail below with reference to the accompanying drawings: the present embodiment is implemented on the premise of the technical solution of the present invention, and a detailed implementation manner and a specific operation process are given, but the protection scope of the present invention is not limited to the following embodiments.
The invention relates to a commodity supply chain transaction information storage and tracking system based on a block chain, which comprises an overall management system and a tracking system, wherein the overall management system comprises: the system comprises a user management module, a commodity operation module and an on-chain data query module, wherein a user operates commodities;
the user management module is mainly used for establishing a user, contracts of a commodity producing party and a commodity selling party are issued by a government, after the contract is issued to the block chain network, the contract can be logged in an account number of a government manager through a login page to establish accounts of the producer and the seller, the user can be established by any party of the commodity producing party or the commodity selling party, each account is provided with a house ether address, and the user can conveniently read and write data on the block chain by using the house ether address after logging in.
The commodity management module is mainly used for managing the established commodities, all commodities in the system can be established only by a commodity producing party, the reliability of chaining data is guaranteed, the data can be uploaded to the block chain network and the local database at the same time, the response speed is guaranteed to be improved when user interaction is carried out, and user experience is enhanced. When the commodity is produced and the commodity is created, the intelligent contract verifies the identity, and only when the user sending the instruction is the producing party, the commodity contract can be successfully created. The commodity management module mainly realizes the functions of selling new commodities by a commodity producing party and selling secondhand commodities by a commodity selling party.
The user operates the commodity operation module, the main user operates the commodity owned by the user, the main function is realized by three functions, namely a commodity consignment function, the user can consign the commodity which is not needed by the user to a commodity selling party which the user wants to consign, the commodity selling party sells the commodity, and the second commodity to be paid is mainly used for paying the reserved commodity for the user who purchases the second-hand commodity, and the paid amount is temporarily stored in a contract. And thirdly, the function of confirming the commodities is to realize the function of confirming the selling of the commodities by the commodity selling user, and after the user confirms, the intelligent contract transfers the selling price of the commodities to the commodity selling party.
The on-chain data query module is mainly used for performing a function of block chain query on information of commodities by a user. The mode of carrying out single intelligent contract storage on each commodity information is adopted when the commodity producing party creates commodities. Each commodity has its own intelligent contract address in the block chain network, and if a user is confused about the data of a certain commodity, the user can inquire the specific information of the commodity through the intelligent contract address of the commodity.
And the user management module, the commodity operation module by the user and the on-chain data query module form a closed loop.
The overall flow of the tracking of the commodity is shown in fig. 1, and the whole commodity supply chain flow can be divided into four parts: the system comprises a user, a production seller, a second-hand seller and a government supervisor, wherein the production seller and the seller are necessary to be authorized by the government in order to avoid malicious data, and corresponding account numbers are issued to the two parties to log in the platform. The user can create the ether house account corresponding to the user by the producer and the seller. Each piece is an independent contract address, and all data about commodities independently exist in different contract addresses and are created by a producer. Meanwhile, the producer can sell the built commodities to the purchasing user.
The seller is responsible for selling the goods for the second time, and needs the user to hang up the goods and give the goods to the seller responsible for the area. When a user views commodity information, performs on-chain data verification on commodities and determines to purchase the commodities, the user can book the commodities first, then pay according to the price of a seller and wait for the seller to confirm, and after the seller confirms, the ownership of the commodities is transferred to a party who books and pays. The whole transaction process and the commodity state are determined, if one step of information is not consistent with the data on the chain, the exception of transaction failure is generated, and the transaction fails.
The commodity supply chain transaction information storage and tracking method based on the block chain comprises the following steps:
the method comprises the following steps: starting a block chain network, and deploying the written intelligent contract on the block chain network;
step two: starting a web application server, operating foreground and background systems, establishing a commodity producer and a commodity seller in a server database by using an account of a government agency, and simultaneously transmitting data to a blockchain network to ensure that an establishing user can operate the data in the blockchain network;
step three: if the purchasing user is confused about the information of the purchased commodities, the purchasing user can purchase the commodities after tracing and inquiring the commodity data through the commodity address before purchasing. The commodity owner can consign own commodities to the commodity seller in a consignment mode and upload the generated transaction data to the block chain network and the server database;
and step four, the commodity seller sells the commodities to the required buyers again, so that the whole business process forms a closed loop.
The system architecture adopted by the invention is shown in fig. 2, firstly, an online compiler remix is used for developing the intelligent contract by using a solid language, the structure required to be stored on the block chain network in the process is completed, and the intelligent contract is issued to the block chain network by a government agency address. The invention uses mysql relational database in the selection of database, and firstly creates table structure including user table, commodity table, seller table and producer table before system development. The invention adopts a B/S framework, constructs a front-end page through a BootStrap framework, and the front end is mainly responsible for sending data input by a user to a server end through an asynchronous or common request. The server is mainly written through Java language and is responsible for processing the data transmitted by the front end and storing the data transmitted by the front end into the block chain network and the local database. The server side mainly uses a Spring + Spring MVC + Mybatis architecture Controller layer written by Java language to receive the request transmitted by the front end and package the request into a corresponding data object to be transmitted to a Service layer, the Service layer processes the transmitted data, the processed data is transmitted to a Dao layer, and a Mybatis framework puts the data which should be stored in the database into the database. Meanwhile, the Service layer will also transfer the uplink data to the blockchain network by calling the web3j framework.

Claims (6)

1. The commodity supply chain transaction information storage and tracking method based on the block chain is characterized by comprising the following steps: the overall management system includes: the system comprises a user management module, a commodity operation module and an on-chain data query module, wherein a user operates commodities;
the user management module: the method comprises the steps that a user is created, namely, a government issues contracts of a commodity producing party and a commodity selling party to a blockchain network, a government manager account is logged in through a login page to create accounts of the producer and the seller, the user is created by any one of the commodity producing party or the commodity selling party, and each account is stored with an Ethernet address of the user;
a commodity management module: selling and secondarily selling commodities created by a commodity party;
the user operates the commodity module: the user operates the commodity owned by the user;
an on-chain data query module: the user inquires the information of the commodity on the block chain;
and the user management module, the commodity operation module by the user and the on-chain data query module form a closed loop.
2. The blockchain-based commodity supply chain transaction information storage and tracking method according to claim 1, wherein the method comprises the following steps: all commodities in the commodity management module are created by a commodity producing party, the created data is uploaded to the block chain network and the local database at the same time, and each commodity information is subjected to independent intelligent contract storage.
3. The blockchain-based commodity supply chain transaction information storage and tracking method according to claim 2, wherein the method comprises the following steps: the module for operating the commodity by the user comprises a commodity consignment selling module, a commodity module to be paid and a commodity module to be confirmed;
the commodity consignment module consigns the commodities which are not needed by the user to the commodity selling party who wants to consign the commodities by the user, and the commodity selling party sells the commodities;
the to-be-paid commodity module has a function of paying for a reserved commodity for a user who purchases a second-hand commodity, and the paid amount is temporarily stored in a contract;
the module of commodities to be confirmed realizes the function of determining the selling of the commodities by the users of the commodities, and after the users determine the function, the selling price of the commodities is transferred to the sellers of the commodities through the intelligent contracts.
4. The commodity supply chain transaction information storage and tracking method based on the block chain is characterized by comprising the following steps: the method comprises the following steps:
the method comprises the following steps: starting a block chain network, and deploying the written intelligent contract on the block chain network;
step two: starting a web application server, operating foreground and background systems, establishing a commodity producer and a commodity seller in a server database by using an account of a government agency, and simultaneously transmitting data to a blockchain network to ensure that an establishing user can operate the data in the blockchain network;
step three: the commodity producer issues commodities through own user address, the issued commodities are sold to users, and the generated transaction data are stored in the block chain network and the server database at the same time;
and step four, the commodity seller sells the commodities to the required buyers again.
5. The blockchain-based commodity supply chain transaction information storage and tracking method according to claim 4, wherein the method comprises the following steps: the intelligent contract of step one is developed by an online compiler remix using the language of solidity.
6. The blockchain-based commodity supply chain transaction information storage and tracking method according to claim 5, wherein the method comprises the following steps: in the third step, when the producer creates the commodity, the intelligent contract verifies the identity, and only when the user sending the instruction is the producer, the commodity contract can be successfully created.
CN202110747080.7A 2021-07-01 2021-07-01 Commodity supply chain transaction information storage and tracking system and method based on block chain Pending CN113469810A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110747080.7A CN113469810A (en) 2021-07-01 2021-07-01 Commodity supply chain transaction information storage and tracking system and method based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110747080.7A CN113469810A (en) 2021-07-01 2021-07-01 Commodity supply chain transaction information storage and tracking system and method based on block chain

Publications (1)

Publication Number Publication Date
CN113469810A true CN113469810A (en) 2021-10-01

Family

ID=77877390

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110747080.7A Pending CN113469810A (en) 2021-07-01 2021-07-01 Commodity supply chain transaction information storage and tracking system and method based on block chain

Country Status (1)

Country Link
CN (1) CN113469810A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190340619A1 (en) * 2018-05-07 2019-11-07 Accenture Global Solutions Limited Distributed ledger based identity and origins of supply chain application enabling financial inclusion and sustainability
CN111539750A (en) * 2020-04-27 2020-08-14 中山大学 Commodity traceability system based on block chain and big data technology
CN112347194A (en) * 2021-01-08 2021-02-09 南京锦隆金属制品有限公司 Steel supply chain product traceability system based on block chain technology
CN112819451A (en) * 2021-01-08 2021-05-18 上海理工大学 Decentralized road traffic carbon transaction system based on block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190340619A1 (en) * 2018-05-07 2019-11-07 Accenture Global Solutions Limited Distributed ledger based identity and origins of supply chain application enabling financial inclusion and sustainability
CN111539750A (en) * 2020-04-27 2020-08-14 中山大学 Commodity traceability system based on block chain and big data technology
CN112347194A (en) * 2021-01-08 2021-02-09 南京锦隆金属制品有限公司 Steel supply chain product traceability system based on block chain technology
CN112819451A (en) * 2021-01-08 2021-05-18 上海理工大学 Decentralized road traffic carbon transaction system based on block chain

Similar Documents

Publication Publication Date Title
Subramanian Decentralized blockchain-based electronic marketplaces
JP6364132B2 (en) Blockchain transaction recording system and method
EP3411824B1 (en) Systems and methods for storing and sharing transactional data using distributed computer systems
CN109886677B (en) Commodity purchasing method and device based on block chain
KR102573433B1 (en) Platform for trading energy using block chain and method thereof
US20220270087A1 (en) Asset trading system enabling transparent trading history management
CN111899072B (en) Block chain-based product sales method and system
KR20190000747A (en) System and method for e-commerce using block-chain technology
CA3124248A1 (en) Electronic certificate-based transaction system
CN109559164B (en) Preferential information processing method and device, electronic equipment and computer readable medium
WO2020078095A1 (en) Method and apparatus for issuing digital assets, method and apparatus for transferring digital assets, and method and apparatus for realizing online financing
CN111245829A (en) Network platform based on regional chain and safe communication method thereof
Shakila et al. A decentralized marketplace application based on ethereum smart contract
US11620704B2 (en) Method and GUI for settlement of commodity contracts denominated in commodity contract tokens
CN101777162A (en) Network trading system and network trading management method for realizing wholesale chain of commercial enterprises
Yoo et al. A study for efficiency improvement of used car trading based on a public blockchain
Gallersdörfer et al. Tamper-proof volume tracking in supply chains with smart contracts
US20210192574A1 (en) Techniques to incentivize sharing electronic advertisement information in a compute environment
Fonseca Cacho et al. Decentralized marketplace using blockchain, cryptocurrency, and swarm technology
US11790353B2 (en) System and method for online/offline payment with virtual currency for nodes included in mobile-based blockchain distributed network
CN115983853A (en) Client side green electricity application service method and system based on block chain and electronic equipment
Hu et al. Cross‐Border E‐Commerce Business Model Based on Big Data and Blockchain
CN113469810A (en) Commodity supply chain transaction information storage and tracking system and method based on block chain
US11593792B1 (en) Distributed database methods and systems
CN105279660A (en) Method for realizing e-commerce platform for merchants in business circle

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