CN-116777316-B - High-performance alliance block chain steel logistics traceability method
Abstract
The invention discloses a high-performance alliance blockchain steel logistics tracing method which comprises the steps of obtaining uplink data information of a steel logistics, carrying out transaction information identification by adopting a word frequency statistics method and an optimized hash function, carrying out transaction verification on transaction identification information, carrying out caching through a block cache and a receipt cache, carrying out parallel transaction verification, carrying out tracing result display, carrying out multi-layer distributed caching and the optimized hash function to accelerate tracing to obtain tracing results, and obtaining a DAG pattern blockchain through cross-domain information interaction and sign field processing to improve data transmission efficiency. According to the invention, redundancy verification is reduced, transaction is applied to caching, block transaction verification is processed in parallel, a hash function with high execution speed is selected, and multi-level distributed caching technology is adopted to perform high-performance optimization on alliance block chain steel logistics traceability.
Inventors
- PENG HAO
- LIU MINGSHENG
- LI JIANHUA
- WANG DU
- ZHENG JIANWU
- Ran Peijun
- ZHAO XIAOLIANG
- WANG KAIFEI
Assignees
- 北京航空航天大学
- 石家庄铁道大学
- 石家庄铁大科贤信息技术有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20230307
Claims (8)
- 1. A high-performance alliance block chain steel logistics traceability method is characterized by comprising the following steps: Acquiring uplink data information in steel logistics; the verification node judges whether the transaction data information is encrypted or not through word frequency statistics, and further determines whether the transaction data information is sensitive information or not; in the transaction information identification process, a word frequency statistical method and an optimized hash function are adopted: Before submitting transaction data to a verification node, the client performs word frequency statistics on the transaction data to be submitted at this time by using a natural language processing technology, wherein a dictionary adopted by the word frequency statistics is a dictionary constructed based on a alliance consensus mechanism; after receiving the transaction data information, the verification node applies word frequency statistics technology to judge the transaction data; the verification node applies word frequency statistics technology to the received data, if the statistics result contains the pseudo-random string, the received data is encrypted sensitive data, otherwise, the received data is unencrypted non-sensitive data; carrying out transaction verification on the transaction identification information, caching the transaction identification information through a block cache and a receipt cache, and carrying out parallel processing on the transaction verification; Wherein, carry out transaction verification to the transaction identification information, when adopting parallel processing transaction verification: In order to further accelerate the processing speed of transaction, a parallel execution protocol is established, and the execution of the transaction is accelerated through the parallelism of block verification processes of a plurality of node committees; the block chain mechanism consists of two tasks, block selection and transaction execution; based on a alliance consensus mechanism, a leader and n committees are temporarily selected, each committee is composed of a plurality of nodes, and the committee members are called as executors, which represent the roles of the committee members in executing transactions in block verification; the leader performs a block selection operation while the leader performs all transactions for the selected block, the transaction execution is also responsible for outputting the execution result, also called a transaction receipt, to apply the block transaction to the last state, calculate the new state of the blockchain system, the description of the state transition is divided into two processes, execute and apply the write operation; And (3) performing tracing result display, accelerating tracing through a multi-layer distributed cache and an optimized hash function to obtain a tracing result, and obtaining a DAG pattern block chain through cross-domain information interaction and tag field processing to improve data transmission efficiency.
- 2. The method for tracing the high-performance alliance blockchain steel logistics according to claim 1 is characterized in that a dictionary constructed based on an alliance consensus mechanism is used for carrying out word-by-word sequential scanning on each corpus, a window width W is given, a section of character string is taken out from the corpus, whether corresponding vocabulary entries exist in the dictionary or not is inquired, if the corresponding vocabulary entries exist, a counter of the vocabulary entries is increased by one, and if the corresponding vocabulary entries do not exist, the length of the character string is reduced and compared again.
- 3. The high-performance alliance blockchain steel logistics traceability method according to claim 1, wherein in the process of transaction verification of transaction identification information, an eager verification mechanism is adopted for transactions related to sensitive information based on a steel alliance blockchain consensus mechanism; For the verification of sensitive data, a eager verification mode is adopted, wherein the verification is carried out when one verifier receives a transaction submitted by a client, the verification node firstly verifies whether the transaction is valid or not based on a alliance consensus mechanism, after the verification is valid, the verification node firstly propagates the transaction to other verifiers, packages the transaction into a block, transmits the block to other verifiers, re-verifies and executes the block transaction, stores the block, and finally a sender confirms that the transaction is submitted For verification of non-sensitive information data transactions, an inert verification scheme is used, wherein the verification scheme occurs before the transaction in the block is executed, i.e. all verifiers verify the transaction when the transaction is to be executed.
- 4. The high-performance alliance blockchain steel logistics traceability method according to claim 1, wherein in the process of caching transaction identification information through a block cache and a receipt cache in the process of transaction verification: After a client submits a transaction, a verifier caches the submitted transaction blocks by maintaining a hash table, then inserts the blocks into a chain and writes the blocks into a database, uses the block numbers to uniquely identify a block, and uses the block numbers for keys for quickly searching the blocks in the hash table, thereby reducing the reading and writing of the database to speed up the search; For the buffer optimization of receipts, after the execution of a transaction block and before the insertion of the transaction block into a chain, a client terminal firstly and rapidly inquires buffer data before checking whether a newly submitted transaction is submitted, and only if the buffer data is not inquired in the buffer, the client terminal accesses a database to inquire so as to reduce the read-write operation of the database.
- 5. The high-performance alliance blockchain steel logistics tracing method according to claim 1, wherein in the process of obtaining tracing results through multi-layer distributed cache acceleration tracing: Defining access frequency based on a alliance consensus mechanism, wherein the access frequency refers to the frequency of accessing a certain object, each node stores the defined access frequency of the object and a key thereof in a local storage, and the defined access frequency is measured by calculating the access times in a given time period and storing the access times in the local storage together with the object; The method comprises the steps of dividing nodes into different storage class groups according to the availability of the nodes, wherein each storage class group has different access frequency levels to delete objects from local storage, the access frequency levels of the objects are determined by the number of times of access and threshold time, and each group except the highest storage class group deletes non-accessed objects according to the access frequency levels.
- 6. The method for tracing a high performance alliance blockchain steel logistics according to claim 1, wherein in the process of obtaining the DAG pattern blockchain through cross-domain information interaction and tag field processing to improve the data transmission efficiency: The method comprises the steps of constructing a hierarchical steel logistics traceability model based on a pattern block chain DAG block chain, carrying out partition processing on the block chain, carrying out steel logistics classification through a mark field based on a alliance consensus mechanism before steel logistics traceability information is stored, realizing that different levels of steel logistics information are stored in corresponding different block chain partitions; Dividing the whole network node into a main network and a plurality of partition sub-networks in the hierarchical steel logistics traceability model based on the pattern block chain, wherein the main network stores all block information, and each different partition sub-network stores steel logistics traceability information with different mark field values; in the whole network environment, the main network stores all blocks on the DAG blockchain, and the partition sub-network stores main chain information and the DAG sub-chain corresponding to the partition mark field value.
- 7. The method for tracing the high-performance alliance blockchain steel logistics according to claim 6, wherein cross-domain information interaction is performed through the hierarchical steel logistics tracing model based on the pattern blockchain, and different partitioned sub-network nodes interact, comprising the steps of: A node sending cross-domain interaction information queries a tag database and determines whether a mark field value of the information exists or not; if the flag field value exists, selecting a node according to a matching result in the database, and sending information to the node, and entering the step (4); if the flag field value does not exist, the exception is thrown out, and interaction is terminated; Reconstructing a block by the selected node according to the request information; And all nodes of the partitioned sub-network finish information verification, information broadcasting and information storage.
- 8. The method for tracing a high performance alliance blockchain steel stream according to claim 6, wherein the partitioning of the tag field based on the alliance consensus mechanism comprises the steps of: Judging whether certain data are normal or not based on a alliance consensus mechanism, if so, entering the step (2), otherwise, entering the step (3); broadcasting a main network and a partition sub-network node to update the network, waiting for the verification of the whole network, storing after the verification, and ending the processing; Judging whether the mark fields are the same as the mark fields which should be stored by the node, if so, authenticating in the domain and broadcasting the mark fields to wait for authentication and storage, and ending the processing, if not, entering the step (4); performing cross-domain interaction, inquiring a TAG database, throwing out an exception if the TAG TAG field does not exist in the database, ending the processing, otherwise, entering the step (5); And selecting a node to be processed according to the IP address corresponding to the mark field in the mark database, and executing the operations of packaging block, broadcasting block, waiting for verification and storage by the selected node.
Description
High-performance alliance block chain steel logistics traceability method Technical Field The invention belongs to the technical field of traceability methods based on blockchains, and particularly relates to a high-performance alliance blockchain steel logistics traceability method. Background In recent years, the steel industry is continuously advanced to the supply side reform of the steel industry as the support industry of the economic development of the national economy of China, the steel industry structure is adjusted by optimizing the industrial policy, converting the government functions and withdrawing the surplus productivity, and the digital conversion development of the steel logistics is also a necessary choice for the steel enterprises. For logistics industry, the traditional logistics industry in China grows rapidly in recent years, but a plurality of problems such as low efficiency, frequent occurrence of packet loss and bin explosion, error collar and information leakage are still not solved. By means of the alliance blockchain technology, a logistics company and a transaction party can truly and reliably record and transfer fund flows, material flows and information flows. The logistics industry utilizes a block chain basic platform, so that the resource utilization rate can be optimized, the intermediate link can be compressed, and the overall efficiency of the industry can be improved. In classical blockchain systems, such as ethernet and bitcoin. The verification mechanism of the transaction is that the participant (miner) transmits the transaction to other participants when confirming each transaction, packages the transaction into a block, transmits the block to other participants, re-verifies and executes the block transaction, stores the block, and finally the sender confirms that the transaction has been submitted. In this process, there is a major disadvantage in that each participant must verify a transaction twice, which creates redundant data, while the reading of the transaction and the storage of the block requires more expensive I/O due to the presence of the redundant data. The steel logistics comprises three links of raw material purchase and transportation, on-site logistics of steel production and finished product sales logistics, and the steel logistics is an industry with multi-type intermodal attribute and can be well combined with alliance blockchain. After the steel logistics are combined with the blockchain, the technology of storing the blockchain is used, and each link from raw materials to production, from going out of a steel factory gate to storage, transaction, processing, logistics, distribution and the like of each steel factory, even to a terminal, can be traced, and information which cannot be tampered is reserved. For steel logistics, in order to realize data security, information such as commodity information, information of both sides of a transaction, logistics information (drivers, vehicles, transportation routes and the like), transportation start-stop time information and the like must be totally linked, wherein there may be some data requiring personal privacy of users to require further encryption processing, so that the formed blockchain has a large volume, and meanwhile, a large amount of redundant data can be generated due to the traditional blockchain, so that the size of the chain is inconceivable, and the existing blockchain processing mode cannot meet the specificity of tracing the steel logistics. Disclosure of Invention In order to solve the problems, the invention provides a high-performance alliance block chain steel logistics tracing method, which reduces redundancy verification by using word frequency statistics, caches application transaction, processes block transaction verification in parallel, selects a hash function with high execution speed, and adopts a multistage distributed caching technology to perform high-performance optimization on alliance block chain steel logistics tracing. In order to achieve the aim, the technical scheme adopted by the invention is that the high-performance alliance block chain steel logistics traceability method comprises the following steps: Acquiring uplink data information in steel logistics; the verification node judges whether the transaction data information is encrypted or not through word frequency statistics, and further determines whether the transaction data information is sensitive information or not; carrying out transaction verification on the transaction identification information, caching the transaction identification information through a block cache and a receipt cache, and carrying out parallel processing on the transaction verification; And (3) performing tracing result display, accelerating tracing through a multi-layer distributed cache and an optimized hash function to obtain a tracing result, and obtaining a DAG pattern block chain through cross-domain information interac