CN114925133A - Cooperative processing method, device and equipment of logistics information and storage medium - Google Patents

Cooperative processing method, device and equipment of logistics information and storage medium Download PDF

Info

Publication number
CN114925133A
CN114925133A CN202210404185.7A CN202210404185A CN114925133A CN 114925133 A CN114925133 A CN 114925133A CN 202210404185 A CN202210404185 A CN 202210404185A CN 114925133 A CN114925133 A CN 114925133A
Authority
CN
China
Prior art keywords
information
logistics information
block chain
data storage
chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210404185.7A
Other languages
Chinese (zh)
Inventor
刘客
黄通浪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongpu Software Co Ltd
Original Assignee
Dongpu Software 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 Dongpu Software Co Ltd filed Critical Dongpu Software Co Ltd
Priority to CN202210404185.7A priority Critical patent/CN114925133A/en
Publication of CN114925133A publication Critical patent/CN114925133A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2255Hash tables
    • 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/23Updating
    • G06F16/2379Updates performed during online database operations; commit processing
    • 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/25Integrating or interfacing systems involving database management systems
    • 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
    • G06Q10/083Shipping

Abstract

The invention relates to the technical field of logistics, and provides a method, a device, equipment and a storage medium for cooperative processing of logistics information, which are used for solving the problem of logistics information transmission loss in different degrees. The cooperative processing method of the logistics information comprises the following steps: constructing and deploying a target data storage architecture, wherein the target data storage architecture is a chain network type and mixed chain distributed data storage architecture and comprises a primary block chain and a secondary block chain; sending an accounting request to the secondary block chain, receiving the accounting request through the secondary block chain, recording logistics information to be recorded in the accounting request, and triggering preset intelligent contract conditions; calling a target interface after the intelligent contract condition is triggered, and pushing the recorded logistics information to be input to the primary block chain; and building blocks and binding the relation based on the pushed result, and synchronizing the messages of the primary block chain.

Description

Cooperative processing method, device and equipment of logistics information and storage medium
Technical Field
The present invention relates to the field of logistics technologies, and in particular, to a method, an apparatus, a device, and a storage medium for cooperative processing of logistics information.
Background
With the increasing perfection of processes and services, information of each logistics node is increased, and information management of each logistics node becomes a concern, wherein data of each logistics node is also managed by a supply chain method. At present, in an information management process of a supply chain, a certain supply chain node is taken as a center, a small-range information cluster is created, a database is established in a centralized management mode, and related supply chain information of a certain node or a certain link is comprehensively managed. When the information of the whole supply chain needs to be known, data communication is carried out in an offline communication mode or a single system interface docking mode among different roles.
Although the existing supply chain method can solve the problems of data management, maintenance, service and the like, and is easy to focus on a management subject from the management angle, the data are all grasped in each link and each supply chain node, and the supply chains are different, so that the problem of logistics information transmission loss in different degrees is caused.
Disclosure of Invention
The invention provides a cooperative processing method, a device, equipment and a storage medium of logistics information, which are used for solving the problem of logistics information transmission loss in different degrees.
The first aspect of the present invention provides a method for collaborative processing of logistics information, including:
constructing and deploying a target data storage architecture, wherein the target data storage architecture is a chain network type and mixed chain distributed data storage architecture and comprises a primary block chain and a secondary block chain;
sending an accounting request to the secondary block chain, receiving the accounting request through the secondary block chain, recording logistics information to be recorded in the accounting request, and triggering preset intelligent contract conditions;
calling a target interface after the intelligent contract condition is triggered, and pushing the recorded logistics information to be input to the primary block chain;
and establishing blocks and binding the relation based on the pushed result, and synchronizing the messages of the primary block chain.
Optionally, in a first implementation manner of the first aspect of the present invention, the constructing and deploying a target data storage architecture, where the target data storage architecture is a chain-network type and mixed-chain distributed data storage architecture, and the target data storage architecture includes a primary block chain and a secondary block chain, and includes:
acquiring service characteristics of a logistics supply chain, at least one target storage node of each link, service scene information and participant nodes corresponding to each service scene;
establishing a first-level block chain and a second-level block chain of information intercommunication based on the service characteristics, at least one target storage node of each link, the service scene information and the participant node corresponding to each service scene;
establishing a common identification mechanism for the first-stage block chain and the second-stage block chain which are communicated with each other to obtain a target data storage architecture, wherein the target data storage architecture is a chain network type and mixed chain distributed data storage architecture;
and performing chain deployment on the target data storage architecture through a preset intelligent contract.
Optionally, in a second implementation manner of the first aspect of the present invention, the creating a first-level block chain and a second-level block chain of information intercommunication based on the service feature, the at least one target storage node of each link, the service scenario information, and a participant node corresponding to each service scenario includes:
creating a primary block chain of supply chain information based on a shared trust root of a full link through the service characteristics and at least one target storage node of each link;
creating a secondary block chain of all supply chain information corresponding to each service scene based on the service scene information and the participant nodes corresponding to each service scene;
and performing information intercommunication processing on the primary block chain and the secondary block chain to obtain the primary block chain and the secondary block chain which are in information intercommunication.
Optionally, in a third implementation manner of the first aspect of the present invention, the sending an accounting request to the secondary block chain, receiving the accounting request through the secondary block chain, recording logistics information to be entered in the accounting request, and performing preset intelligent contract condition triggering includes:
acquiring logistics information to be input, generating an accounting request based on the logistics information to be input, and sending the accounting request to the secondary block chain through a preset interface;
receiving the accounting request and authenticating the accounting request through an accounting authentication node in the secondary block chain;
recording logistics information to be recorded in the accounting request after passing the authentication based on a preset ACID principle, encrypting the recorded logistics information to be recorded and updating node synchronization information;
and carrying out event triggering judgment through a preset intelligent contract, and executing corresponding contract items based on a judgment result.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the recording, based on a preset ACID principle, logistics information to be entered in the accounting request after passing the authentication, encrypting the recorded logistics information to be entered, and updating the node synchronization information includes:
based on a preset ACID principle, extracting logistics information to be entered in an accounting request after passing authentication, and matching a node storage strategy corresponding to the logistics information to be entered and a target recording node corresponding to the node storage strategy, wherein the node storage strategy is used for storing the logistics information to be entered into a corresponding node according to a preset storage mode;
carrying out fragmentation processing and index creation on the logistics information to be input to obtain preprocessed logistics information to be input;
according to a data storage structure in the node storage strategy, storing the preprocessed logistics information to be input to the target recording node to obtain the stored logistics information to be input;
encrypting the stored logistics information to be input through a preset collaborative encryption algorithm to obtain encrypted logistics information to be input;
and acquiring other nodes except the target recording node, and performing the whole network broadcast of the secondary block chain based on the encrypted logistics information to be recorded so as to update the synchronous information of other nodes.
Optionally, in a fifth implementation manner of the first aspect of the present invention, after the building and the relation binding of the block based on the pushed result and the message synchronization of the primary block chain, the method further includes:
initiating a query instruction based on the logistics information to be input through a decentralized application program of an application layer in the target data storage architecture, and performing hash operation and authentication on the query instruction to obtain a hash value to be processed;
decrypting the hash value to be processed through a preset asymmetric encryption algorithm to obtain a block content hash value;
and analyzing the block content hash value through a preset secure hash algorithm to obtain target query information.
Optionally, in a sixth implementation manner of the first aspect of the present invention, the initiating, by a decentralized application program of an application layer in the target data storage architecture, an inquiry instruction based on the to-be-entered logistics information, performing hash operation on the inquiry instruction and performing authentication to obtain a to-be-processed hash value includes:
initiating a query instruction based on the logistics information to be input through a decentralized application program of an application layer in the target data storage architecture, and analyzing the query instruction to obtain information to be queried, wherein the information to be queried is used for indicating query condition information of the logistics information to be input;
carrying out hash operation on the information to be queried to obtain an initial hash value;
and acquiring an instruction information signature of the information to be queried, and performing identity authentication on the initial hash value through the instruction information signature to obtain a hash value to be processed.
A second aspect of the present invention provides a cooperative processing apparatus for logistics information, including:
the system comprises a construction deployment module, a data storage module and a data management module, wherein the construction deployment module is used for constructing and deploying a target data storage architecture, the target data storage architecture is a chain network type and mixed chain distributed data storage architecture, and the target data storage architecture comprises a primary block chain and a secondary block chain;
the recording module is used for sending an accounting request to the secondary block chain, receiving the accounting request through the secondary block chain, recording the logistics information to be recorded in the accounting request, and triggering a preset intelligent contract condition;
the pushing module is used for calling a target interface after the intelligent contract condition is triggered and pushing the recorded logistics information to be recorded to the primary block chain;
and the synchronization module is used for establishing blocks and binding the relation based on the pushed result and synchronizing the messages of the primary block chain.
Optionally, in a first implementation manner of the second aspect of the present invention, the constructing and deploying module includes:
the system comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring service characteristics of a logistics supply chain, at least one target storage node of each link, service scene information and participant nodes corresponding to each service scene;
a creating unit, configured to create a first-level block chain and a second-level block chain of information interworking based on the service characteristics, the at least one target storage node of each link, the service scene information, and a participant node corresponding to each service scene;
the establishing unit is used for establishing a consensus mechanism for the first-level block chain and the second-level block chain which are communicated with each other to obtain a target data storage architecture, and the target data storage architecture is a chain network type and mixed chain distributed data storage architecture;
and the deployment unit is used for performing chain deployment on the target data storage architecture through a preset intelligent contract.
Optionally, in a second implementation manner of the second aspect of the present invention, the creating unit is specifically configured to:
creating a primary block chain of supply chain information based on a shared trust root of a full link through the service characteristics and at least one target storage node of each link;
creating a secondary block chain of all supply chain information corresponding to each service scene based on the service scene information and the participant nodes corresponding to each service scene;
and performing information intercommunication processing on the primary block chain and the secondary block chain to obtain the information-intercommunicated primary block chain and the information-intercommunicated secondary block chain.
Optionally, in a third implementation manner of the second aspect of the present invention, the recording module includes:
the sending unit is used for acquiring logistics information to be input, generating an accounting request based on the logistics information to be input, and sending the accounting request to the secondary block chain through a preset interface;
the authentication unit is used for receiving the accounting request and authenticating through an accounting authentication node in the secondary block chain;
the encryption updating unit is used for recording the logistics information to be recorded in the accounting request after the authentication is passed based on a preset ACID principle, encrypting the recorded logistics information to be recorded and updating the node synchronization information;
and the triggering unit is used for carrying out event triggering judgment through a preset intelligent contract and executing corresponding contract items based on a judgment result.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the encryption updating unit is specifically configured to:
based on a preset ACID principle, extracting logistics information to be entered in an accounting request after passing authentication, and matching a node storage strategy corresponding to the logistics information to be entered and a target recording node corresponding to the node storage strategy, wherein the node storage strategy is used for storing the logistics information to be entered into a corresponding node according to a preset storage mode;
carrying out fragmentation processing and index creation on the logistics information to be input to obtain preprocessed logistics information to be input;
according to a data storage structure in the node storage strategy, storing the preprocessed logistics information to be input to the target recording node to obtain the stored logistics information to be input;
encrypting the stored logistics information to be input through a preset collaborative encryption algorithm to obtain encrypted logistics information to be input;
and acquiring other nodes except the target recording node, and performing the whole network broadcast of the secondary block chain based on the encrypted logistics information to be input so as to update the synchronous information of other nodes.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the device for cooperative processing of logistics information further includes:
the operation module is used for initiating a query instruction based on the logistics information to be input through a decentralized application program of an application layer in the target data storage architecture, and performing hash operation and authentication on the query instruction to obtain a hash value to be processed;
the processing module is used for decrypting the hash value to be processed through a preset asymmetric encryption algorithm to obtain a block content hash value;
and the analysis module is used for analyzing the block content hash value through a preset secure hash algorithm to obtain target query information.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the operation module is specifically configured to:
initiating a query instruction based on the logistics information to be input through a decentralized application program of an application layer in the target data storage architecture, and analyzing the query instruction to obtain information to be queried, wherein the information to be queried is used for indicating query condition information of the logistics information to be input;
carrying out Hash operation on the information to be inquired to obtain an initial Hash value;
and acquiring an instruction information signature of the information to be inquired, and performing identity authentication on the initial hash value through the instruction information signature to obtain a hash value to be processed.
A third aspect of the present invention provides a cooperative processing apparatus for logistics information, including: a memory and at least one processor, the memory having a computer program stored therein; the at least one processor calls the computer program in the memory to enable the cooperative processing device of the logistics information to execute the above cooperative processing method of the logistics information.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein a computer program that, when run on a computer, causes the computer to execute the above-described cooperative processing method of logistics information.
In the technical scheme provided by the invention, a target data storage architecture is constructed and deployed, the target data storage architecture is a chain network type and mixed chain distributed data storage architecture, and the target data storage architecture comprises a primary block chain and a secondary block chain; sending an accounting request to the secondary block chain, receiving the accounting request through the secondary block chain, recording logistics information to be recorded in the accounting request, and triggering a preset intelligent contract condition; calling a target interface after the intelligent contract condition is triggered, and pushing the recorded logistics information to be input to the primary block chain; and establishing blocks and binding the relation based on the pushed result, and synchronizing the messages of the primary block chain. In the embodiment of the invention, the logistics information to be input is recorded through the primary block chain and the secondary block chain in the chain network type and mixed chain distributed target data storage architecture, so that the data information integration and the cooperative management of the whole link of the logistics information are realized, and the logistics information transmission loss of different degrees is avoided.
Drawings
Fig. 1 is a schematic diagram of an embodiment of a cooperative processing method of logistics information in an embodiment of the invention;
fig. 2 is a schematic diagram of another embodiment of the cooperative processing method for logistics information in an embodiment of the invention;
FIG. 3 is a schematic diagram of an embodiment of a cooperative processing apparatus for logistics information according to an embodiment of the present invention;
fig. 4 is a schematic diagram of another embodiment of the cooperative processing device for logistics information in the embodiment of the invention;
fig. 5 is a schematic diagram of an embodiment of a cooperative processing device for logistics information in an embodiment of the invention.
Detailed Description
The embodiment of the invention provides a cooperative processing method, a cooperative processing device, a cooperative processing equipment and a storage medium for logistics information, and solves the problem of logistics information transmission loss in different degrees.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
For convenience of understanding, a specific flow of the embodiment of the present invention is described below, and with reference to fig. 1, an embodiment of the method for cooperative processing of logistics information in the embodiment of the present invention includes:
101. and constructing and deploying a target data storage architecture, wherein the target data storage architecture is a chain network type and mixed chain distributed data storage architecture, and the target data storage architecture comprises a primary block chain and a secondary block chain.
It is to be understood that the execution subject of the present invention may be a cooperative processing device of logistics information, and may also be a terminal or a server, which is not limited herein. The embodiment of the present invention is described by taking a server as an execution subject.
The target data storage architecture is a built mode based on a private chain and an interconnection chain, a trust network, namely a block chain, built by a mixed consensus mechanism, an authority certificate, an authorized Byzantine fault-tolerant algorithm, a secure hash algorithm, an intelligent contract and an ACID principle is integrated, and is used for realizing data information integration and collaborative management of a full link of logistics information, ensuring the privacy and the safety of the logistics information and avoiding the transfer loss of the logistics information in different degrees.
The link-type can be understood as a form of a block link network. Mixed-chain distribution can be understood as mixing various forms of blockchains (e.g., private chains, public chains, interconnected chains, etc.), and the database is in the form of a distributed database. The target data storage architecture comprises a primary block chain and a secondary block chain, and information intercommunication is carried out between the primary block chain and the secondary block chain.
The server builds a target data storage architecture through a preset building strategy, wherein the building strategy comprises building schemes corresponding to a primary block chain and a secondary block chain respectively. The method comprises the steps of respectively carrying out corresponding intelligent contract deployment connection on instruction requests and execution on a secondary block chain, data intercommunication between the secondary block chain and a primary block chain, instruction requests, feedback and other links on the primary block chain, completing on-chain regular deployment in the supply chain information cooperative management process, achieving on-chain deployment of a target data storage architecture, improving execution efficiency, reducing artificial interference and guaranteeing accurate management of logistics information.
102. And sending an accounting request to the secondary block chain, receiving the accounting request through the secondary block chain, recording the logistics information to be recorded in the accounting request, and triggering preset intelligent contract conditions.
The logistics information to be entered may be, by way of example and not limitation, warehouse where the activity occurs, occurrence time, activity type, owner of goods, goods code, operation quantity, task order number, source document type, logistics order information, entry and exit records of all goods within preset time of the warehouse, quantity of goods, goods state information, record information of all activity types of specified goods (preset batch) within preset time of the warehouse, stock movement record and warehousing order information of preset task of the warehouse, and the like.
And the server sends an accounting request to the secondary block chain, receives the accounting request through the secondary block chain, sequentially authenticates, records, encrypts and updates node synchronization information of the to-be-recorded logistics information in the accounting request based on a preset ACID principle, and executes corresponding contract items based on a judgment result.
In a feasible implementation manner, the server sends an accounting request to the secondary block chain, receives the accounting request through the secondary block chain, records the to-be-recorded logistics information in the accounting request, and then sends the to-be-recorded logistics information to a disaster recovery center corresponding to the target data storage architecture, wherein the disaster recovery center can be local disaster recovery, remote disaster recovery, data disaster recovery or application disaster recovery.
In a feasible implementation manner, the server sends an accounting request to the secondary block chain, receives the accounting request through the secondary block chain, sequentially authenticates and records the to-be-recorded logistics information in the accounting request based on a preset ACID principle when recording the to-be-recorded logistics information in the accounting request, and performs mirror image storage on the to-be-recorded logistics information in the accounting request through a preset mirror image channel. The method and the device can improve convenience, safety, stability and flexibility of logistics information to be input, improve operation and maintenance efficiency, and ensure consistency of application environments of the target data storage architecture.
103. And calling a target interface after the intelligent contract condition is triggered, and pushing the recorded logistics information to be recorded to a primary block chain.
After the intelligent contract condition is triggered, the server calls a target interface through a target data storage framework, and pushes recorded logistics information to be recorded to a primary block chain based on a preset inter-block chain communication protocol. Specifically, after the intelligent contract condition is triggered, the server calls a target interface through a target data storage architecture, compresses the recorded logistics information to be recorded into at least one data block, establishes a mapping relation between the at least one data block and a primary block chain to obtain the at least one data block after the mapping relation is established, and sends the at least one data block after the mapping relation is established to the primary block chain based on a preset inter-block-chain communication protocol.
104. And establishing blocks and binding the relation based on the pushed result, and synchronizing the messages of the primary block chain.
The server detects the pushed logistics information to be input through the target data storage architecture so as to detect whether information loss and potential safety hazards exist in the sending process, if the information loss and the potential safety hazards exist in the pushed logistics information, the pushed logistics information is judged to be pushed to be completed, if the information loss and the potential safety hazards do not exist in the pushed logistics information, the pushed logistics information is judged to be unfinished, a pushing result is returned, and re-pushed logistics information is carried out. If the pushing result indicates that pushing is finished, building blocks in the primary block chain and binding the relationship between the blocks based on the pushed logistics information to be recorded (namely at least one data block after the mapping relationship is built), and building blocks between the primary block chain and the secondary block chain and binding the relationship between the blocks. After the building and the relation binding of the blocks are carried out based on the pushing result, the whole network broadcasting in the primary block chain is carried out, the message synchronization of the primary block chain is realized, and the recording process of the whole information (logistics information to be recorded) in the block chain (target data storage framework) is completed.
In the embodiment of the invention, the logistics information to be input is recorded through the primary block chain and the secondary block chain in the chain network type and mixed chain distributed target data storage architecture, so that the data information integration and the cooperative management of the whole link of the logistics information are realized, and the logistics information transmission loss of different degrees is avoided.
Referring to fig. 2, another embodiment of the cooperative processing method for logistics information according to the embodiment of the present invention includes:
201. and acquiring the service characteristics of the logistics supply chain, at least one target storage node of each link, service scene information and participant nodes corresponding to each service scene.
The method comprises the steps of pre-creating or storing business characteristics, namely business characteristics, corresponding to a logistics supply chain; the server can obtain the corresponding business characteristics of the logistics supply chain through retrieval and database extraction. The server selects a main node which can be used as a billing node, namely a target storage node from storage nodes of all links in a logistics supply chain based on a preset authorized Byzantine fault-tolerant algorithm, wherein the number of the target storage nodes comprises one or more than one. The target storage node can be directly identified through a Byzantine fault-tolerant algorithm (i.e. a minority majority-compliant voting mechanism) to decide the dynamic participation node, i.e. the dynamic participation node which has the common identification with the target storage node. The service scenario information includes information of at least one service scenario. The server can extract or retrieve from the database to obtain the service scene information and the participant nodes corresponding to each service scene.
202. And establishing a first-level block chain and a second-level block chain of information intercommunication based on the service characteristics, at least one target storage node of each link, service scene information and participant nodes corresponding to each service scene.
Specifically, the server establishes a primary block chain of supply chain information based on a shared trust root of a full link through service characteristics and at least one target storage node of each link; establishing a secondary block chain of all supply chain information corresponding to each service scene based on the service scene information and the participant nodes corresponding to each service scene; and performing information intercommunication processing on the first-stage block chain and the second-stage block chain to obtain the first-stage block chain and the second-stage block chain which are subjected to information intercommunication.
The server establishes a primary block chain of supply chain information of a shared Trust Root which runs through a full link according to service characteristics, wherein the shared Trust Root of the full link can be a Decentralized Root-of-Trust (DROT), the security attribute and the Trust of a participant can be greatly improved through the Decentralized Root-of-Trust, and then low-cost quick block chain (primary block chain) infrastructure construction is realized, and finally a comprehensive block chain platform (target data storage architecture) which is capable of coordinating the region, managing and controlling, high in compatibility, extensible, traceable, high in concurrency and low in cost is constructed. And determining at least one target storage node of each link as an accounting and authentication node of the primary block chain.
The server takes the service scene information (different service scenes) as a center, establishes a secondary block chain for recording all supply chain information under different service scenes, and takes different participants under the service scenes as accounting and authentication nodes of the secondary block chain.
The server carries out information intercommunication processing on the first-level block chain and the second-level block chain through a preset construction mode of an interconnection chain cosmos network, and therefore the first-level block chain and the second-level block chain which are in information intercommunication are obtained.
203. And establishing a consensus mechanism for the first-stage block chain and the second-stage block chain which are communicated with each other to obtain a target data storage architecture, wherein the target data storage architecture is a chain network type and mixed chain distributed data storage architecture.
The server performs hybrid consensus mechanism establishment on a primary block chain and a secondary block chain of information intercommunication based on a preset algorithm (mechanism or protocol) to obtain a target data storage architecture, where the algorithm (mechanism or protocol) is used to establish the hybrid consensus mechanism, and as an example and not by way of limitation, the algorithm (mechanism or protocol) in the implementation of the present invention is a Proof of Work (PoW) algorithm, a Proof of stock (PoS) algorithm, a Delegated Proof of rights of interest (DPoS), a Proof of Importance (POI) algorithm, a validation POOL algorithm, a Delegated Byzantine Fault-tolerant consensus (DBFT) algorithm, a Proof of Activity (PoA) algorithm, and the like. Through the collocation of various consensus mechanisms, the authority and responsibility management capacity on the first-level block chain and the second-level block chain of information intercommunication is improved, and a consensus ecology that can still mutually trust without the intervention of a third party endorsement is achieved.
In a feasible implementation manner, after a target data storage architecture is constructed, information interoperability detection, mixed consensus mechanism detection and structural integrity detection of a primary block chain and a secondary block chain are performed on the target data storage architecture, and subsequent operations are performed only after the detection is passed.
In a feasible implementation manner, the constructed target data storage architecture further establishes a corresponding disaster recovery center so as to backup the stored logistics information.
204. And performing chain deployment on the target data storage framework through a preset intelligent contract.
The server can compile a preset intelligent contract Ethernet workshop virtual machine into a computer-executable byte code by starting an Ethernet workshop node, a contract initiating user broadcasts a byte code file into a block chain network (target data storage framework) in a transaction initiating mode, after confirmation, an intelligent contract is stored into the target data storage framework, and an address where the intelligent contract is located and an interface required by the call contract are obtained, so that the chain deployment of the target data storage framework through the preset intelligent contract is realized.
The server deploys preset intelligent contracts in a targeted manner (correspondingly) through instruction request and execution on a secondary block chain, data intercommunication between the secondary block chain and a primary block chain, instruction request, feedback and other links on the primary block chain, so as to complete on-chain regular deployment in the cooperative management process of logistics information of a supply chain, improve execution efficiency, reduce artificial interference and ensure accurate management of the logistics information.
205. And sending an accounting request to the secondary block chain, receiving the accounting request through the secondary block chain, recording the logistics information to be recorded in the accounting request, and triggering preset intelligent contract conditions.
Specifically, the server acquires logistics information to be input, generates an accounting request based on the logistics information to be input, and sends the accounting request to the secondary block chain through a preset interface; receiving a billing request and authenticating the billing request through a billing authentication node in the secondary block chain; recording logistics information to be recorded in the accounting request after passing the authentication based on a preset ACID principle, encrypting the recorded logistics information to be recorded and updating node synchronization information; and carrying out event triggering judgment through a preset intelligent contract, and executing corresponding contract items based on a judgment result.
The server receives the logistics information sent by the logistics information system to obtain the logistics information to be recorded. And when the server obtains the logistics information to be entered, generating an accounting request based on the logistics information to be entered. An accounting request is sent to the secondary block chain through a preset interface, and after an accounting and authentication node of the secondary block chain receives the accounting request, identity authentication and authority certification are carried out on the accounting request so as to ensure the safety of information; if the authentication is not passed, feeding back a related result to the accounting request; if the authentication is passed, based on the ACID (Atomicity, Consistency, Isolation, and dual) principle, dividing the recording task of the logistics information to be entered into a plurality of smaller tasks (one small task), distributing the plurality of smaller tasks to different computing nodes to be executed in parallel, so as to record the logistics information to be entered in the accounting request after the authentication is passed, thereby effectively sharing a large amount of recording tasks and fully utilizing the CPU resources of the machine. And after encrypting the recorded logistics information to be recorded by the server through an encryption algorithm preset in the target data storage framework, updating the encrypted logistics information to be recorded by the server through the synchronous information of other nodes.
The server acquires a node processing event recorded by the logistics information to be input, judges whether the node processing event meets the triggering condition of a preset intelligent contract or not, if so, triggers the intelligent contract condition, calls a target interface, pushes the recorded logistics information to be input to a primary block chain, otherwise, does not trigger the intelligent contract condition, cannot execute the next operation (namely calling the target interface, and pushes the recorded logistics information to be input to the primary block chain), and feeds back the judgment result to realize event triggering judgment through the preset intelligent contract and execute the corresponding contract item based on the judgment result.
Through the operation step of recording the logistics information to be input of the secondary block chain, the integration and the cooperative management of the data information of the logistics information to be input are realized.
Specifically, the server records logistics information to be entered in the accounting request after passing the authentication based on a preset ACID principle, encrypts the logistics information to be entered, and updates node synchronization information, including: based on a preset ACID principle, extracting logistics information to be entered in the accounting request after passing the authentication, and matching a node storage strategy corresponding to the logistics information to be entered and a target recording node corresponding to the node storage strategy, wherein the node storage strategy is used for storing the logistics information to be entered into the corresponding node according to a preset storage mode; carrying out fragmentation processing and index creation on the logistics information to be input to obtain preprocessed logistics information to be input; according to a data storage structure in the node storage strategy, storing the preprocessed logistics information to be recorded to a target recording node to obtain the stored logistics information to be recorded; encrypting the stored logistics information to be input through a preset collaborative encryption algorithm to obtain the encrypted logistics information to be input; and acquiring other nodes except the target recording node, and performing full-network broadcasting of a secondary block chain based on the encrypted logistics information to be recorded so as to update the synchronous information of other nodes.
The information types of the logistics information to be entered are different, the corresponding node storage strategies are also different, the stored main nodes (namely target recording nodes) are also different, and the target recording nodes comprise father nodes and a plurality of child nodes. After the server obtains the logistics information to be recorded, the node storage strategy and the target recording node, based on the node storage strategy corresponding to the preset ACID principle, the recording task of the logistics information to be recorded is divided into a plurality of smaller tasks, and the smaller tasks are distributed to a father node and a plurality of child nodes of the target recording node to be executed in parallel, so that the storage capacity of each of the father node and the child nodes is obtained. Based on the storage amount of each father node and each child node, the logistics information to be input is subjected to fragmentation processing and index creation, so that the preprocessed logistics information to be input is obtained.
The server stores and records the preprocessed logistics information to be recorded into the parent node and each child node according to a data storage structure in a node storage strategy through a target data storage architecture, wherein the data storage structure in the node storage strategy can be a B-Tree, a B + Tree or an enumeration dictionary, and is not limited here. Encrypting the stored logistics information to be input through a preset collaborative encryption algorithm to obtain the encrypted logistics information to be input; and acquiring other nodes except the target recording node, and performing full-network broadcasting of the primary block chain based on the encrypted logistics information to be recorded so as to update the synchronization information of the other nodes, wherein the nodes in the node synchronization information updating are other nodes except the target recording node in the secondary block chain.
206. And calling a target interface after the intelligent contract condition is triggered, and pushing the recorded logistics information to be recorded to a primary block chain.
After the intelligent contract condition is triggered, the server calls a target interface through a target data storage framework, and pushes recorded logistics information to be recorded to a primary block chain based on a preset inter-block chain communication protocol. Specifically, after the intelligent contract condition is triggered, the server calls a target interface through a target data storage architecture, compresses the recorded logistics information to be recorded into at least one data block, establishes a mapping relation between the at least one data block and a primary block chain to obtain the at least one data block after the mapping relation is established, and sends the at least one data block after the mapping relation is established to the primary block chain based on a preset inter-block chain communication protocol.
207. And establishing blocks and binding the relation based on the pushed result, and synchronizing the messages of the primary block chain.
The server detects the pushed logistics information to be input through the target data storage architecture to detect whether information loss and potential safety hazards exist in the sending process, if the information loss and the potential safety hazards exist in the sending process, the pushed result is judged to be pushing completion, if the information loss and the potential safety hazards do not exist in the sending process, the pushed result is judged to be pushing incompletion, the pushing result is returned, and the pushing is carried out again. If the pushing result indicates that pushing is finished, building blocks in the primary block chain and binding the relationship between the blocks based on the pushed logistics information to be recorded (namely at least one data block after the mapping relationship is built), and building blocks between the primary block chain and the secondary block chain and binding the relationship between the blocks. After the building and the relation binding of the blocks are carried out based on the pushing result, the whole network broadcasting in the primary block chain is carried out, the message synchronization of the primary block chain is realized, and the recording process of the whole information (logistics information to be recorded) in the block chain (target data storage framework) is completed.
Specifically, after the server establishes the blocks and binds the relationship based on the pushed result and synchronizes the messages of the primary block chain, the method further includes: initiating a query instruction based on logistics information to be input through a decentralized application program of an application layer in a target data storage framework, and performing hash operation and authentication on the query instruction to obtain a hash value to be processed; decrypting the hash value to be processed through a preset asymmetric encryption algorithm to obtain a block content hash value; and analyzing the block content hash value through a preset secure hash algorithm to obtain target query information.
The server initiates a query instruction based on logistics information to be entered through a decentralized application program of an application layer in a target data storage architecture, performs hash operation and authentication on the query instruction to obtain a hash value to be processed, and specifically, the server initiates a query instruction based on logistics information to be entered through distributed application of the application layer in the target data storage architecture, performs hash operation and authentication on the query instruction to obtain an initial hash value, including: initiating a query instruction based on logistics information to be input through a decentralized application program of an application layer in a target data storage architecture, analyzing the query instruction to obtain information to be queried, wherein the information to be queried is used for indicating query condition information of the logistics information to be input; carrying out Hash operation on information to be inquired to obtain an initial Hash value; and acquiring an instruction information signature of the information to be queried, and performing identity authentication on the initial hash value through the instruction information signature to obtain a hash value to be processed.
When the logistics information to be entered in the target data storage architecture needs to be queried and output, a Decentralized Application program (DAPP) of an Application layer initiates a query instruction based on the logistics information to be entered, analyzes the query instruction to obtain the information to be queried, wherein the information to be queried is used for indicating query condition information of the logistics information to be entered, and as an example and not by limitation, when the query instruction corresponds to a stock log of the logistics information to be entered, the query condition information comprises occurrence time, an activity type, a goods owner, a goods code, a goods state, a lot code, a stock location, a container number, an operator, a log number, a task order number, a source document number and a source document type, wherein the log number, or the task order number or the source document number serves as a condition indispensable check item; and when the query instruction corresponds to the ex-warehouse order information of the logistics information to be input, the query condition information comprises the service type and the order type.
Carrying out hash operation on information to be queried through a preset hash algorithm to obtain an initial hash value; acquiring an instruction information signature of information to be inquired, performing identity authentication and authority certification on an initial hash value through the instruction information signature, and determining the initial hash value as a hash value to be processed if the identity authentication and the authority certification pass; and if the identity authentication and the authority certification do not pass, feeding back a related result, and performing hash operation on the information to be queried again. The hash operation is carried out on the information to be inquired through a decentralized application program of an application layer in the target data storage architecture, and the identity authentication is carried out on the initial hash value through the instruction information signature, so that the safety and the operation efficiency of the hash value are improved.
The server decrypts the hash value to be processed through an asymmetric encryption algorithm preset in the target data storage framework to obtain a block content hash value; and analyzing the block content hash value through a preset secure hash algorithm to obtain target query information. And feeding back to the user side through the DAPP (decentralized application program), finishing query and output of logistics information to be input, and outputting the logistics information to be a list. By way of example and not limitation, when the query instruction corresponds to an inventory log of the logistics information to be entered, the content of the output list of the logistics information to be entered includes occurrence time, activity type, owner of goods, commodity code, commodity state, batch code, from-bin position, from container number, to-bin position, to container, original inventory number, box gauge (i.e., box gauge (packing amount) of the current goods before the activity occurs), operation number, operator, log number, task order number, source order type, warehousing date, production date, and expiration date.
Through the Hash operation and authentication of the query instruction, the decryption processing of the asymmetric encryption algorithm and the block content Hash value analysis of the secure Hash algorithm, the query of data information integration and collaborative management of a full link is realized, the safety of the information to be queried is ensured, and the logistics information transmission loss of different degrees in the query process of the information to be queried is avoided.
In the embodiment of the invention, the logistics information to be input is recorded through the primary block chain and the secondary block chain in the chain network type and mixed chain distributed target data storage architecture, so that the data information integration and the cooperative management of the whole link of the logistics information are realized, and the logistics information transmission loss in different degrees is avoided.
With reference to fig. 3, the cooperative processing method for logistics information in the embodiment of the present invention is described above, and a cooperative processing device for logistics information in the embodiment of the present invention is described below, where an embodiment of the cooperative processing device for logistics information in the embodiment of the present invention includes:
the construction deployment module 301 is configured to construct and deploy a target data storage architecture, where the target data storage architecture is a chain-network type and mixed-chain distributed data storage architecture, and the target data storage architecture includes a primary block chain and a secondary block chain;
the recording module 302 is configured to send an accounting request to the secondary block chain, receive the accounting request through the secondary block chain, record logistics information to be recorded in the accounting request, and trigger a preset intelligent contract condition;
the pushing module 303 is configured to call a target interface after the intelligent contract condition is triggered, and push the recorded logistics information to be recorded to the primary block chain;
and a synchronization module 304, configured to establish a block and bind a relationship based on the pushed result, and perform message synchronization of the primary block chain.
The function implementation of each module in the cooperative processing device of the logistics information corresponds to each step in the cooperative processing method embodiment of the logistics information, and the function and implementation process thereof are not described in detail herein.
In the embodiment of the invention, the logistics information to be input is recorded through the primary block chain and the secondary block chain in the chain network type and mixed chain distributed target data storage architecture, so that the data information integration and the cooperative management of the whole link of the logistics information are realized, and the logistics information transmission loss of different degrees is avoided.
Referring to fig. 4, another embodiment of the cooperative processing apparatus for logistics information according to the embodiment of the present invention includes:
the construction deployment module 301 is configured to construct and deploy a target data storage architecture, where the target data storage architecture is a chain-network type and mixed-chain distributed data storage architecture, and the target data storage architecture includes a primary block chain and a secondary block chain;
wherein, constructing the deployment module 301 specifically includes:
an obtaining unit 3011, configured to obtain service characteristics of a logistics supply chain, at least one target storage node of each link, service scene information, and a participant node corresponding to each service scene;
a creating unit 3012, configured to create a first-level block chain and a second-level block chain of information interworking based on the service characteristics, the at least one target storage node of each link, the service scene information, and a participant node corresponding to each service scene;
the establishing unit 3013 is configured to perform consensus mechanism establishment on a primary block chain and a secondary block chain of information interworking to obtain a target data storage architecture, where the target data storage architecture is a chain-network type and mixed-chain distributed data storage architecture;
a deployment unit 3014, configured to perform on-chain deployment on the target data storage architecture according to a preset intelligent contract;
the recording module 302 is configured to send an accounting request to the secondary block chain, receive the accounting request through the secondary block chain, record logistics information to be recorded in the accounting request, and trigger a preset intelligent contract condition;
the pushing module 303 is configured to call a target interface after the intelligent contract condition is triggered, and push the recorded logistics information to be recorded to the primary block chain;
and a synchronization module 304, configured to establish a block and bind a relationship based on the pushed result, and perform message synchronization of the primary block chain.
Optionally, the creating unit 3012 may be further specifically configured to:
creating a primary block chain of supply chain information based on a shared trust root of a full link through service characteristics and at least one target storage node of each link;
establishing a secondary block chain of all supply chain information corresponding to each service scene based on the service scene information and the participant nodes corresponding to each service scene;
and performing information intercommunication processing on the first-stage block chain and the second-stage block chain to obtain the first-stage block chain and the second-stage block chain which are subjected to information intercommunication.
Optionally, the recording module 302 includes:
the sending unit 3021 is configured to obtain logistics information to be entered, generate an accounting request based on the logistics information to be entered, and send the accounting request to the secondary block chain through the preset interface;
the authentication unit 3022, configured to receive the billing request and perform authentication through the billing authentication node in the secondary block chain;
an encryption updating unit 3023, configured to record, based on a preset ACID principle, logistics information to be entered in the accounting request after the authentication is passed, encrypt the recorded logistics information to be entered, and update node synchronization information;
a triggering unit 3024, configured to perform event triggering judgment through a preset intelligent contract, and execute a corresponding contract item based on a result of the judgment.
Optionally, the encryption updating unit 3023 may be further specifically configured to:
based on a preset ACID principle, extracting logistics information to be entered in the accounting request after passing the authentication, and matching a node storage strategy corresponding to the logistics information to be entered and a target recording node corresponding to the node storage strategy, wherein the node storage strategy is used for storing the logistics information to be entered into the corresponding node according to a preset storage mode;
carrying out fragmentation processing and index creation on the logistics information to be input to obtain preprocessed logistics information to be input;
according to a data storage structure in the node storage strategy, storing the preprocessed logistics information to be recorded to a target recording node to obtain the stored logistics information to be recorded;
encrypting the stored logistics information to be recorded through a preset collaborative encryption algorithm to obtain the encrypted logistics information to be recorded;
and acquiring other nodes except the target recording node, and performing full-network broadcasting of a secondary block chain based on the encrypted logistics information to be recorded so as to update the synchronous information of other nodes.
Optionally, the cooperative processing apparatus of logistics information further includes:
an operation module 305, configured to initiate a query instruction based on logistics information to be entered through a decentralized application program of an application layer in a target data storage architecture, perform hash operation on the query instruction, and perform authentication to obtain a hash value to be processed;
the processing module 306 is configured to decrypt the hash value to be processed through a preset asymmetric encryption algorithm to obtain a block content hash value;
the analyzing module 307 is configured to analyze the block content hash value through a preset secure hash algorithm to obtain the target query information.
Optionally, the operation module 305 may be further specifically configured to:
initiating a query instruction based on logistics information to be input through a decentralized application program of an application layer in a target data storage architecture, analyzing the query instruction to obtain information to be queried, wherein the information to be queried is used for indicating query condition information of the logistics information to be input;
carrying out Hash operation on information to be inquired to obtain an initial Hash value;
and acquiring an instruction information signature of the information to be inquired, and performing identity authentication on the initial hash value through the instruction information signature to obtain the hash value to be processed.
The function implementation of each module and each unit in the cooperative processing device of the logistics information corresponds to each step in the cooperative processing method embodiment of the logistics information, and the function and implementation process thereof are not described in detail herein.
In the embodiment of the invention, the logistics information to be input is recorded through the primary block chain and the secondary block chain in the chain network type and mixed chain distributed target data storage architecture, so that the data information integration and the cooperative management of the whole link of the logistics information are realized, and the logistics information transmission loss of different degrees is avoided.
Fig. 3 and fig. 4 describe the cooperative processing apparatus of logistics information in the embodiment of the present invention in detail from the perspective of a modular functional entity, and describe the cooperative processing apparatus of logistics information in the embodiment of the present invention in detail from the perspective of hardware processing.
Fig. 5 is a schematic structural diagram of a cooperative processing device for logistics information, where the cooperative processing device 500 for logistics information may generate relatively large differences due to different configurations or performances, and may include one or more processors (CPUs) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) for storing application programs 533 or data 532. Memory 520 and storage media 530 may be, among other things, transient or persistent storage. The program stored in the storage medium 530 may include one or more modules (not shown), and each module may include a series of computer program operations in the cooperative processing device 500 for logistics information. Further, the processor 510 may be configured to communicate with the storage medium 530, and execute a series of computer program operations in the storage medium 530 on the cooperative processing device 500 of the logistics information.
The cooperative processing device 500 for logistics information may further comprise one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input/output interfaces 560, and/or one or more operating systems 531, such as Windows server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will appreciate that the configuration of the cooperative processing device for logistics information shown in fig. 5 does not constitute a limitation of the cooperative processing device for logistics information, and may include more or less components than those shown, or combine some components, or arrange different components.
The invention also provides a cooperative processing device of logistics information, comprising: a memory having a computer program stored therein and at least one processor, the memory and the at least one processor interconnected by lines; the at least one processor calls the computer program in the memory to enable the cooperative processing device of the logistics information to execute the steps in the cooperative processing method of the logistics information. The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium, and which may also be a volatile computer-readable storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer program causes the computer to execute the steps of the cooperative processing method of logistics information.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several computer programs to enable a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; although the present 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A cooperative processing method of logistics information is characterized in that the cooperative processing method of logistics information comprises the following steps:
constructing and deploying a target data storage architecture, wherein the target data storage architecture is a chain network type and mixed chain distributed data storage architecture and comprises a primary block chain and a secondary block chain;
sending an accounting request to the secondary block chain, receiving the accounting request through the secondary block chain, recording logistics information to be recorded in the accounting request, and triggering preset intelligent contract conditions;
calling a target interface after the intelligent contract condition is triggered, and pushing the recorded logistics information to be input to the primary block chain;
and establishing blocks and binding the relation based on the pushed result, and synchronizing the messages of the primary block chain.
2. The cooperative processing method for logistics information according to claim 1, wherein the constructing and deploying a target data storage architecture, the target data storage architecture being a chain-network type, mixed-chain distributed data storage architecture, the target data storage architecture comprising a primary blockchain and a secondary blockchain comprises:
acquiring service characteristics of a logistics supply chain, at least one target storage node of each link, service scene information and participant nodes corresponding to each service scene;
establishing a primary block chain and a secondary block chain of information intercommunication based on the service characteristics, at least one target storage node of each link, the service scene information and participant nodes corresponding to each service scene;
establishing a consensus mechanism for the first-stage block chain and the second-stage block chain which are communicated with each other to obtain a target data storage architecture, wherein the target data storage architecture is a chain network type and mixed chain distributed data storage architecture;
and performing chain deployment on the target data storage architecture through a preset intelligent contract.
3. The cooperative processing method for logistics information according to claim 2, wherein the creating of the first-level block chain and the second-level block chain for information interworking based on the service characteristics, the at least one target storage node of each link, the service scenario information, and the participant node corresponding to each service scenario comprises:
creating a primary block chain of supply chain information based on a shared trust root of a full link through the service characteristics and at least one target storage node of each link;
creating a secondary block chain of all supply chain information corresponding to each service scene based on the service scene information and the participant nodes corresponding to each service scene;
and performing information intercommunication processing on the primary block chain and the secondary block chain to obtain the information-intercommunicated primary block chain and the information-intercommunicated secondary block chain.
4. The cooperative processing method of logistics information according to claim 1, wherein the sending of the billing request to the secondary block chain, receiving of the billing request through the secondary block chain, recording of the logistics information to be entered in the billing request, and triggering of preset intelligent contract conditions are performed, includes:
acquiring logistics information to be input, generating an accounting request based on the logistics information to be input, and sending the accounting request to the secondary block chain through a preset interface;
receiving the accounting request and authenticating the accounting request through an accounting authentication node in the secondary block chain;
recording logistics information to be recorded in the accounting request after passing the authentication based on a preset ACID principle, encrypting the recorded logistics information to be recorded and updating node synchronization information;
and carrying out event triggering judgment through a preset intelligent contract, and executing corresponding contract items based on a judgment result.
5. The cooperative processing method of logistics information according to claim 4, wherein the recording, based on a preset ACID principle, of the logistics information to be entered in the accounting request after passing the authentication, encrypting the recorded logistics information to be entered, and performing node synchronization information update comprises:
based on a preset ACID principle, extracting logistics information to be entered in an accounting request after passing authentication, and matching a node storage strategy corresponding to the logistics information to be entered and a target recording node corresponding to the node storage strategy, wherein the node storage strategy is used for storing the logistics information to be entered into a corresponding node according to a preset storage mode;
carrying out fragmentation processing and index creation on the logistics information to be input to obtain preprocessed logistics information to be input;
according to a data storage structure in the node storage strategy, storing the preprocessed logistics information to be input to the target recording node to obtain the stored logistics information to be input;
encrypting the stored logistics information to be input through a preset collaborative encryption algorithm to obtain encrypted logistics information to be input;
and acquiring other nodes except the target recording node, and performing the whole network broadcast of the secondary block chain based on the encrypted logistics information to be recorded so as to update the synchronous information of other nodes.
6. The cooperative processing method for logistics information according to any one of claims 1 to 5, wherein after the building and the relation binding of the blocks based on the pushing result and the message synchronization of the primary block chain are performed, the method further comprises:
initiating a query instruction based on the logistics information to be input through a decentralized application program of an application layer in the target data storage architecture, and performing hash operation and authentication on the query instruction to obtain a hash value to be processed;
decrypting the hash value to be processed through a preset asymmetric encryption algorithm to obtain a block content hash value;
and analyzing the block content hash value through a preset secure hash algorithm to obtain target query information.
7. The cooperative processing method of logistics information according to claim 6, wherein the initiating, by a decentralized application program of an application layer in the target data storage architecture, a query instruction based on the logistics information to be entered, performing hash operation and authentication on the query instruction, and obtaining a hash value to be processed includes:
initiating a query instruction based on the logistics information to be input through a decentralized application program of an application layer in the target data storage architecture, and analyzing the query instruction to obtain information to be queried, wherein the information to be queried is used for indicating query condition information of the logistics information to be input;
carrying out Hash operation on the information to be inquired to obtain an initial Hash value;
and acquiring an instruction information signature of the information to be inquired, and performing identity authentication on the initial hash value through the instruction information signature to obtain a hash value to be processed.
8. A device for cooperative processing of logistics information, the device comprising:
the system comprises a construction deployment module, a data storage module and a data storage module, wherein the construction deployment module is used for constructing and deploying a target data storage architecture, the target data storage architecture is a chain network type and mixed chain distributed data storage architecture, and the target data storage architecture comprises a primary block chain and a secondary block chain;
the recording module is used for sending an accounting request to the secondary block chain, receiving the accounting request through the secondary block chain, recording the logistics information to be recorded in the accounting request, and triggering a preset intelligent contract condition;
the pushing module is used for calling a target interface after the intelligent contract condition is triggered and pushing the recorded logistics information to be recorded to the primary block chain;
and the synchronization module is used for establishing blocks and binding the relation based on the pushed result and synchronizing the messages of the primary block chain.
9. A cooperative processing apparatus of logistics information, characterized in that the cooperative processing apparatus of logistics information comprises: a memory and at least one processor, the memory having stored therein a computer program;
the at least one processor calls the computer program in the memory to cause the cooperative processing device of the logistics information to execute the cooperative processing method of logistics information according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the cooperative processing method of the logistics information according to any one of claims 1 to 7.
CN202210404185.7A 2022-04-18 2022-04-18 Cooperative processing method, device and equipment of logistics information and storage medium Pending CN114925133A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210404185.7A CN114925133A (en) 2022-04-18 2022-04-18 Cooperative processing method, device and equipment of logistics information and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210404185.7A CN114925133A (en) 2022-04-18 2022-04-18 Cooperative processing method, device and equipment of logistics information and storage medium

Publications (1)

Publication Number Publication Date
CN114925133A true CN114925133A (en) 2022-08-19

Family

ID=82807369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210404185.7A Pending CN114925133A (en) 2022-04-18 2022-04-18 Cooperative processing method, device and equipment of logistics information and storage medium

Country Status (1)

Country Link
CN (1) CN114925133A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115660610A (en) * 2022-12-27 2023-01-31 广州明动软件股份有限公司 Decentralized cooperative office system and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115660610A (en) * 2022-12-27 2023-01-31 广州明动软件股份有限公司 Decentralized cooperative office system and method
CN115660610B (en) * 2022-12-27 2023-03-21 广州明动软件股份有限公司 Decentralized cooperative office system and method

Similar Documents

Publication Publication Date Title
TWI724780B (en) Method and device for master node switching processing in blockchain system
CN111416808B (en) Cross-block-chain data mutual storage method, device, equipment and storage medium
CN109741039B (en) Accounting method, mine pool server, terminal equipment, mine excavation node and mine pool
US11128522B2 (en) Changing a master node in a blockchain system
US20220277301A1 (en) Secure tracking and transfer of items using a blockchain
CN108805656B (en) Supply and demand matching method, platform, system and computer readable storage medium
CN110609869B (en) Block chain-based data storage method, related equipment and storage medium
CN110612697B (en) Method and system for efficient information retrieval of data storage layer indexes
CN109218079B (en) Block chain network, deployment method and storage medium
CN110493261B (en) Verification code obtaining method based on block chain, client, server and storage medium
CN111681003B (en) Resource cross-chain transfer method and device, computer equipment and storage medium
CN109255084B (en) Electronic bill query method, device, storage medium and computer equipment
CN111314067B (en) Block storage method and device, computer equipment and storage medium
CN112085504B (en) Data processing method and device, computer equipment and storage medium
CN112527912B (en) Data processing method and device based on block chain network and computer equipment
CN108615195B (en) Resource transfer information transmission method and device, storage medium and electronic device
JP7479393B2 (en) SYSTEM AND METHOD FOR A VIRTUAL DISTRIBUTED LEDGER NETWORK
CN113837760B (en) Data processing method, data processing device, computer equipment and storage medium
CN110706008A (en) Traceability processing method based on block chain and block chain distributed traceability system
CN101243387A (en) Schema packaging, distribution and availability
CN110599175A (en) Block processing method and related equipment
CN114925133A (en) Cooperative processing method, device and equipment of logistics information and storage medium
EP3542300B1 (en) Method for operating a peer-to-peer application
CN113765675B (en) Transaction data processing method, device, equipment and medium
CN116827957B (en) Information processing method, device, equipment and medium based on multi-block chain

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