CN116258309A - Business object life cycle management and tracing method and device based on block chain - Google Patents

Business object life cycle management and tracing method and device based on block chain Download PDF

Info

Publication number
CN116258309A
CN116258309A CN202211395388.0A CN202211395388A CN116258309A CN 116258309 A CN116258309 A CN 116258309A CN 202211395388 A CN202211395388 A CN 202211395388A CN 116258309 A CN116258309 A CN 116258309A
Authority
CN
China
Prior art keywords
information
block
blockchain
node
service node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211395388.0A
Other languages
Chinese (zh)
Inventor
杨明明
阮志坚
陈庆峰
李佳鹤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lanzhuo Digital Technology Co ltd
Original Assignee
Lanzhuo Digital Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lanzhuo Digital Technology Co ltd filed Critical Lanzhuo Digital Technology Co ltd
Priority to CN202211395388.0A priority Critical patent/CN116258309A/en
Publication of CN116258309A publication Critical patent/CN116258309A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • G06Q30/0185Product, service or business identity fraud
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/04Manufacturing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Marketing (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • General Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Development Economics (AREA)
  • Tourism & Hospitality (AREA)
  • Health & Medical Sciences (AREA)
  • Operations Research (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Bioethics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Game Theory and Decision Science (AREA)
  • Accounting & Taxation (AREA)
  • Manufacturing & Machinery (AREA)
  • Primary Health Care (AREA)
  • Computing Systems (AREA)
  • Finance (AREA)
  • Educational Administration (AREA)

Abstract

The invention discloses a business object life cycle management and tracing method and device based on a blockchain, comprising the following steps: deploying block chain nodes and building a alliance block chain network; registering and authenticating in a CA authentication center, distributing unique service node ID, block chain link point key pair and service node key pair by the authentication center, and entering a corresponding service node after passing authentication; when the business object is changed or converted, the service node carries out information construction, generates traceability information and signs, sends key information to a blockchain network to form a blockrecord, and sends non-key information to the outside of the chain for storage; obtaining a block record, constructing a new block through a consensus mechanism, and forming a trusted block uplink by adopting an encryption algorithm; and constructing a display layer, displaying the life cycle information of the service object in real time during inquiry, and realizing maintenance and tracing of the full-link and full-life cycle information of the service closed loop of the service object.

Description

Business object life cycle management and tracing method and device based on block chain
Technical Field
The invention belongs to the technical field of industrial control, and particularly relates to a business object life cycle management and tracing method and device based on a blockchain.
Background
Business object information under the micro-business architecture is recorded and stored in each business system or service in a scattered and isolated manner, and is lack of correlation, so that the problem of information island is serious, and in addition, the problems of information asymmetry, information counterfeiting, privacy infringement and the like are caused by inherent barriers among enterprises, so that the whole life cycle of the business object and the circulation condition of each intermediate link are difficult to trace.
Because of collision and distrust of interests naturally occurring in departments and enterprises, trust or contract relation is always slow and difficult to build when any two parties interact, so that the phenomenon of 'data wall' in and among enterprises is very common, and the problems of isolated information, complicated information circulation, low information transparency and the like are caused.
In the manufacturing industry, from planning to processing to produce final products, the complexity may go through tens or even hundreds of steps, and each link of the intermediate circulation contains a large amount of business information. The current micro-service architecture is large, and for a system with complex business, the system like an enterprise interior SCM, MES, QMS is often further split into a plurality of micro-services to cope with the change of the complex business, so that the system can usually operate with tens of hundreds of micro-services behind the informatization, the digitalization and the intellectualization of the enterprise. Behind so many services are hundreds of business objects, and it is very difficult to effectively retrospectively manage these objects.
Through realizing the whole life cycle management and the traceability of the business information, the production process can be effectively analyzed in enterprises, each configuration detail in the production process is improved and corrected, and the supply chain, the production and the sales among enterprises can be accurately butted and the industrial collaborative capability is improved by combining intelligent services.
In order to implement life cycle traceability management of business objects, the common solutions in the industry are: the objects are labeled, the association between the objects is established, then the label objects and the association relationship between the objects are stored in a centralized mode, and finally the objects are displayed in a foreground system. The disadvantage of this solution is that the service object information and association relation need to be captured from each service system or service, but the selection and frequency of the extraction timing are limited, and the life cycle information of each stage of the object cannot be completely displayed in real time; meanwhile, the business object information is scattered in each business system in the whole flow, and the data information of each related stakeholder cannot be synchronously updated in real time due to the opaque information, so that the possibility of tampering data exists, and the credibility of the data is greatly reduced;
in view of this, there is a need for a method for managing and tracing the lifecycle of a service object by using a blockchain technique.
Disclosure of Invention
The invention aims to provide a business object life cycle management and tracing method based on a blockchain, which solves the problem of 'trusted' existing for a long time in the traditional information tracing process, and realizes the information recording and real-time tracing of the whole life cycle of related products, thereby helping enterprises to realize lean production and lean management, improving the collaborative manufacturing capacity between the upstream and downstream of the industrial chain and reducing the communication cost in the product flow process.
The invention provides a business object life cycle management and tracing method based on a block chain, which comprises the following steps:
deploying block chain nodes, and building a alliance block chain network, wherein the alliance block chain network comprises a plurality of block chain nodes, and the block chain nodes govern a plurality of service nodes;
registering and authenticating in a CA authentication center, distributing unique service node ID, block chain link point key pair and service node key pair by the authentication center, and entering a corresponding service node after passing authentication;
when the business object is changed or converted, the service node carries out information construction, generates traceability information and signature, sends key information to a block chain network to form a block record, and sends non-key information to the outside of the chain for storage;
acquiring the block record, constructing a new block through a consensus mechanism, and forming a trusted block uplink by adopting an encryption algorithm;
constructing a display layer, searching a block record associated with the ID through any node on an object ID deblocking chain network during tracing, and simultaneously searching non-key information according to non-key data Hash value out-of-chain storage in the block record, wherein all obtained information is constructed into a link tree cache according to a time stamp; and the life cycle information of the business objects is displayed in real time during inquiry, so that the maintenance and the traceability of the business objects from raw material purchasing, logistics, processing and production to inspection, storage and distribution, front-back connection of sales, ring-around connection, full link of business closed loop and full life cycle information are realized.
Preferably, when the service object is changed or transformed, the service node performs information construction and generates tracing information and a signature, and judges whether the construction information is key information or not, wherein the construction information comprises key information and non-key information, and the key information comprises an object ID, a trigger action, a abstract, a transformed object ID and a non-key information Hash value; the non-critical information includes operators, object descriptions, and attachments.
Preferably, when the service object is changed or converted, the service node performs information construction and generates tracing information and signatures, the object ID is maintained by a mark analysis system, each service node uniformly acquires the object ID from the mark analysis system, and the mark analysis system performs quick positioning and information inquiry by endowing each entity or virtual object with unique identity codes.
Preferably, when the service object is changed or converted, the service node performs information construction and generates tracing information and a signature, and judges whether the construction information is intelligent contract information, wherein the intelligent contract information comprises contract addresses and contract parameters, and when the intelligent contract is called, an executor on the blockchain automatically executes preset contract operation on the blockchain and stores an execution result and an execution record on the blockchain.
Preferably, the registering and authenticating at the CA authentication center, the authentication center distributes a unique service node ID, a blockchain node key pair and a service node key pair, and entering the corresponding service node after the authentication is passed includes:
registering and authenticating each newly added blockchain node, distributing unique blockchain node ID and blockchain node key pairs by an authentication center, and maintaining public key information of all blockchain nodes and under-jurisdiction service nodes by each blockchain node;
registering and authenticating the service node in a CA authentication center, and distributing unique service node ID, block chain node ID and service node key pair by the authentication center;
after the service node registers and authenticates, the obtained service node ID, block chain node ID and service node key pair are configured in the self service according to the agreed rule.
Preferably, when the service object is changed or transformed, the service node performs information construction and generates tracing information and a signature, the key information is sent to the blockchain network to form a blockrecord, and the non-key information is sent to the out-chain storage further comprises:
after the key information generated by the service node is sent to a preset block chain node, the block chain node verifies whether the information is legal or not in a verification information signature mode, if so, whether the verification information repeatedly appears is further checked, if not, the verification information is added into an information pool queue for caching and broadcasting to other block chain nodes known by the node, if not, the key information is directly discarded, and if not, the other block chain nodes receive the broadcast information and then are added into the information pool queue after verification.
Preferably, the obtaining the block record and constructing a new block through a consensus mechanism and forming a trusted block uplink by using an encryption algorithm includes:
collecting the block information and broadcasting the block information among the block chain nodes, acquiring a current highest block from a block chain network by a leader node, generating a new empty block based on the highest block and generating a new block, and adopting a consensus algorithm to agree on a new block record when 2 xf+1 non-malicious nodes work normally;
the leader node takes out preset information from the information pool according to the first-in first-out principle, inserts the preset information into a new block, signs the new block by adopting a private key, and then sends the new block to other block chain nodes, the other block chain nodes sign the received new block to verify whether the current block record is true and effective, and through broadcasting a verification result, an executor is adopted to execute contract instruction operation on intelligent contracts in the block, and the execution result is stored;
and collecting full 2 xf+1 nodes for verifying that the new block is added into a local block chain through the node broadcasting information, updating the content related to the mapping table of the block height and the block hash, deleting the information record of the new block from the information pool, switching leader nodes according to preset time, and iteratively updating the new block and the block record, wherein f is the number of fault nodes, and the total number of nodes is 3 xf+1.
The invention provides a business object life cycle management and tracing device based on a block chain, which comprises the following components:
the deployment module is used for deploying the blockchain nodes and building a alliance blockchain network, wherein the alliance blockchain network comprises a plurality of blockchain nodes, and the blockchain nodes govern a plurality of service nodes;
the authentication module is used for carrying out registration authentication in the CA authentication center, distributing unique service node ID, block chain link point key pair and service node key pair by the authentication center, and entering the corresponding service node after passing the authentication;
the information construction module is used for carrying out information construction and generating traceability information and signature by the service node when the business object is changed or converted, uploading key information to the blockchain network to form a blockrecord, and uploading non-key information to the outside of the chain for storage;
the block construction module is used for acquiring the block record, constructing a new block through a consensus mechanism and forming a trusted block uplink by adopting an encryption algorithm;
the display module is used for constructing a display layer, searching a block record associated with the front and the rear of the object ID through any node on the object ID deblocking chain network during tracing, and simultaneously searching non-key information according to non-key data Hash value out-of-chain storage in the block record, and constructing all obtained information into a link tree cache according to a timestamp; and the life cycle information of the business objects is displayed in real time during inquiry, so that the maintenance and the traceability of the business objects from raw material purchasing, logistics, processing and production to inspection, storage and distribution, front-back connection of sales, ring-around connection, full link of business closed loop and full life cycle information are realized.
The invention provides a business object life cycle management and tracing device based on a block chain, which comprises a memory and a processor, wherein the memory stores computer readable instructions, and the processor realizes the business object life cycle management and tracing method based on the block chain in the embodiment of the invention when executing the computer readable instructions.
The invention provides a computer readable medium for storing a computer program, which is characterized in that when the computer program is executed by one or more processors, the method for managing and tracing the service object life cycle based on the block chain is realized.
By adopting the technical scheme, the invention has the following advantages and positive effects compared with the prior art:
the invention relates to a method for managing and tracing the life cycle of an industrial business object based on a blockchain, which is based on a blockchain business object information management technology, and the method changes the traditional centralized trust mechanism, overrides the centralized data management mode of which the original core information is only mastered in part of hands, solves the problem of 'trustiness' which exists in the traditional information tracing process for a long time, and realizes the information recording and real-time tracing of the whole life cycle of related products, thereby helping enterprises to realize lean production and lean management, improving the collaborative manufacturing capability between the upstream and the downstream of the industrial chain and reducing the communication cost in the product flow process.
The block chain technology is utilized to form key data such as the attribute of the business object and the conversion relation thereof into a block record and send the block record to a block chain network, a trusted block uplink is formed through a consensus algorithm, specific operations or behaviors defined by participants are automatically executed through intelligent contracts, meanwhile, the safety of the block and the data record is ensured through an encryption algorithm, finally, a visual front end is constructed for inquiring and tracing, so that the full links and full life cycle information maintainability and traceability of the business object from raw material purchasing, logistics, processing and production to checking, storage and distribution and sales are really realized, the reality and accuracy of the information are ensured through the non-falsifiability of the block chain, enterprises are helped to realize lean production and lean management, and the collaborative capability of the whole social industry is improved.
Drawings
The invention is described in further detail below with reference to the attached drawing figures, wherein:
FIG. 1 is a general architecture diagram of a business object lifecycle management and traceback method based on blockchain in accordance with the present invention;
FIG. 2 is a flowchart of a business object lifecycle management and tracing method based on blockchain in accordance with the present invention;
fig. 3 is a schematic diagram of specific steps for information construction when an industrial business object is changed or transformed according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As shown in fig. 1 and 2, the method for managing and tracing the service object life cycle based on the blockchain provided by the invention comprises the following steps:
step S1, deploying block chain nodes, and building a alliance block chain network, wherein the alliance block chain network comprises a plurality of block chain nodes, and the block chain nodes govern a plurality of service nodes; and constructing a alliance chain network as a data base for storing and tracing key information of the service object, realizing decentralization, multiple nodes and expandability, and solving the trust problem among all the participants.
Step S2, registering and authenticating are carried out in a CA authentication center, unique service node ID, block chain node ID and service node key pair are distributed by the authentication center, and the corresponding service node is entered after authentication is passed; the CA authentication mechanism ensures that enterprises in the industry alliance can join in mutual trust, thereby improving the security, reducing the complexity and solving the problem of identity recognition.
Step S3, when the business object is changed or converted, the service node builds information, generates tracing information and signature, sends key information to the blockchain network to form a blockrecord, and sends non-key information to the outside of the chain for storage; the storage separation measures are adopted, so that the information storage pressure on the block chain is reduced, and meanwhile, the information integrity can be ensured.
S4, obtaining the block record, constructing a new block through a consensus mechanism, and forming a trusted block uplink by adopting an encryption algorithm; and the security in the information transmission process is ensured by utilizing a cryptography algorithm.
Step S5, constructing a display layer, searching a block record associated with the front and the rear of an object ID through any node on a block chain removing network during tracing, and simultaneously searching non-key information according to non-key data Hash value in the block record in a de-chain way, and constructing all obtained information into a link tree cache according to a timestamp; the service object life cycle information is displayed in real time during inquiry, so that the industrial service object can be maintained and traced from raw material purchasing, logistics, processing production, inspection, storage distribution, front-back connection of sales, ring-to-ring connection, full link of service closed loop and full life cycle information, and multi-terminal real-time inquiry and tracing of PC, mobile equipment, handheld equipment and the like are supported.
The invention relates to a method for managing and tracing the life cycle of an industrial business object based on a blockchain, which utilizes a blockchain technology to form key data such as the attribute of the business object and the conversion relation thereof into a blockchain network for uploading a blockchain record, forms a trusted blockchain through a consensus algorithm, automatically executes specific operation or behavior defined by participants through an intelligent contract, simultaneously utilizes an encryption algorithm to ensure the safety of the blockchain and the data record, finally constructs a visual front end for inquiring and tracing, truly realizes the front-back connection, ring buckling, full-link and full-life cycle information maintainability and traceability of a business object from raw material purchase, logistics, processing production, storage distribution and sales, and simultaneously utilizes the non-falsifiability of the blockchain to ensure the reality and accuracy of the information, helps enterprises to realize lean production and lean management, and promotes the collaborative capability of the whole social industry.
The invention builds the alliance chain as the blockchain network based on the open source framework, has the advantages of low operation and maintenance cost, high transaction processing speed and good expansibility compared with the public chain, and is suitable for being applied to industrial enterprises. The blockchain network is composed of a plurality of blockchain link points, and typically, at least one node is added to the blockchain network by an enterprise in a federation, such as a raw material supplier, a manufacturing enterprise, a logistics distribution enterprise, and the like. Each newly added blockchain node needs to be registered and authenticated in a CA authentication center, unique blockchain node ID and a blockchain node key pair are distributed by the authentication center, and meanwhile, each blockchain node maintains public key information of all the blockchain nodes and the under-jurisdiction service nodes.
The service node also needs to register and authenticate in the CA authentication center, and the authentication center distributes unique service node ID, block chain node ID and service node key pair. A typical service node corresponds to a blockchain node, but considering that a service system may be composed of a plurality of micro services under a micro service architecture, the present invention supports a plurality of service nodes under the blockchain node. After the service node is registered and authenticated, the obtained service node ID, the blockchain node ID and the service node key pair are configured in the self service according to the agreed rule.
Specifically, in the step S2, registration authentication is performed in the CA authentication center, the authentication center distributes a unique service node ID, a blockchain node key pair, and a service node key pair, and entering the corresponding service node after the authentication is passed includes:
registering and authenticating each newly added blockchain node, distributing unique blockchain node ID and blockchain node key pairs by an authentication center, and maintaining public key information of all blockchain nodes and under-jurisdiction service nodes by each blockchain node;
registering and authenticating the service node in a CA authentication center, and distributing unique service node ID, block chain node ID and service node key pair by the authentication center;
after the service node registers and authenticates, the obtained service node ID, block chain node ID and service node key pair are configured in the self service according to the agreed rule.
As shown in fig. 3, in the step S3, when the service object is changed or transformed, the service node performs information construction and generates tracing information and a signature, and determines whether the constructed information is key information, where the constructed information includes key information and non-key information, and the key information includes an object ID, a trigger action, a summary, a transformed object ID, and a non-key information Hash value; the non-critical information includes operators, object descriptions, attachments, etc.
It will be appreciated by those skilled in the art that in order to fully record the life cycle information of the object and not to contain unnecessary information, the service node performs information construction when the object is changed and transformed, wherein the information constructed by the change includes operations such as adding, modifying, deleting, etc., the transformation such as transforming the raw material a into the semi-finished product B, etc., the key information M includes, but is not limited to, an object ID, a trigger action, a abstract, a transformed object ID, a non-key information Hash value, and the non-key information N may be an operator, an object description, an attachment, etc. The object ID is maintained by the mark analysis system, and each service node uniformly acquires the object ID from the mark analysis system.
The sign analysis system realizes flexible differentiation and information circulation management of the whole network resources by giving each entity or virtual object unique identity code and carrying out quick positioning and information inquiry. It is also possible for the service node to invoke the smart contract at some point in time. Intelligent contracts are codes running on blockchains, and we can write business logic in the contracts and define clear functional interfaces for callers, such as automatic generation of shipping notices when shipping in logistics, etc.
The intelligent contract provides a service automation processing capability, in the step S3, when a service object is changed or converted, a service node builds information and generates tracing information and a signature, and judges whether the built information is intelligent contract information or not, wherein the intelligent contract information comprises contract addresses and contract parameters. When a caller calls a contract, an executor on the blockchain can automatically execute a contract code on the blockchain and store an execution result and an execution record on the blockchain, and the blockchain ensures that the intelligent contract cannot be tampered, so that the contract content and the execution result cannot be tampered, and the record cannot be tampered when the caller calls each time. When constructing the contract call information, key information such as contract address and contract parameters should be included.
The signed information is a relatively general action that can be invoked by an encapsulated SDK to various service nodes. The SDK should include the ability to sign information using the service node private key, upload critical information to the blockchain node, upload non-critical information to off-chain storage. The separate storage of information here is due to the relatively expensive and low performance of storing information on the blockchain, which can affect the concurrency and throughput of the system if the data are all put together, so that only non-critical data Hash values are stored on the blockchain, while non-critical information is stored in an off-chain database, such as an elastomer search, which is very fast to query. In addition, the SDK automatically fills in some necessary key information, such as record ID, service node ID, blockchain node ID, and time stamp.
Specifically, when the service object is changed or transformed, in the step S3, the service node performs information construction, generates traceability information and a signature, sends the key information to the blockchain network to form a blockrecord, and sends the non-key information to the out-of-chain storage further includes:
after the key information generated by the service node is sent to a preset block chain node, the block chain node verifies whether the information is legal or not in a verification information signature mode, if so, whether the verification information repeatedly appears is further checked, if not, the verification information is added into an information pool queue for caching and broadcasting to other block chain nodes known by the node, if not, the key information is directly discarded, and if not, the other block chain nodes receive the broadcast information and then are added into the information pool queue after verification.
Specifically, the step S4 of obtaining the block record and constructing a new block through a consensus mechanism and forming a trusted block uplink by using an encryption algorithm includes:
collecting the block information and broadcasting the block information among the block chain nodes, acquiring a current highest block from a block chain network by a leader node, generating a new empty block based on the highest block and generating a new block, and adopting a consensus algorithm to agree on a new block record when 2 xf+1 non-malicious nodes work normally;
the leader node takes out the preset quantity of information from the information pool according to the first-in first-out principle, inserts the information into a new block, signs the information by adopting a private key, and then sends the information to other block chain nodes, the other block chain nodes sign the received new block to verify whether the current block record is true and effective, and through broadcasting a verification result, an executor is adopted to execute contract instruction operation on intelligent contracts in the block, and the execution result is stored;
and collecting full 2 xf+1 nodes for verifying that the new block is added into a local block chain through the node broadcasting information, updating the content related to the block height and the mapping table of the block hash, deleting the information record of the new block from the information pool, switching leader nodes according to preset time, and iteratively updating the new block and the block record, wherein f is the number of fault nodes, the total number of nodes is 3 xf+1, and compared with meaningless random hash value calculation, the optimized consensus mechanism is more energy-saving, environment-friendly and efficient.
Because of the multi-node and the consensus mechanism of the block chain, the data falling onto the block chain is hardly tampered, so that the safety and the reliability of the data are ensured, which is difficult to reach by the traditional traceability management method. In addition, blockchains also have smart contracts that can handle transactions well, which is also not possible with traditional traceback methods.
Those skilled in the art will appreciate that after the key information generated by the service node is sent to the specified blockchain node, the blockchain node verifies whether the information is legal by verifying the signature of the information. If the information is legal, whether the information is repeatedly appeared or not is further checked, and if the information is not appeared, the information is added into an information pool queue to be cached and broadcast to other block chain nodes known to the node. If the information is illegal or repeated, the information is directly discarded. After receiving the broadcast information, other block chain nodes also need to be verified and then added into own information pool queues. After a period of information collection and broadcasting, the block chain system enters a common identification block link. In a blockchain system, consensus is a process that each node agrees on the execution result of a transaction, and in general, the essence of this mechanism is how to agree on the update of most people. The PBFT (Practical Byzantine Fault Tolerance) consensus algorithm adopted by the method can reach consensus in the bad (such as fake message) scene of a few nodes, adopts cryptographic algorithms such as signature, signature verification, hash and the like to ensure tamper resistance, anti-counterfeiting and non-repudiation in the message transmission process, optimizes the foreigner work, reduces the complexity of the Bayesian fault-tolerant algorithm from exponential level to polynomial level, and can reach agreement as long as no less than (2 x f+1) non-malicious nodes work normally in a system consisting of (3 x f+1) nodes, such as: a 7-node system allows 2 nodes to have a bayer error. In each round of consensus process, only one leader is provided, and in order to prevent the leader from forging the block, after each round of PBFT consensus, the leader is switched. In a round of block identification process, the leader node acquires the current highest block from the block chain network, generates a new empty block based on the highest block, sets a new block father hash as the highest block hash, and sets a time stamp as the current time. After generating a new block, the leader node takes out a certain amount of information from the information pool according to the first-in first-out principle, inserts the information into the new block, signs the information with the private key of the leader node, and sends the information to other blockchain nodes, and the other blockchain nodes conduct signature verification on the received new block and broadcast verification results. The intelligent contract record in the block is executed once by the executor and the execution result is stored. And collecting the nodes meeting the requirement of 2 xf+1 verification that the new block is added into the local block chain through broadcasting information, updating the contents such as a mapping table of the block height and the block hash, and then deleting the information record of the new block from the information pool.
The presentation layer constructed in this embodiment may be constructed from a variety of front end frameworks including, but not limited to, exact, vue, etc. When the system is traced, any node on the object ID deblocking chain network searches the block record related to the ID, and simultaneously queries non-key information according to non-key data Hash value out-of-chain storage in the block record, and all the obtained information is constructed into a link tree cache according to a time stamp. When a user inquires, the system displays life cycle information of the business object in real time, including when the business object is born, how to change the business object, and how to convert the business object into other objects. On the other hand, the presentation layer also provides the functions of inquiring intelligent contract rules, executing contract results and executing records by the user. In addition, the display layer generates two-dimensional codes, bar codes, RFID codes and the like through the object ID, and supports mobile phones, PDAs or other code scanning devices to inquire or trace through the code scanning.
The invention realizes a comprehensive distributed mode from recording to transmission to storage, data transmission, data verification and data storage are all decentralised, and all service nodes participate in building a blockchain together. The information on the blockchain is publicly visible, and all participants can trace back the full life cycle information of the business object.
Example two
Based on the same conception, the business object life cycle management and tracing device based on the block chain provided by the invention comprises the following components:
the deployment module is used for deploying the blockchain nodes and building a alliance blockchain network, wherein the alliance blockchain network comprises a plurality of blockchain nodes, and the blockchain nodes govern a plurality of service nodes;
the authentication module is used for carrying out registration authentication in the CA authentication center, distributing unique service node ID, block chain link point key pair and service node key pair by the authentication center, and entering the corresponding service node after passing the authentication;
the information construction module is used for constructing information of the service node and generating tracing information and signature when the business object is changed or converted, uploading key information to the blockchain network to form a blockrecord, and uploading non-key information to the outside of the chain for storage;
the block construction module is used for acquiring the block record, constructing a new block through a consensus mechanism and forming a trusted block uplink by adopting an encryption algorithm;
the display module is used for constructing a display layer, searching a block record related to an object ID through any node on the object ID deblocking chain network during tracing, and simultaneously searching non-key information according to non-key data Hash value out-of-chain storage in the block record, and constructing all obtained information into a link tree cache according to a time stamp; and the life cycle information of the business objects is displayed in real time during inquiry, so that the maintenance and the traceability of the business objects from raw material purchasing, logistics, processing and production to inspection, storage and distribution, front-back connection of sales, ring-around connection, full link of business closed loop and full life cycle information are realized.
The specific principles and implementation methods of the deployment module, the authentication module, the information construction module, the block construction module, and the display module are as described in the first embodiment, and are not repeated here.
Example III
Based on the same conception, the invention also provides a service object life cycle management device based on the block chain, which comprises a memory and a processor, wherein the memory stores computer readable instructions, and the processor realizes the service object life cycle management method based on the block chain in an embodiment of the invention when executing the computer readable instructions.
The blockchain-based business object lifecycle management apparatus may vary considerably in configuration or performance and may include one or more processors (centra l process i ng un i ts, CPUs) and memory, one or more storage media (e.g., one or more mass storage devices) that store applications or data. The memory and storage medium may be transitory or persistent. The program stored on the storage medium may include one or more modules, each of which may include a series of instruction operations in a blockchain-based business object lifecycle management apparatus.
Further, the processor may be configured to communicate with a storage medium and execute a series of instruction operations in the storage medium on a device for blockchain-based business object lifecycle management.
The blockchain-based business object lifecycle management apparatus can also include one or more power supplies, one or more wired or wireless network interfaces, one or more input/output interfaces, and/or one or more operating systems, such as Wi-windows service, vi sta, and the like.
The present invention also provides a computer readable storage medium having a computer program stored thereon, which when executed by one or more processors, implements a blockchain-based business object lifecycle management method as in an embodiment of the present invention. The modules in the second embodiment may be stored in a computer-readable storage medium if implemented as software functional modules and sold or used as a separate product. Based on such understanding, the technical solution of the present invention may be embodied in software in essence or a part or all of the technical solution contributing to the prior art, and the computer readable storage medium may be a non-volatile computer readable storage medium, and the computer readable storage medium may also be a volatile computer readable storage medium. The computer readable storage medium has instructions stored therein that when executed on a computer cause the computer to perform the steps of blockchain-based business object lifecycle management in embodiment one.
It will be appreciated by those skilled in the art that aspects of the present invention, in essence, or portions thereof, or all or part of the aspects of the present invention may be embodied in software, which is stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of a method according to embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, or other various media capable of storing program codes. It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A business object life cycle management and tracing method based on block chain is characterized by comprising the following steps:
deploying block chain nodes, and building a alliance block chain network, wherein the alliance block chain network comprises a plurality of block chain nodes, and the block chain nodes govern a plurality of service nodes;
registering and authenticating in a CA authentication center, distributing unique service node ID, block chain link point key pair and service node key pair by the authentication center, and entering a corresponding service node after passing authentication;
when the business object is changed or converted, the service node carries out information construction, generates traceability information and signature, sends key information to a block chain network to form a block record, and sends non-key information to the outside of the chain for storage;
acquiring the block record, constructing a new block through a consensus mechanism, and forming a trusted block uplink by adopting an encryption algorithm;
constructing a display layer, searching a block record associated with the ID through any node on an object ID deblocking chain network during tracing, and simultaneously searching non-key information according to non-key data Hash value out-of-chain storage in the block record, wherein all obtained information is constructed into a link tree cache according to a time stamp; and the life cycle information of the business object is displayed in real time during inquiry, so that the maintenance and the traceability of the business object from raw material purchasing, logistics, processing and production to inspection, storage and distribution, front-back connection of sales, ring-around connection, full link of business closed loop and full life cycle information are realized.
2. The business object life cycle management and tracing method based on block chain according to claim 1, wherein when the business object is self-changed or converted, the service node performs information construction and generates tracing information and signature, and judges whether the constructed information is key information or not, wherein the constructed information comprises key information and non-key information, and the key information comprises an object ID, a trigger action, a summary, a converted object ID and a non-key information Hash value; the non-critical information includes operators, object descriptions, and attachments.
3. The blockchain-based business object life cycle management and tracing method according to claim 2, wherein when the business object is self-changed or converted, the service node performs information construction and generates tracing information and signatures, the object ID is maintained by a sign analysis system, each service node uniformly acquires the object ID from the sign analysis system, and the sign analysis system performs quick positioning and information query by giving each entity or virtual object unique identity code.
4. The method for managing and tracing the lifecycle of a business object based on a blockchain according to claim 1, wherein when the business object is self-changed or converted, the service node performs information construction and generates tracing information and a signature, and judges whether the construction information is intelligent contract information, the intelligent contract information comprises contract addresses and contract parameters, and when the intelligent contract is called, an executor on the blockchain automatically executes a contract operation preset on the blockchain and stores an execution result and an execution record on the blockchain.
5. The blockchain-based business object lifecycle management and tracing method as in claim 1, wherein the performing registration authentication at the CA authentication center, the authentication center distributing unique service node IDs, blockchain node key pairs, and service node key pairs, and entering the corresponding service node after authentication comprises:
registering and authenticating each newly added blockchain node, distributing unique blockchain node ID and blockchain node key pairs by an authentication center, and maintaining public key information of all blockchain nodes and under-jurisdiction service nodes by each blockchain node;
registering and authenticating the service node in a CA authentication center, and distributing unique service node ID, block chain node ID and service node key pair by the authentication center;
after the service node registers and authenticates, the obtained service node ID, block chain node ID and service node key pair are configured in the self service according to the agreed rule.
6. The method for managing and tracing the lifecycle of a business object based on a blockchain according to claim 1, wherein when the business object is self-changed or transformed, the service node performs information construction and generates tracing information and signature, and the step of uploading key information to a blockchain network to form a blockrecord and uploading non-key information to an out-of-chain storage further comprises:
after the key information generated by the service node is sent to a preset blockchain node, the blockchain node verifies whether the information is legal or not in a mode of verifying the information signature, if so, the blockchain node further checks whether the information repeatedly appears, if not, the information is added into an information pool queue for caching and broadcasting to other blockchain nodes known by the node, if not, the information is not legal or repeated, the information is directly discarded, wherein after receiving the broadcast information, the other blockchain nodes are added into the information pool queue after verification.
7. The blockchain-based business object lifecycle management and traceback method of claim 1, wherein the obtaining the blockrecord and constructing a new blockthrough a consensus mechanism and forming a trusted blockup chain using an encryption algorithm comprises:
collecting the block information and broadcasting the block information among the block chain nodes, acquiring a current highest block from a block chain network by a leader node, generating a new empty block based on the highest block and generating a new block, and adopting a consensus algorithm to agree on a new block record when 2 xf+1 non-malicious nodes work normally;
the leader node takes out the preset quantity of information from the information pool according to the first-in first-out principle, inserts the information into a new block, signs the information by adopting a private key, and then sends the information to other block chain nodes, the other block chain nodes sign the received new block to verify whether the current block record is real and effective, and through broadcasting a verification result, an executor is adopted to execute contract instruction operation on intelligent contracts in the block and store the execution result;
and collecting full 2 xf+1 nodes for verifying that the new block is added into a local block chain through the node broadcasting information, updating the content related to the mapping table of the block height and the block hash, deleting the information record of the new block from the information pool, switching leader nodes according to preset time, and iteratively updating the new block and the block record, wherein f is the number of fault nodes, and the total number of nodes is 3 xf+1.
8. A business object life cycle management and tracing device based on a blockchain, comprising:
the deployment module is used for deploying the blockchain nodes and building a alliance blockchain network, wherein the alliance blockchain network comprises a plurality of blockchain nodes, and the blockchain nodes govern a plurality of service nodes;
the authentication module is used for carrying out registration authentication in the CA authentication center, distributing unique service node ID, block chain link point key pair and service node key pair by the authentication center, and entering the corresponding service node after passing the authentication;
the information construction module is used for carrying out information construction and generating traceability information and signature by the service node when the business object is changed or converted, uploading key information to the blockchain network to form a blockrecord, and uploading non-key information to the outside of the chain for storage;
the block construction module is used for acquiring the block record, constructing a new block through a consensus mechanism and forming a trusted block uplink by adopting an encryption algorithm;
the display module is used for constructing a display layer, searching a block record associated with the front and the rear of the object ID through any node on the object ID deblocking chain network during tracing, and simultaneously searching non-key information according to non-key data Hash value out-of-chain storage in the block record, and constructing all obtained information into a link tree cache according to a timestamp; and the life cycle information of the business object is displayed in real time during inquiry, so that the maintenance and the traceability of the business object from raw material purchasing, logistics, processing and production to inspection, storage and distribution, front-back connection of sales, ring-around connection, full link of business closed loop and full life cycle information are realized.
9. A blockchain-based service object lifecycle management and tracing apparatus, comprising a memory and a processor, wherein the memory has computer readable instructions stored therein, and the processor, when executing the computer readable instructions, implements the blockchain-based service object lifecycle management and tracing method as claimed in any one of claims 1 to 7.
10. A computer readable medium storing a computer program which, when executed by one or more processors, implements a blockchain-based business object lifecycle management and tracing method as claimed in any one of claims 1 to 7.
CN202211395388.0A 2022-11-09 2022-11-09 Business object life cycle management and tracing method and device based on block chain Pending CN116258309A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211395388.0A CN116258309A (en) 2022-11-09 2022-11-09 Business object life cycle management and tracing method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211395388.0A CN116258309A (en) 2022-11-09 2022-11-09 Business object life cycle management and tracing method and device based on block chain

Publications (1)

Publication Number Publication Date
CN116258309A true CN116258309A (en) 2023-06-13

Family

ID=86685142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211395388.0A Pending CN116258309A (en) 2022-11-09 2022-11-09 Business object life cycle management and tracing method and device based on block chain

Country Status (1)

Country Link
CN (1) CN116258309A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117035740A (en) * 2023-08-21 2023-11-10 广西科学院 Bridge structure detection monitoring and maintenance data traceability system based on block chain
CN117172802A (en) * 2023-09-05 2023-12-05 湖南丰乐新材料有限公司 Product tracing system and method based on information carried by food package

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117035740A (en) * 2023-08-21 2023-11-10 广西科学院 Bridge structure detection monitoring and maintenance data traceability system based on block chain
CN117035740B (en) * 2023-08-21 2024-04-19 广西科学院 Construction method of bridge structure detection monitoring and maintenance data traceability system
CN117172802A (en) * 2023-09-05 2023-12-05 湖南丰乐新材料有限公司 Product tracing system and method based on information carried by food package

Similar Documents

Publication Publication Date Title
CN111428881B (en) Recognition model training method, device, equipment and readable storage medium
Huang et al. Drugledger: A practical blockchain system for drug traceability and regulation
US20190303623A1 (en) Promotion smart contracts for software development processes
CN110084070B (en) Block chain-based identity construction and source tracing method for manufacturing cross-domain heterogeneous data
CN111177275A (en) Block chain-based management method, terminal, device and storage medium
CN116258309A (en) Business object life cycle management and tracing method and device based on block chain
Xia et al. An empirical study on software bill of materials: Where we stand and the road ahead
CN105556552A (en) Fraud detection and analysis
CN111464499A (en) Electronic warehouse receipt tracing method and device, computer equipment and storage medium
Li et al. A novel system for medical equipment supply chain traceability based on alliance chain and attribute and role access control
CN105844422A (en) Business flow execution method and device
CN107153646B (en) Data processing method and equipment
CN110601896A (en) Data processing method and equipment based on block chain nodes
Demi Blockchain-oriented requirements engineering: A framework
Wei Blockchain-based data traceability platform architecture for supply chain management
CN114971827A (en) Account checking method and device based on block chain, electronic equipment and storage medium
CN111461881A (en) Data management method and device, computer equipment and storage medium
CN111385751B (en) Information sending method, device, terminal and readable storage medium
Garcia Bringas et al. BlockChain platforms in financial services: current perspective
CN114386986A (en) Product full life cycle data tracing platform
CN113205193B (en) Block chain-based waste treatment method, system, equipment and storage medium
CN110443044A (en) Block chain client bug excavation method, device, equipment and storage medium
Goyal et al. Sustainable E‐Infrastructure for Blockchain‐Based Voting System
Saadi et al. Composing trust models towards interoperable trust management
Pandey et al. Leveraging Blockchain Technology in Industry 4.0 and Industrial Internet of Things (IIoT) Scenarios

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