CN115630890B - Block chain-based transportation method and system for exhibition commodity - Google Patents
Block chain-based transportation method and system for exhibition commodity Download PDFInfo
- Publication number
- CN115630890B CN115630890B CN202211629043.7A CN202211629043A CN115630890B CN 115630890 B CN115630890 B CN 115630890B CN 202211629043 A CN202211629043 A CN 202211629043A CN 115630890 B CN115630890 B CN 115630890B
- Authority
- CN
- China
- Prior art keywords
- commodity
- block
- exhibition
- bar code
- network
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q10/00—Administration; Management
- G06Q10/08—Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
- G06Q10/083—Shipping
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q10/00—Administration; Management
- G06Q10/08—Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
- G06Q10/087—Inventory or stock management, e.g. order filling, procurement or balancing against orders
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3825—Use of electronic signatures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3827—Use of message hashing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3829—Payment protocols; Details thereof insuring higher security of transaction involving key management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/401—Transaction verification
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/018—Certifying business or products
- G06Q30/0185—Product, service or business identity fraud
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0633—Lists, e.g. purchase orders, compilation or processing
- G06Q30/0635—Processing of requisition or of purchase orders
- G06Q30/0637—Approvals
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Strategic Management (AREA)
- Finance (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Economics (AREA)
- Computer Security & Cryptography (AREA)
- Marketing (AREA)
- Development Economics (AREA)
- Entrepreneurship & Innovation (AREA)
- Tourism & Hospitality (AREA)
- Quality & Reliability (AREA)
- Operations Research (AREA)
- Human Resources & Organizations (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a block chain-based transportation method and system for exhibition commodities, wherein the method comprises the following steps: and constructing a whole blockchain system, acquiring a key transportation node time stamp, constructing a consultation commodity supplier module, a consultation commodity logistics party module, a consultation commodity purchasing module and a blockchain network. The invention can trace the exhibition commodity from production to logistics by adopting the blockchain technology, thereby greatly enhancing the credibility of the exhibition commodity, reducing the commodity logistics circulation process and reducing the logistics cost.
Description
Technical Field
The invention relates to a block chain-based transportation method and system for exhibition commodities.
Background
Currently, digitization has become a great trend.
First, the trade is often limited by counterfeit and counterfeited products.
Most of the exhibition commodities are high-value commodities, wherein a plurality of suppliers of the exhibition commodities, which need to obtain copyrights, can only conduct production, but at present, commodities in the exhibition industry are good and bad, commodity copyrights limitation is not paid attention to, a plurality of consumers are forcible for the exhibition, and how to enable the consumers to confirm that the exhibition commodities are copyrighted is a problem which is urgently needed to be solved.
Secondly, the transportation of the exhibition commodity does not have a specific transportation flow, and a traditional transportation mode is mostly adopted, but the events such as commodity loss and the like of the traditional logistics mode often occur.
Thirdly, the block chain technology is raised, and the block chain is essentially a centralized and transparent distributed database which is maintained by a collective, and the management mechanism uses the decentralized management mechanism to embody transparent openness. All nodes on the chain are equal in position, and data is updated, supervised and shared by the nodes. The blocks are generated and stored in units of blocks and are connected end to end in time sequence to form a chain structure.
Fourth, four major features of blockchain technology: the anti-centralization, transparent disclosure, non-tamperable data and anti-trust can be perfectly attached to the transportation process of the exhibited goods.
Fifthly, the blockchains are divided into public chains, alliance chains and private chains, and the half-decentralization of the alliance chains enables the alliance chains to develop rapidly in China.
A block chain-based transportation method and system for exhibition commodities adopt a main stream block chain architecture-alliance chain in China.
Disclosure of Invention
The invention mainly aims to provide a block chain-based transportation method and system for a exhibition commodity, and the block chain-based whole process tracing of the exhibition commodity is realized.
In order to achieve the above purpose, the method and system for transporting the exhibition commodity based on the blockchain provided by the invention comprise the following steps:
in one-to-one coding of the commodities, hash values of the respective time stamps are stored in the bar codes.
Based on the production, transportation, and sales flows of the items, each relevant party writes information to the blockchain network: the method comprises the following steps:
step one: the bar code official manufacturer numbers the bar code individually, updates a number field in the bar code, the bar code comprises a number field, a Hash1 field, a Hash2 field and a Hash3 field, and uploads the bar code to a blockchain network.
The exhibition commodity supplier carries out one-to-one correspondence on the exhibition commodity and the bar code, obtains a production time stamp of the exhibition commodity, carries out Hash operation on the production time stamp through SHA256 to obtain Hash1, and updates the Hash1 field in the bar code by using the Hash 1.
Step three: and uploading the production time stamp of the exhibition commodity and the Hash1 to the blockchain network by the exhibition commodity provider.
Step four: the exhibition commodity logistics party obtains the exhibition commodity warehouse-in time stamp and the exhibition commodity warehouse-out time stamp, carries out Hash operation on the warehouse-in time stamp and the warehouse-out time stamp through SHA256 to obtain Hash2 and Hash3, and uses the Hash2 and Hash3 to update the Hash2 field and the Hash3 field in the bar code respectively.
Step five: and uploading the warehouse-in time stamp, the warehouse-out time stamp, the Hash2 and the Hash3 to the blockchain network by the commodity logistics party.
Step six: scanning the bar code by the purchasing party of the exhibition commodity, and analyzing to obtain the number of the bar code and Hash1, hash2 and Hash3 to be verified.
Step seven: and the exhibition commodity purchasing party acquires the Hash1, hash2 and Hash3 corresponding to the bar codes from the blockchain network through the numbers, matches the Hash1, hash2 and Hash3 to be verified, confirms consistency, selects to confirm receipt, and refuses to receive the receipt if the confirmation is consistent.
The method comprises the steps of establishing a block chain network, wherein an created block of the block chain network is established by a platform system side; the whole process from production to purchasing of a exhibited commodity confirms that two blocks are needed to be generated, wherein the first block comprises the operation of the bar code by the official producer of the bar code and the information adding operation of the exhibited commodity supplier to the blockchain network; the second blockchain comprises information adding operation of the logistics side of the exhibition commodity to the blockchain network and confirmation and receiving operation of the purchasing company of the exhibition commodity; the confirmation of each block in the block chain network needs to broadcast all nodes on the block chain network, and the block needs to carry out information synchronization to ensure the confirmation of the block; when the block bifurcation is generated, processing the bifurcation; and storing the transaction abstract Hash value of the previous block through the next block to be connected end to form the blockchain network.
The exhibition commodity supplier needs to upload the production information of the exhibition commodity to the blockchain network.
Before the bar code is used by the exhibition commodity supplier, the platform system checks whether the bar code is a valid bar code which is confirmed by the platform system.
The exhibition commodity logistics party needs to upload the detailed information of the transportation of the exhibition commodity to the blockchain network.
The prior art is that only partial nodes store all information on the blockchain, which causes deviation of other nodes to data synchronization, so nodes adopting all blockchains (adopting a alliance chain architecture) need to store all transaction data of the blockchain, thereby ensuring that the blockinformation recorded by all nodes are completely synchronized, and realizing the real account-keeping state of all nodes.
When the block bifurcation is generated, the existing block chain system adopts the principle of reserving the longest chain, but generates nodes with high concentration of calculation power, the fairness principle is not realized for a single node, and the chain with the earliest time stamp reservation time is adopted, so that the single node is encouraged to confirm the block, and the fairness is better than before.
A block chain technology-based exhibition commodity transportation system comprises an exhibition commodity supply end, an exhibition commodity logistics end and an exhibition commodity purchasing end.
The beneficial effects are that:
according to the transportation method and system for the exhibition commodity based on the blockchain, through the information recorded by the official bar codes, the possibility of repeated use is eliminated at the beginning of coding of a commodity supplier, the transportation track of each bar code can be traceable and can not be tampered by means of the blockchain technology, and the detailed information of the whole process of production, circulation and reception of the exhibition commodity is recorded in the aspect of use.
The invention has the characteristics of 1. Easy circulation.
2. Is not reproducible.
3. The data can be read by the related party at any time.
4. An official platform authorization is required for the writing of data.
5. Is not tamperable.
6. Avoiding repeated use.
Drawings
Hierarchical structure of the blockchain of FIG. 1
Data storage structure of the bar code of fig. 2
FIG. 3 is a schematic diagram of an inter-block propagation scheme
FIG. 4 is a block chain-based step flow of a method for transporting a exhibitions commodity
FIG. 5 is an overall workflow image of a blockchain system.
Detailed Description
A basic architecture of a transportation system for the exhibition of goods based on the blockchain is established.
The blockchain system architecture of fig. 1 is a storage layer, a data layer, a network layer, a consensus layer, a contract layer, an interface layer, and an application layer in order from bottom to top.
The storage layer records the data of each block, the block consists of a block head and a block body, and the content is recorded in the block chain head; the hash value of the previous block is recorded in the block head, and the tamper-proof can be realized by end-to-end connection in sequence. The block data, state data, etc. generated by the operation of the blockchain platform need to be stored in the file system and the database system. The block data stores specific transaction information, wherein information abstract and signature are realized by utilizing technologies such as merck tree, asymmetric encryption and the like, and the integrity and consistency of the data are ensured. Status data is typically stored in a database, also known as world state, which includes information such as system operating parameters, registered accounts and user's smart contract bytecodes, and business data stored in contracts.
Network layer: establishing a decentralised network layer, and forming a decentralised interconnection network by adopting a P2P architecture. The main functions of the point-to-point network include realizing network topology, interactive consensus protocol information, broadcast/receive transaction and block information, etc. A new node depends on interaction with the seed node to realize automatic discovery and networking of network neighbor nodes and form a decentralised network topology. Different consensus protocols have different protocol related network data packets, and the consensus process is completed. Most of the data packets in the network are transaction and block packets. When a node receives a user transaction, it will broadcast to the network and propagate to the nodes as much as possible. A block produced by one node is also required to propagate to each node as soon as possible. The initial design block size of the bit coin is 1MB, and the block-out time interval is 10 minutes, namely, the generation of bifurcation blocks is reduced in order to enable each node to receive the blocks broadcasted by other nodes as much as possible.
Consensus layer: how to make nodes in a blockchain network reach a consensus at the most core level in a blockchain system is an important point in designing a blockchain system. The blockchain consensus is that all nodes agree on the next block to be produced, i.e. which transactions should be included in the block, using a certain protocol mechanism. For example, a voting scenario, each person may make his own advice and strive to pull up enough votes. In the real world, we can give each person voting rights according to the identity of the election person; in a centralized system of the digital world, a registration mechanism (including technical means such as biological information, identity card information, living body detection and the like) can be utilized to improve a threshold of obtaining a large number of votes by a single main body; in the field of decentralised blockchain, no identity recognition mechanism is provided, voting rights are allocated by adopting methods including workload proof PoW, rights and interests proof PoS, delegation rights and interests proof DPoS, various PoX (PoET, poA and the like) and VRF algorithms and the like, and the node of the alliance chain is made to agree by adopting a DPoS consensus algorithm in the blockchain system.
Contract layer: the intelligent contract of the purchased commodity is signed, and once the intelligent contract is signed, the intelligent contract must be immediately executed if the intelligent contract meets the condition, so that the malignant event that the buyer refuses to pay after the commodity is delivered can be avoided. At the contract layer, intelligent contracts are compiled into byte codes and packaged into transaction information for uplink storage. After each node receives the block, transaction information contained in the block is extracted, the byte codes are loaded to the virtual machine for operation, and the operation result is reflected to the world state. The consistency check can be performed on the uplink byte codes and the intelligent contracts of the open source, so that the byte codes actually operated by the nodes are ensured to be consistent with the business logic displayed by the open source codes, the public transparent trust capability is provided, and the business scene requiring trust calculation is enabled.
Interface layer: for saving various SDK interfaces.
Application layer: the system is realized by adopting the alliance chain of the block chain, and compared with the public chain and the private chain, the alliance chain has higher decentralization degree and higher transaction speed, and meets the application requirement of the platform.
The method comprises the steps that a block chain network establishment process is carried out, firstly, a generation block is established by a platform system side, the whole process from production to purchasing of a exhibited commodity is confirmed, two blocks are needed to be generated, wherein the first block comprises the operation of an official producer of a bar code on the bar code and the information addition operation of a exhibited commodity supplier on the block chain network; the second blockchain comprises information adding operation of the commodity logistics party of the exhibition on the blockchain network and confirmation and receiving operation of the buyer; the method comprises the steps that all nodes on a blockchain network are required to be broadcasted by the confirmation of each block, the confirmation of the blocks can be guaranteed by the aid of the information synchronization of each block, when the bifurcation of the blockchain is generated, the bifurcation is processed, and the blockchain stores a transaction abstract Hash value of a previous block through a next block to be connected end to end, so that the blockchain network is formed.
Blockchain consensus: consensus refers to a community solution that achieves statements accepted by the diverging parties, even if not fully accepted, even at rest for disputes; blockchain consensus refers to the fact that because the blockchain world is a decentralized design and nodes are distributed and parallel throughout, a set of systems must be designed to maintain the order and fairness of operation of the system, unify the version of the blockchain, and rewards users who maintain the blockchain, and punish malicious jeopardy nodes. Such a system must rely on some way to prove that by whom a blockchain package has been taken and to have all nodes in the blockchain network reach a consensus of the transaction.
The prior art how each node on the blockchain synchronizes information is that only part of nodes store all information on the blockchain, and other nodes store only part of transaction data or summaries of the transaction data, which can lead to deviation of the other nodes in data synchronization, so nodes adopting all blockchains (adopting a alliance chain architecture) need to store all transaction data of the blockchain, thereby ensuring that the blockinformation recorded by all nodes are completely synchronized, realizing the real account-keeping state of all nodes, realizing the real equal status of each node on a blockchain system, and all data among nodes need to be synchronized.
Advantages of using DPOS consensus algorithm:
the voting delegation mode is adopted, so that the generation of the blocks is faster and more energy-saving (the time of each block is 10 seconds).
More decentralised: the DPOS distributes decision weights of the block chain network operation to each node hand, so that the phenomenon of controlled ply like other consensus algorithms is avoided to a great extent.
Blockchain bifurcation: because the blockchain is a de-centralized data structure, not all the different copies of the blockchain may be kept exactly identical at the moment. The time of arrival of a block may vary from node to node, so different time nodes may have non-identical blockchain views, and to address this problem, each node always selects and attempts to extend the blockchain representing the greatest workload proof, i.e., the longest chain or the most difficult-to-accumulate chain, by summarizing the record proof totals. In a centralized system, the software upgrade is extremely simple, and only needs to be patched or iteratively updated for compatibility of certain functions of the system. In a decentralised system, the upgrade is far less simple and easy, requiring consensus among nodes or parties to the chain. The global bitcoin network will eventually adjust to a consistent state as long as all nodes select the chain of greatest cumulative difficulty. Bifurcation is a temporary inconsistency between blocks of different versions, which eventually resolves when more blocks are added to a branch.
However, according to the principle of traditional bifurcation treatment, the longest chain principle is adopted, according to the principle of economy, the chain with the greatest accumulated difficulty is adopted, so that a core problem can occur, nodes with too concentrated calculation force can be more advantageous, but the nodes are at disadvantages for single nodes, and the principle that each node in a blockchain network is fair against the original purpose of blockchains is overcome.
Therefore, the longest chain, namely the most economical principle, is abandoned in the blockchain system, the earliest chain principle, namely when the blockchain is bifurcated and needs to be processed, the length of the bifurcation chain is not compared according to the previous steps, the first block information of each bifurcation chain after the block generated by bifurcation is directly checked, the time stamp of the bifurcation block is compared, and one chain of block confirmation time is adopted as the main chain, and the economical principle is not considered, so that the confirmation of a single node to the block can be encouraged, and the original fairness principle of the blockchain is achieved.
Bar code: a plurality of black bars and blanks with different widths are arranged according to a certain coding rule to express a graphic identifier of a group of information.
The bar code official manufacturer of fig. 2 is a data storage form of bar code, including 4 values, at the time of bar code production.
Bar code official manufacturers need to be informed that bar code production must be performed strictly according to established procedures.
A special number is first generated and the uniqueness of the number needs to be guaranteed.
The generated special numbers are stored in the corresponding bar code information and uploaded onto the blockchain network.
The intention of generating a unique special code for each bar code and uploading the blockchain network is to allow the exhibitor commodity supplier and the exhibitor commodity logistics party to later add the information stored by the bar codes and the exhibitor commodity purchasing party to further verify the bar codes attached to the exhibitor commodity after receipt and all the process levels recorded on the blockchain network relating to the transportation of the commodity. The exhibition product provider can check the production state of the article on the first page of the platform, and the production state comprises detailed information such as product numbers, time stamps, hash values, bar codes and the like. The exhibition commodity provider can conduct internal enterprise management on the platform page and monitor the production flow and the production process.
The suppliers of the exhibitions of goods: a manufacturer of the exhibitions of goods; compared with other commodities, the exhibited commodity has higher value, and the exhibited commodity meets the conditions of market level, consumption custom, technical standard, regulation and regulation, and the like, and the exhibited commodity needs to be judged according to economic level, consumption habit and the like. The original commodities such as the exhibition commodity, such as the hand, can be produced only after the manufacturer obtains the official copyright, so as to obtain the exhibition opportunity.
The production time of the exhibition commodity needs to be strictly recorded, and the time stamp for producing the exhibition commodity is shown in fig. 2.
Timestamp: the signature system is used for generating and managing a time stamp, and the signature object is digitally signed to generate the time stamp so as to prove that the original file exists before the signature time.
The function of the time stamp is to ensure the uniqueness of key node data such as production and transportation of the exhibition commodity, thereby ensuring the uniqueness of the exhibition commodity.
And carrying out SHA256 Hash calculation on the timestamp of the production of the exhibition commodity to generate a Hash value.
SHA256: is a cryptographic hash function, for messages of arbitrary length, SHA256 generates a hash value of 256 bits long, SHA256 algorithm is irreversible, SHA256 is a deterministic one-way hash function, SHA256 is a mathematical function, receives input of arbitrary size, and returns an output of fixed size. SHA256 is a method of creating a small digital "fingerprint" from any kind of data. The hash function compresses the message or data into a digest, making the amount of data smaller, fixing the format of the data. The function mixes the data scrambling and recreates a fingerprint called a hash value (or hash value). The hash value is typically represented by a short string of random letters and numbers.
The exhibitor commodity supplier needs to query the bar code number on the blockchain network at the exhibitor commodity supplier to confirm that the bar code is brand new and unused and that the bar code is an official-approved bar code.
The exhibition commodity supplier needs to submit the qualification required by the production of the exhibition commodity, various qualification certificates issued by the country and qualification certificates at the exhibition commodity supplier, and confirms that the exhibition commodity supplier has qualification to conduct exhibition and sales after verification, and formally registers, and starts online exhibition and sales of the exhibition commodity.
The exhibition commodity supplier needs to upload detailed information of the exhibition commodity to the system through the exhibition commodity supplier, the system records the detailed information of the exhibition commodity, and all registered users can inquire, so as to avoid the phenomenon that the exhibition commodity supplier cheats the purchasing party or the purchasing party returns the commodity maliciously
The exhibition commodity suppliers produce the sold exhibition commodities according to the standard.
The production time of the exhibition commodity needs to be strictly recorded, and the time stamp for generating the production of the exhibition commodity is shown in figure 2
Timestamp: the signature system is used for generating and managing a time stamp, and the signature object is digitally signed to generate the time stamp so as to prove that the original file exists before the signature time. The time stamp is a time expression and is defined as the total number of seconds from the time of greenwich in 1970, 01, 00 minutes, 00 seconds (Beijing time 1970, 01, 08, 00 minutes, 00 seconds). Colloquially, a timestamp is a complete verifiable proof of time data that can prove at which point in time a piece of data exists or occurs.
The function of the time stamp is to ensure the uniqueness of key node data such as production and transportation of the exhibition commodity, thereby ensuring the uniqueness of the exhibition commodity.
And carrying out SHA256 Hash calculation on the timestamp of the production of the exhibition commodity to generate a Hash.
SHA256: is a cryptographic hash function, for messages of arbitrary length, SHA256 generates a hash value of 256 bits long, SHA256 algorithm is irreversible, SHA256 is a deterministic one-way hash function, SHA256 is a mathematical function, receives input of arbitrary size, and returns an output of fixed size.
The exhibitor commodity supplier needs to query the bar code number on the blockchain network at the exhibitor commodity supplier to confirm that the bar code is brand new and unused and that the bar code is an official-approved bar code.
After confirming that the bar code meets the standard, the exhibition commodity supplier stores the obtained Hash value of the timestamp of the production time of the exhibition commodity in the position corresponding to the bar code, and meanwhile, the time of the production of the exhibition commodity, the timestamp, the Hash value of the timestamp, the name, the address and the like of the merchant of the production of the exhibition commodity are required to be uploaded to the blockchain system through the exhibition commodity supplier.
When information is added to the blockchain network, the exhibitions commodity supplier needs to upload the special number of the bar code, and the operations of the bar code official manufacturer on the bar code and the exhibitions commodity supplier on the blockchain network are packed according to the uploaded special number and the operations of the bar code official manufacturer on the bar code searched in the blockchain network.
When packaging operations to generate an acknowledged blockchain, the operations need to be broadcast through nodes to other nodes in the blockchain system.
The following is a simple example of a propagation mechanism as shown in fig. 3;
the node A receives one block, verifies the block, and broadcasts the block to other blocks after verification.
The message that node a propagates to the nearby blockchain is not the block itself but a verifies the relevant information of the block.
Node B receives the message from node a and if the node has not previously received the block, it needs to send a response message to node a to obtain the transaction record and specific information of the block.
Node a will send block specific information to node B only upon receipt of a response message from node B.
Broadcasting of the block in the blockchain network is required to be performed by a supplier of the exhibition commodity, and because the blockchain system adopts a alliance chain architecture and the number of nodes is relatively small, the broadcasting speed is very high, and when all nodes in the blockchain network reach consensus, namely after unifying a account, the block is confirmed in the blockchain network and can be inquired by other people.
The commodity logistics formula of the exhibition: the carrier of the exhibitions of goods is responsible for the intermediary of the goods from the supplier of the exhibitions of goods to the buyer.
The commodity logistics party of the exhibition commodity needs to go to the supplier address of the exhibition commodity to take out the exhibition commodity purchased by the purchasing party and enter a local warehouse, the bar code is scanned to obtain the special number of the bar code when the exhibition commodity is put in the warehouse, the time of putting the exhibition commodity in the warehouse is recorded to generate a time stamp, and the put time stamp is subjected to SHA256 Hash operation to generate a Hash value of the put time stamp of the exhibition commodity.
And storing the Hash value of the warehouse-in timestamp of the exhibited commodity in the position corresponding to the bar code.
And carrying out distribution treatment on a large number of exhibition commodities according to the address requirement of the purchasing party of the exhibition commodities.
And after the commodity logistic party of the exhibition finishes the treatment of the commodity in the current day bin.
And (3) commodity delivery, scanning a bar code, recording delivery time, generating a delivery time stamp Hash value of the delivered commodity, and storing the Hash in a corresponding position of the bar code data storage.
The commodity logistics terminal of the commodity logistics party using system of the exhibition uploads the time of the entrance and the exit of the commodity of the exhibition, the time stamp of the entrance and the exit of the commodity of the exhibition, the Hash value of the time stamp of the entrance and the exit of the commodity of the exhibition, the name of a transfer responsible person of the commodity of the exhibition and the telephone to the blockchain network.
The goods are received after the exhibition goods purchased by the exhibition goods purchasing party are transported by the logistics party of the exhibition goods, and the bar code to be verified can be scanned through the purchasing section to obtain the number of the bar code to be verified, the Hash value of the production time stamp of the exhibition goods, the Hash value of the warehouse-in of the exhibition goods and the warehouse-out Hash value of the exhibition goods.
The purchasing side of the exhibited commodity searches and inquires the special number of the bar code through the blockchain network in the purchasing section, and can see that one piece of block information which is confirmed comprises the number of the bar code and the information uploaded into the blockchain network by the provider of the exhibited commodity (comprising the Hash value of the timestamp of the production of the exhibited commodity); and a transaction message to be packaged, wherein the transaction message comprises information (comprising a Hash value of a warehouse-in time stamp of the exhibition commodity and a Hash value of a warehouse-out time of the exhibition commodity) uploaded to the blockchain network by a commodity logistics party.
And comparing the Hash value to be verified with the Hash values recorded in the blockchain network one by one.
If the Hash value to be verified is accurate, the verification proves that other problems do not occur in the production and transportation process of the exhibition commodity.
And the exhibition commodity purchasing party performs verification on the exhibition commodity and compares the detailed information of the exhibition commodity recorded on the blockchain network.
After the comparison of the purchasing parties of the exhibited commodities, the purchasing end point is used for clicking and confirming the transaction.
And the exhibition commodity purchasing side evaluates the exhibition commodity supplier and the exhibition commodity logistics side by using the system purchasing side and uploads the evaluation to the blockchain network.
At this time, the information uploaded to the blockchain network by the exhibitor logistics party to be packaged and the information just uploaded to the blockchain network by the exhibitor commodity purchasing party are packaged together into a transaction.
The transaction message at this time needs to be broadcast by the purchasing party to other nodes on the blockchain system, and after the other nodes verify and confirm, the block is confirmed.
If the Hash value to be verified is not consistent with the Hash values recorded in the blockchain network (the Hash values of three key time points), only one inconsistent phenomenon appears, which indicates that problems occur in the exhibition commodity supplier and the exhibition commodity logistics party.
The goods purchasing party of the exhibition is complained to the platform through the goods purchasing end of the exhibition, the goods returned from the exhibition is enjoyed without taking the goods from the upper door, and the platform can give certain compensation.
After receiving the complaint, the platform carries out auditing according to detailed information recorded in the blockchain network in the production and transportation process of the problem-exhibited commodity, judges the cause of the problem, and the delinquent party (the supplier of the exhibited commodity or the logistics party of the exhibited commodity) bears all losses of the failed transaction.
The system confirms all bar code data including bar code numbers after returning or confirming receiving operation is carried out by the commodity purchasing side of the exhibition.
Once the block is confirmed, the code number of the bar code is automatically marked as used in the block chain network, any information addition or reuse operation can not be carried out on the code number, and the inquiry operation can only be carried out on the transaction block information through the code number.
Fig. 4 is a block chain-based process flow of the method for transporting the exhibition commodity, wherein the key point timestamp is obtained by the bar code official manufacturer (D in fig. 4), the provider of the exhibition commodity (a in fig. 4), the logistics party of the exhibition commodity (B in fig. 4) and the purchasing party of the exhibition commodity (C in fig. 4), and the bar code information is added to ensure the whole process record of the transportation of the exhibition commodity.
Fig. 5 is an overall flow of the system architecture, and the present invention is a method and a system for transporting a exhibition commodity based on a blockchain, which includes: and constructing a whole blockchain system, acquiring a time stamp of key time, and constructing a consultation commodity supplier module and a consultation commodity logistics party module, and designing a blockchain network. The invention can trace the trade commodity from production to logistics by adopting the blockchain technology, greatly enhances the credibility of the trade commodity, reduces the commodity logistics circulation process and the logistics cost, and can provide trade commodity suppliers (A in figure 5), trade commodity logistics parties (B in figure 5) and trade commodity purchasing parties (C in figure 5)
A block chain-based method and system for exhibition of commodities are characterized by comprising an exhibition commodity supply end, an exhibition commodity logistics end and an exhibition commodity purchasing end.
Claims (2)
1. A block chain-based transportation method for exhibition commodities is characterized in that:
step one: establishing a basic framework of a transportation platform of the exhibition commodity based on the blockchain technology, wherein the framework is sequentially a storage layer, a data layer, a network layer, a consensus layer, a contract layer, an interface layer and an application layer from bottom to top;
the storage layer records the data of each block, the block consists of a block head and a block body, and the content is recorded in the block chain head; the hash of the current block chain, the block chain network confirmation number, the block height, the hash of the previous block and the Merkle tree root hash, and the hash value of the previous block is recorded in the block head, so that the situation that tampering cannot be realized can be realized by end-to-end connection in sequence; the block data generated by the operation of the block chain platform is stored in a file system and a database system; the block data stores specific transaction information, wherein the information abstract and signature are realized by utilizing the merck tree and an asymmetric encryption technology, so that the integrity and consistency of the data are ensured; the state data is stored in a database, called world state, which includes system operating parameters, registered accounts, intelligent contract byte codes of users and business data stored in contracts;
network layer: establishing a decentralised network layer, and forming a decentralised interconnection network by adopting a P2P architecture; the main functions of the point-to-point network include realizing network topology, interacting consensus protocol information, broadcasting/receiving transaction and block information; a new node depends on interaction with the seed node to realize automatic discovery and networking of the network neighbor nodes so as to form a decentralised network topology; different consensus protocols have different protocol related network data packets, and the consensus process is completed; most of the data messages in the network are transaction and block data packets; when a node receives a user transaction, the user transaction is broadcasted to a network and is propagated to each node as much as possible; a block produced by one node, the request being transmitted to each node; the size of the block is 1MB in the initial design of the bit coin, and the block outlet time interval is 10 minutes, so that each node receives the blocks broadcasted by other nodes as much as possible, and the generation of bifurcation blocks is reduced;
consensus layer: the most core hierarchy in the blockchain system; the block chain consensus is that all nodes agree on the blocks to be produced next by using a certain protocol mechanism, namely which transactions should be included in the blocks; in the field of decentralised blockchains, no identity recognition mechanism exists, and voting rights are distributed by adopting a class algorithm comprising workload proof PoW, rights and interests proof PoS, entrusting rights and interests proof DPoS, various PoX and VRF, and nodes of a alliance chain are consensus by adopting a DPoS consensus algorithm in the blockchain system;
contract layer: the intelligent contract of the purchased commodity is signed, and once the intelligent contract is signed, the intelligent contract must be executed immediately if the intelligent contract meets the condition; at the contract layer, the intelligent contracts are compiled into byte codes and packaged into transaction information uplink for storage; after each node receives the block, extracting transaction information contained in the block, loading byte codes into a virtual machine for operation, and reacting an operation result into a world state; the consistency check is carried out on the uplink byte codes and the intelligent contracts of the open source, so that the byte codes actually operated by the nodes are ensured to be consistent with the business logic displayed by the open source codes, the public transparent trust capability is provided, and the business scene requiring trust calculation is enabled;
interface layer: for saving various SDK interfaces;
application layer: adopting a alliance chain of block chains to realize; the method comprises the steps that an official producer of a bar code carries out independent numbering on the bar code, a numbering field in the bar code is updated, the bar code comprises a numbering field, a Hash1 field, a Hash2 field and a Hash3 field, and the bar code is uploaded to a block chain network;
step two, a exhibition commodity supplier carries out one-to-one correspondence on the exhibition commodity and the bar code, obtains a production time stamp of the exhibition commodity, carries out Hash operation on the production time stamp through SHA256 to obtain Hash1, and updates the Hash1 field in the bar code by using the Hash 1;
step three: the exhibition commodity supplier uploads the production time stamp of the exhibition commodity and the Hash1 to the blockchain network;
step four: the exhibition commodity logistics party obtains the exhibition commodity warehouse-in time stamp and the exhibition commodity warehouse-out time stamp, carries out Hash operation on the warehouse-in time stamp and the warehouse-out time stamp through SHA256 to obtain Hash2 and Hash3, and respectively updates the Hash2 field and the Hash3 field in the bar code by using the Hash2 and the Hash3;
step five: the exhibition commodity logistics party uploads the warehouse-in time stamp, the warehouse-out time stamp, the Hash2 and the Hash3 to the blockchain network;
step six: scanning the bar code by the purchasing party of the exhibition commodity, and analyzing to obtain the number of the bar code and Hash1, hash2 and Hash3 to be verified;
step seven: the consultation commodity purchasing party obtains Hash1, hash2 and Hash3 corresponding to the bar code from the blockchain network through the serial number, matches the bar code with the Hash1, hash2 and Hash3 to be verified, confirms consistency, selects to confirm receipt, and refuses to receive the receipt if the confirmation is not consistent;
creating an created block of the block chain network by a platform system side; the confirmation of each block in the block chain network needs to broadcast all nodes on the block chain network, and the block needs to carry out information synchronization to ensure the confirmation of the block; when the block bifurcation is generated, processing the bifurcation; storing a transaction abstract Hash value of a previous block through a next block to be connected end to form the block chain network;
the method comprises the steps that a exhibition commodity supplier needs to upload production information of the exhibition commodity to a blockchain network, the exhibition commodity supplier needs to inquire a bar code number on the blockchain network at an exhibition commodity supplier end to confirm that the bar code is a brand-new unused bar code which is recognized by authorities, the exhibition commodity supplier needs to submit qualification required by producing the exhibition commodity, various qualification certificates issued by countries and qualification certificates at the exhibition commodity supplier end, and the exhibition commodity supplier is verified to qualify for exhibition and is formally registered to start online exhibition of the exhibition commodity;
before the bar code is used by the exhibition commodity supplier, checking whether the bar code is a valid bar code identified by the platform system through the platform system, uploading detailed information of the exhibition commodity to the system through the exhibition commodity supplier, recording the detailed information of the exhibition commodity by the system, and inquiring by all registered users to avoid the phenomenon that the exhibition commodity supplier cheats the purchasing party or the purchasing party returns the commodity maliciously;
the commodity logistics party of the exhibition needs to upload the detailed information of the transportation of the commodity of the exhibition to the blockchain network;
the information synchronization adopts all nodes on all alliance chains to store all transaction data of the blockchain;
when the block bifurcation is generated, the block with the earliest timestamp is reserved based on the generation timestamp of the block, and a chain principle is ensured;
the identification of the bar code includes: whether the bar code is brand new and never assigned;
comparing the generated time stamp of the block with the recorded Hash value, and verifying the authenticity of the time stamp.
2. A block chain technology based exhibitions commodity transportation system for implementing the method of claim 1, wherein: the system comprises a meeting and exhibiting commodity supply end, a meeting and exhibiting commodity logistics end and a meeting and exhibiting commodity purchasing end.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211629043.7A CN115630890B (en) | 2022-12-13 | 2022-12-13 | Block chain-based transportation method and system for exhibition commodity |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211629043.7A CN115630890B (en) | 2022-12-13 | 2022-12-13 | Block chain-based transportation method and system for exhibition commodity |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115630890A CN115630890A (en) | 2023-01-20 |
CN115630890B true CN115630890B (en) | 2023-09-01 |
Family
ID=84911219
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211629043.7A Active CN115630890B (en) | 2022-12-13 | 2022-12-13 | Block chain-based transportation method and system for exhibition commodity |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115630890B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111260279A (en) * | 2020-01-10 | 2020-06-09 | 佛山市艾温特智能科技有限公司 | Logistics control method and system based on block chain |
CN112016107A (en) * | 2020-08-26 | 2020-12-01 | 陕西交通物流信息服务平台有限公司 | Logistics big data ecosystem and method based on block chain |
CN112232840A (en) * | 2020-10-29 | 2021-01-15 | 中山大学 | Agricultural product block chain tracing method and system combining Beidou system |
CN114529306A (en) * | 2022-01-05 | 2022-05-24 | 南京理工大学 | Block chain-based free forging supply chain traceability system |
-
2022
- 2022-12-13 CN CN202211629043.7A patent/CN115630890B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111260279A (en) * | 2020-01-10 | 2020-06-09 | 佛山市艾温特智能科技有限公司 | Logistics control method and system based on block chain |
CN112016107A (en) * | 2020-08-26 | 2020-12-01 | 陕西交通物流信息服务平台有限公司 | Logistics big data ecosystem and method based on block chain |
CN112232840A (en) * | 2020-10-29 | 2021-01-15 | 中山大学 | Agricultural product block chain tracing method and system combining Beidou system |
CN114529306A (en) * | 2022-01-05 | 2022-05-24 | 南京理工大学 | Block chain-based free forging supply chain traceability system |
Non-Patent Citations (1)
Title |
---|
杨信廷等.基于区块链的农产品追溯系统信息存储模型与查询方法.《农业工程学报》.2019,第35卷(第22期),第323-330页. * |
Also Published As
Publication number | Publication date |
---|---|
CN115630890A (en) | 2023-01-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110335149B (en) | Asset right-confirming transaction implementation method and system based on block chain | |
CN109544160B (en) | Transaction authenticity verification method and system based on block chain and intelligent contract | |
AU2021255596A1 (en) | Intelligent assertion tokens for authenticating and controlling network communications using a distributed ledger | |
EP3852047A1 (en) | Blockchain-based content sharing and creation server, content distribution server, and system including same | |
CN102292737B (en) | For the treatment of the method and system of request scheme and managed inventory | |
CN107180350A (en) | A kind of method of the multi-party shared transaction metadata based on block chain, apparatus and system | |
CN107274130A (en) | A kind of driver's credit investigation system and method based on block chain technology and Logistics Information Platform | |
CN110135819A (en) | A kind of third party's trust data transaction system and method based on block chain | |
CN114399320B (en) | Bill supply chain anti-counterfeiting traceability system and method based on block chain NFT | |
CN107480964A (en) | Orientation assignment method, central server and the storage medium of digital asset | |
Koirala et al. | Supply chain using smart contract: A blockchain enabled model with traceability and ownership management | |
CN109493229A (en) | A kind of cosmetics traceability system based on block chain | |
Eze et al. | A triplicate smart contract model using blockchain technology | |
CN112053271B (en) | Public service platform data evidence management method and system based on block chain | |
CN117635021B (en) | Supply chain management platform based on digital service | |
CN107146143A (en) | Advanced manufacture e-commerce platform | |
CN111740841A (en) | Method and device for generating and verifying tracing code | |
CN110909381A (en) | Block chain-based user comment tamper-proof system and method | |
WO2022266372A1 (en) | Method and system for creating, tracking and changing the status of a fractional non-fungible token | |
CN114548987A (en) | Anti-cheating and supervision NFR (network File System) rights and interests flow conversion intelligent contract and method thereof | |
Bhatnagar et al. | Product traceability using blockchain | |
CN112488701A (en) | Block chain-based intermediary transaction method and system | |
CN115630890B (en) | Block chain-based transportation method and system for exhibition commodity | |
CN112396527A (en) | Cross-border commodity tracing method based on block chain | |
CN115941282A (en) | NFT-based block chain cross-chain interaction system and method |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |