Intelligent analysis system based on block chain

By designing an intelligent analysis system based on blockchain, the problem of low efficiency in supply chain traceability analysis and processing is solved, and more efficient node selection, transaction processing and traceability verification are achieved.

CN119597838APending Publication Date: 2025-03-11HUAIAN XURUN IND CO LTD

Patent Information

Application Number
CN202411257242.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-09
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

With the complexity of the supply chain and the development of economic globalization, traceability analysis and processing are inefficient, making it difficult to meet the needs of efficient collaboration and data verification among enterprises.

Method used

Design an intelligent analysis system based on blockchain to achieve efficient operation of the blockchain analysis system through node selection management, consensus management, data storage, optimization analysis processing and interactive feedback processing.

Benefits of technology

It improves the node selection efficiency of the blockchain analysis system, reduces transaction delay, and improves the overall performance and traceability verification efficiency of the blockchain.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119597838A_ABST
    Figure CN119597838A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent analysis system based on a block chain. An operation method of the system comprises the steps of performing node selection management of the block chain analysis system; performing consensus management and data storage on the block chain analysis system; performing optimization analysis processing of the block chain analysis system; performing interaction and feedback processing of the block chain analysis system; the node selection management of the block chain analysis system comprises the following steps: when a block chain network broadcasts a workload proving request, a control request comprises a father block hash value in a block head verified by a candidate node, and the value is a result obtained after a hash value of a latest block at the current moment and a random number are hashed; and further performing verification signature on the random value to complete corresponding consensus node election. The system has the characteristics of intelligent management and control analysis and high processing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to an intelligent analysis system based on blockchain. Background Art

[0002] The supply chain is a network structure that connects the upstream and downstream, and flows goods from the production end to the consumer. It connects the enterprises in each link of the supply chain process, improves the coordination efficiency between enterprises, and maximizes the economic benefits of enterprises. A complete supply chain includes at least the following types of participants: raw material suppliers, transporters, commodity manufacturers, retailers and final consumers. The efficient operation of the supply chain is an important guarantee for economic development. As the number of various enterprises from raw materials to final consumers continues to increase, the production process of commodities has become more complicated. Moreover, with the development of economic globalization and the continuous expansion of the consumer market, various enterprises are constantly expanding their product production scale, which seriously affects the traceability analysis and processing. Therefore, it is necessary to design an intelligent analysis system based on blockchain with high intelligent control analysis and processing efficiency. Summary of the invention

[0003] The purpose of the present invention is to provide a blockchain-based intelligent analysis system to solve the problems raised in the above-mentioned background technology.

[0004] In order to solve the above technical problems, the present invention provides the following technical solutions: an intelligent analysis method based on blockchain, comprising: Conduct node selection management for blockchain analysis system; Conduct consensus management and data storage for blockchain analysis systems; Conduct optimization analysis and processing of blockchain analysis system; Conduct interaction and feedback processing of blockchain analysis system; The node selection management of the blockchain analysis system includes: When the proof-of-work request is broadcast on the blockchain network, the control request contains the hash value of the parent block in the block header verified by the candidate node, where the value is the hash value of the latest block at the current moment and a random number. The random value is further verified and signed to complete the corresponding consensus node election.

[0005] According to the above technical solution, the consensus management and data storage of the blockchain analysis system includes: After the election is completed, the blockchain enters the consensus stage, controlling the set of accounting nodes to package the transactions in the blockchain in turn. When the accounting node receives a transaction request, it verifies the legitimacy of its signature and transaction address. If the verification is successful, it is added to the transaction body of the current block. If the verification fails, the transaction request is directly rejected. The blockchain analysis system performs on-chain data storage management. The signature value of the upstream enterprise is verified by using a hash algorithm to calculate the hash value of the current enterprise's plaintext data. When calculating the hash value of the data, the hash value of the upstream enterprise will be included, so that the traceability data of a product stored in the database forms a chain structure.

[0006] According to the above technical solution, the optimization analysis and processing of the blockchain analysis system includes: The off-chain data generated by each link of the product is processed and the hash value and signature value generated are stored in the blockchain by deploying smart contracts. The enterprise public key is uploaded to the chain through the smart contract, and the hash value and signature value are uploaded to the chain after the enterprise signature is successfully verified. Then, the contract address where the on-chain data is saved is stored in the corresponding off-chain data to complete the expanded storage.

[0007] According to the above technical solution, the optimization analysis process of the blockchain analysis system further includes: Further optimize the design and processing of the database table of the blockchain analysis system, so that each enterprise first registers information, including the blockchain address of the enterprise to which the enterprise belongs, the identity of the enterprise, the raw material production enterprise, the transportation enterprise, the commodity production enterprise and the commodity sales enterprise, and store consumer data information in a separate database; After setting the finishFlag flag, when the item is handed over to the downstream enterprise, the enterprise needs to call the setComplete function to change the flag status. The hash value and signature value can no longer be changed. When the downstream enterprise verifies the current enterprise data and its signature value, the finishFlag is false to avoid the same tag being used again.

[0008] According to the above technical solution, the interaction and feedback processing of the blockchain analysis system includes: Through interactive processing, users and the system can conduct query traceability analysis and display, effectively improving user satisfaction; After the user uploads the usage opinion information of the blockchain analysis system, the feedback is transmitted to the workbench for management personnel to review and analyze.

[0009] According to the above technical solution, a blockchain-based intelligent analysis system includes: Control management module, used for control and management of blockchain analysis system; Analysis and processing module, used for analysis and optimization of blockchain analysis system; The interactive feedback module is used for interactive control between users and the system.

[0010] According to the above technical solution, the control management module includes: Node election module, used to conduct node elections for the blockchain analysis system; Consensus management module, used for consensus management of blockchain analysis system; The data storage module is used to store, manage and control data information.

[0011] According to the above technical solution, the analysis and processing module includes: The extended storage module is used for extended storage processing of the blockchain analysis system; Database table module, used for database table design of blockchain analysis system; The contract analysis module is used to perform contract analysis and processing of the blockchain analysis system.

[0012] According to the above technical solution, the interactive feedback module includes: Interactive query module, used for interactive query processing of blockchain analysis system; The feedback processing module is used to perform feedback transmission control of data information.

[0013] Compared with the prior art, the beneficial effects achieved by the present invention are as follows: the present invention, by providing a control management module, an analysis and processing module and an interactive feedback module, can ensure that more candidate nodes have the possibility of becoming consensus nodes, making the node selection of the blockchain analysis system more comprehensive, and making the node selection more efficient and accurate, and can effectively reduce the transaction delay of the blockchain analysis system, improve the overall performance of the blockchain, and at the same time improve the traceability verification efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings: Figure 1 This is a flowchart of a blockchain-based intelligent analysis method provided in Example 1 of the present invention; Figure 2 This is a module structure diagram of a blockchain-based intelligent analysis system provided in Example 2 of the present invention. DETAILED DESCRIPTION

[0015] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0016] Embodiment 1: Figure 1 This is a flowchart of a blockchain-based intelligent analysis method provided in Embodiment 1 of the present invention. This embodiment can be applied to a blockchain analysis system. The method can be executed by a blockchain-based intelligent analysis system provided in an embodiment of the present invention. The system is composed of multiple software and hardware modules, such as Figure 1 As shown, the method specifically comprises the following steps: S101. Perform node selection management for the blockchain analysis system; Exemplarily, in an embodiment of the present invention, when a proof-of-work request is broadcast on a blockchain network, the control request includes a hash value of a parent block in a block header verified by a candidate node, wherein the value is the hash value of the latest block at the current moment and a random number, and the random value is further verified and signed to complete the corresponding consensus node election; in this step, after receiving the proof-of-work request, the candidate node in the network verifies the random value according to the above-mentioned proof-of-work principle, and when a random number that meets the difficulty value is verified, the candidate node sends a verification success message to the blockchain, and the message includes a verification success block header, and the verification success node will sign the information. When the system receives the verification success message and verifies successfully, it broadcasts a stop verification message to other nodes in the network, and the message includes the address information of the consensus node in this round. After receiving the message, other candidate nodes in the network stop the proof of work in this round, and the consensus node election in this round ends. Through this step, it can be ensured that more candidate nodes have the possibility of becoming consensus nodes, making the node selection of the blockchain analysis system more comprehensive, and making the node selection more efficient and accurate.

[0017] S102. Perform consensus management and data storage on the blockchain analysis system; Exemplarily, in an embodiment of the present invention, after the election is completed, the blockchain enters the consensus stage, and the control accounting node set takes turns to package the transactions in the blockchain. When the accounting node receives the transaction request, it verifies the legitimacy information of its signature and transaction address. If the verification is successful, it is added to the transaction body of the current block. If the verification fails, its transaction request is directly rejected; in this step, at the end of the current accounting node production cycle, the accounting node signs the block it generates and sends it to all nodes in the verification node set for verification. If the block cannot be generated normally during the production cycle, a node is selected from the candidate nodes to replace the current accounting node, and the accounting node replacement message is broadcast. The broadcast message contains the new accounting node information. When the verification node receives the block verification request, it verifies whether the block signature and each transaction in the transaction body are correct. If the verification is passed, a verification pass message is sent to the accounting node. If it is found that there are transactions in the block that are wrong, a verification failure message is sent to the accounting node. Through this step, the transaction delay of the blockchain analysis system is effectively reduced and the overall performance of the blockchain is improved.

[0018] The blockchain analysis system is used to store and manage on-chain data. The signature value of the upstream enterprise is verified by using a hash algorithm, and the hash value of the current enterprise's plaintext data is calculated. When calculating the hash value of the current data, the hash value of the upstream enterprise will be included, so that the traceability data of a product stored in the database forms a chain structure. In this step, when consumers verify the product, they only need to read the on-chain hash value and signature value of the last enterprise after obtaining the off-chain plaintext data to complete the verification, without having to obtain the on-chain data of all sub-enterprises. Therefore, this step can improve the traceability verification efficiency of the system.

[0019] S103, performing optimization analysis and processing of the blockchain analysis system; Illustratively, in an embodiment of the present invention, the off-chain data generated by each link of the commodity is processed, and the hash value and signature value results generated are stored in the blockchain by deploying a smart contract, and the enterprise public key is uploaded to the chain through the smart contract, and after the enterprise signature is successfully verified, the hash value and signature value are uploaded to the chain, and then the contract address where the on-chain data is saved is stored in the corresponding off-chain data to complete the expanded storage; through this step, all the data of the commodity from raw materials to sales can be obtained, which is used to trace the data of the commodity, effectively improving the operation and processing efficiency and accuracy of the blockchain analysis system.

[0020] The database table of the blockchain analysis system is further optimized and designed so that each enterprise first registers its information, including the blockchain address of the enterprise, the enterprise's identity, the raw material production enterprise, the transportation enterprise, the commodity production enterprise and the commodity sales enterprise, and stores consumer data information in a separate database; through this step, the efficiency of data information traceability processing can be effectively improved to avoid errors.

[0021] After setting the finishFlag flag, when the item is handed over to the downstream enterprise, the enterprise needs to call the setComplete function to change the flag status. After that, the hash value and signature value cannot be changed. When the downstream enterprise verifies the current enterprise data and its signature value, the finishFlag is false to avoid the same tag from being used again. In this step, before the item is delivered, in order to prevent the subsidiary from entering the wrong data due to negligence, the hash value and signature value can be modified through the update Value function, but only once. After the modification is completed, the modifyFlag flag needs to be set to true. The identificationCode represents the identification code of the downstream enterprise or consumer delivered by the current subsidiary. After the current subsidiary calls the setNextOwner function to set the identification code of its downstream enterprise or consumer, the downstream enterprise or consumer can obtain the hash value and signature value in the current contract. When the downstream enterprise receives the current subsidiary product, it first confirms the product status through the getFinishFlag function. If the product has been accepted, it rejects the product. If it has not been confirmed, it verifies its signature value. If the verification passes, the subsidiary to which the product belongs is notified to change the delivery status of the current product.

[0022] S104, performing interaction and feedback processing of the blockchain analysis system; Exemplarily, in the embodiment of the present invention, the query traceability analysis and display between the user and the system are enabled through interactive processing, which effectively improves the user's satisfaction; After the user uploads the usage opinion information of the blockchain analysis system, the feedback is transmitted to the workbench for management personnel to review and analyze.

[0023] Embodiment 2: Embodiment 2 of the present invention provides an intelligent analysis system based on blockchain. Figure 2 A schematic diagram of the module structure of a blockchain-based intelligent analysis system provided in the second embodiment, as shown in FIG. Figure 2 As shown, the system includes: Control management module, used for control and management of blockchain analysis system; Analysis and processing module, used for analysis and optimization of blockchain analysis system; The interactive feedback module is used for interactive control between users and the system.

[0024] In some embodiments of the present invention, the control management module includes: Node election module, used to conduct node elections for the blockchain analysis system; Consensus management module, used for consensus management of blockchain analysis system; The data storage module is used to store, manage and control data information.

[0025] In some embodiments of the present invention, the analysis and processing module includes: The extended storage module is used for extended storage processing of the blockchain analysis system; Database table module, used for database table design of blockchain analysis system; The contract analysis module is used to perform contract analysis and processing of the blockchain analysis system.

[0026] In some embodiments of the present invention, the interactive feedback module includes: Interactive query module, used for interactive query processing of blockchain analysis system; The feedback processing module is used to perform feedback transmission control of data information.

[0027] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0028] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. An intelligent analysis method based on blockchain, characterized in that: include: Conduct node selection management for blockchain analysis system; Conduct consensus management and data storage for blockchain analysis systems; Conduct optimization analysis and processing of blockchain analysis system; Conduct interaction and feedback processing of blockchain analysis system; The node selection management of the blockchain analysis system includes: When the proof-of-work request is broadcast on the blockchain network, the control request contains the hash value of the parent block in the block header verified by the candidate node, where the value is the hash value of the latest block at the current moment and a random number. The random value is further verified and signed to complete the corresponding consensus node election.

2. According to claim 1, a blockchain-based intelligent analysis method is characterized by: The consensus management and data storage of the blockchain analysis system includes: After the election is completed, the blockchain enters the consensus stage, controlling the set of accounting nodes to package the transactions in the blockchain in turn. When the accounting node receives a transaction request, it verifies the legitimacy of its signature and transaction address. If the verification is successful, it is added to the transaction body of the current block. If the verification fails, the transaction request is directly rejected. The blockchain analysis system performs on-chain data storage management. The signature value of the upstream enterprise is verified by using a hash algorithm to calculate the hash value of the current enterprise's plaintext data. When calculating the hash value of the data, the hash value of the upstream enterprise will be included, so that the traceability data of a product stored in the database forms a chain structure.

3. According to claim 1, a blockchain-based intelligent analysis method is characterized by: The optimization analysis process of the blockchain analysis system includes: The off-chain data generated by each link of the product is processed and the hash value and signature value generated are stored in the blockchain by deploying smart contracts. The enterprise public key is uploaded to the chain through the smart contract, and the hash value and signature value are uploaded to the chain after the enterprise signature is successfully verified. Then, the contract address where the on-chain data is saved is stored in the corresponding off-chain data to complete the expanded storage.

4. According to claim 1, a blockchain-based intelligent analysis method is characterized by: The optimization analysis process of the blockchain analysis system further includes: Further optimize the design and processing of the database table of the blockchain analysis system, so that each enterprise first registers information, including the blockchain address of the enterprise to which the enterprise belongs, the identity of the enterprise, the raw material production enterprise, the transportation enterprise, the commodity production enterprise and the commodity sales enterprise, and store consumer data information in a separate database; After setting the finishFlag flag, when the item is handed over to the downstream enterprise, the enterprise needs to call the setComplete function to change the flag status. The hash value and signature value can no longer be changed. When the downstream enterprise verifies the current enterprise data and its signature value, the finishFlag is false to avoid the same tag being used again.

5. According to claim 1, a blockchain-based intelligent analysis method is characterized by: The interaction and feedback processing of the blockchain analysis system includes: Through interactive processing, users and the system can conduct query traceability analysis and display, effectively improving user satisfaction; After the user uploads the usage opinion information of the blockchain analysis system, the feedback is transmitted to the workbench for management personnel to review and analyze.

6. A blockchain-based intelligent analysis system, characterized by: include: Control management module, used for control and management of blockchain analysis system; Analysis and processing module, used for analysis and optimization of blockchain analysis system; The interactive feedback module is used for interactive control between users and the system.

7. The blockchain-based intelligent analysis system according to claim 6, characterized in that: The control management module includes: Node election module, used to conduct node elections for the blockchain analysis system; Consensus management module, used for consensus management of blockchain analysis system; The data storage module is used to store, manage and control data information.

8. The blockchain-based intelligent analysis system according to claim 6, characterized in that: The analysis and processing module comprises: The extended storage module is used to perform extended storage processing of the blockchain analysis system; Database table module, used for database table design of blockchain analysis system; The contract analysis module is used to perform contract analysis and processing of the blockchain analysis system.

9. The blockchain-based intelligent analysis system according to claim 6, characterized in that: The interactive feedback module comprises: Interactive query module, used for interactive query processing of blockchain analysis system; The feedback processing module is used to perform feedback transmission control of data information.

Citation Information

Patent Citations

  • Product traceability method and system in network, computer system and storage medium

    CN108846010A

  • Industrial Internet credible management method and system based on block chain

    CN114095179A

  • Block chain verification method and device, electronic equipment and storage medium

    CN115941683A

  • Agricultural product supply chain credible tracing model based on PBFT consensus mechanism and implementation method

    CN116383869A

  • Planting industry agricultural product tracing method based on multi-chain fusion

    CN116542681A

Cited By

  • Consumption circulation profit distribution system based on block chain technology

    CN120317962A