CN115759893B - Cross-chain logistics service management method and device and electronic equipment - Google Patents

Cross-chain logistics service management method and device and electronic equipment Download PDF

Info

Publication number
CN115759893B
CN115759893B CN202310015548.2A CN202310015548A CN115759893B CN 115759893 B CN115759893 B CN 115759893B CN 202310015548 A CN202310015548 A CN 202310015548A CN 115759893 B CN115759893 B CN 115759893B
Authority
CN
China
Prior art keywords
blockchain
block chain
service order
sub
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.)
Active
Application number
CN202310015548.2A
Other languages
Chinese (zh)
Other versions
CN115759893A (en
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.)
Research Center of Information Technology of Beijing Academy of Agriculture and Forestry Sciences
Original Assignee
Research Center of Information Technology of Beijing Academy of Agriculture and Forestry Sciences
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 Research Center of Information Technology of Beijing Academy of Agriculture and Forestry Sciences filed Critical Research Center of Information Technology of Beijing Academy of Agriculture and Forestry Sciences
Priority to CN202310015548.2A priority Critical patent/CN115759893B/en
Publication of CN115759893A publication Critical patent/CN115759893A/en
Application granted granted Critical
Publication of CN115759893B publication Critical patent/CN115759893B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a method and a device for managing a cross-chain logistics service and electronic equipment, belonging to the technical field of logistics, wherein the method comprises the following steps: sending an information inquiry request to a second blockchain node corresponding to the subarea blockchain; and receiving query feedback information sent by a second blockchain node corresponding to the subarea blockchain. According to the method for managing the cross-chain logistics business, the source block chain actively initiates the transmission and the information inquiry request to the sub-block chain, so that the cross-chain information interaction of the source block chain is realized, the sub-block chain is not required to continuously send event information to the source block chain in a passive polling mode, data is only sent when the source chain has the information transmission requirement to the corresponding sub-chain, and the network burden and the transmission cost in the cross-chain transmission process are reduced.

Description

Cross-chain logistics service management method and device and electronic equipment
Technical Field
The present invention relates to the field of logistics technologies, and in particular, to a method and an apparatus for managing a cross-link logistics service, and an electronic device.
Background
In recent years, the demand for fresh agricultural product freshness has driven an ever-expanding market for fresh cold chain logistics (Food Cold Chain Logistics, FCCL), but there are a number of problems in development. The traditional FCCL nodes generally adopt the form of paper contract to conduct transaction, the paper contract is signed, the stamping process is complex, and timeliness is lacking. Especially, frequent remote transactions often exist among FCCL nodes, the mailing cost is high, the security is low, the management cost is high, and the problems of difficult consulting and the like are also outstanding. In the field of FCCL cold chain supervision, the traditional cold chain is more supervised by utilizing a wireless sensor and a centralized system, and more is towards a node, and a traditional supervision mode has a plurality of defects, so that enterprises often select a centralized platform to perform self supervision, and the data security is difficult to guarantee.
In the field of blockchain applications, conventional blockchain applications often employ single-chain or multi-chain operation, and single-chain modes result in poor data isolation and increased storage pressure due to the publicity of the blockchain and the characteristics of the distributed ledger. The multi-link mode often adopts a cross-link method to perform mutual operation, but most of the traditional cross-link mode is based on a passive polling mode to acquire data, a target sub-link needs to continuously perform information inquiry requests on a source link until the data corresponding to the source link are acquired, and the load of a network is increased while high operation cost is brought to the target sub-link, so that the waste of network communication resources among links is caused. Therefore, how to reduce the network load and the transmission cost in the cross-link transmission process is a problem to be solved.
Disclosure of Invention
The invention provides a method, a device and electronic equipment for managing a cross-link logistics service, which are used for solving the defect that a target sub-link in cross-link transmission needs to constantly inquire information requests of a source link to acquire information, and realizing the effect that the source link automatically sends information to the sub-link so as to reduce network load.
The invention provides a cross-chain logistics business management method, which is applied to a block chain node corresponding to a source block chain corresponding to a business order management mechanism, and comprises the following steps:
Sending an information inquiry request to a second blockchain node corresponding to the subarea blockchain; the information inquiry request is determined based on the information inquiry input of the target object to the service order; the business mechanism corresponding to the sub-block chain is associated with the business order management mechanism of the source block chain in logistics business;
and receiving inquiry feedback information sent by the second block chain node.
According to the method for managing the cross-chain logistics business provided by the invention, before the information inquiry request is sent to the second block chain link corresponding to the sub-block chain, the method further comprises the following steps:
under the condition that the business order is confirmed to be signed, packaging the data required by the sub-block chain corresponding to the business order, extracting a business order data hash value from the data required by the sub-block chain, and generating a data packet corresponding to the business order after digital signature; generating second metadata of a data packet corresponding to the service order sent to the second blockchain node corresponding to the service order;
and storing the second metadata in a uplink manner, and sending a data packet corresponding to the service order to the second blockchain node.
According to the cross-chain logistics business management method provided by the invention, the second metadata is determined by the following modes:
determining a second blockchain node corresponding to the sub-blockchain corresponding to the service order based on the intelligent contract corresponding to the source blockchain;
and determining the second metadata based on the timestamp of the data packet corresponding to the service order sent to the second blockchain node corresponding to the subarea chain corresponding to the service order and the service order data hash value.
In some embodiments, after the sending the data packet corresponding to the service order to the second blockchain node, the method further includes:
carrying out signature verification and integrity verification on a service order data hash value in a data packet corresponding to the service order through the second blockchain node corresponding to the service order;
and under the condition that the signature verification and the integrity verification are both passed, storing the data packet corresponding to the service order in the upper chain of the sub-block chain.
According to the cross-chain logistics business management method provided by the invention, the sub-block chain comprises at least one of a first sub-block chain corresponding to a logistics transportation and supervision mechanism, a second sub-block chain corresponding to a financial management mechanism and a third sub-block chain corresponding to a logistics warehouse management mechanism.
The invention also provides a cross-chain logistics service management method which is applied to a second blockchain node corresponding to a subarea block chain corresponding to a service mechanism associated with a service order management mechanism in logistics service, and the method comprises the following steps:
receiving an information inquiry request sent by a first block chain node corresponding to a source block chain; the information inquiry request is determined based on the information inquiry input of the target object to the service order; the business mechanism corresponding to the source block chain is the business order management mechanism;
generating first metadata corresponding to the information inquiry request sent by the first block chain link point, and sending inquiry feedback information to the first block chain link point;
and carrying out uplink certification on the first metadata.
According to the method for managing the cross-chain logistics business provided by the invention, the first metadata is determined by the following modes:
determining a query result corresponding to the information query request based on an intelligent contract;
calculating a hash value of the query result to obtain a hash value of the query result;
and determining the first metadata based on the query result hash value and a timestamp corresponding to the information query request sent to the second block link point.
The invention also provides a cross-chain logistics service management device, which comprises:
the first sending module is used for sending an information inquiry request to a second block chain node corresponding to the sub-block chain; the information inquiry request is determined based on the information inquiry input of the target object to the service order; the business mechanism corresponding to the sub-block chain is associated with the business order management mechanism of the source block chain in logistics business;
and the first receiving module is used for receiving the query feedback information sent by the second block chain node.
The invention also provides a cross-chain logistics service management device, which comprises:
the second receiving module is used for receiving an information inquiry request sent by a first block chain node corresponding to the source block chain; the information inquiry request is determined based on the information inquiry input of the target object to the service order; the business mechanism corresponding to the source block chain is the business order management mechanism;
the first processing module is used for generating first metadata corresponding to the information inquiry request sent by the first block chain link, and sending inquiry feedback information to the first block chain link;
and the second processing module is used for carrying out uplink certification on the first metadata.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the cross-chain logistics business management method according to any one of the above when executing the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of cross-chain logistics business management as described in any of the above.
The invention also provides a computer program product comprising a computer program which when executed by a processor implements a method of cross-chain logistics business management as described in any one of the above.
According to the method, the device and the electronic equipment for managing the cross-chain logistics business, the source block chain actively initiates the transmission and the information query request to the sub-block chain, so that the cross-chain information interaction of the source block chain is realized, the sub-block chain is not required to continuously send event information to the source block chain in a passive polling mode, data is sent to the source chain only when the source chain has the information transmission requirement to the corresponding sub-chain, the data transmission quantity and the required computing capacity are reduced, and the network burden and the transmission cost in the cross-chain transmission process are reduced.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a cross-link logistics business management method provided by the invention;
FIG. 2 is a schematic diagram of a business architecture framework of a blockchain provided by the present invention;
FIG. 3 is a second flow chart of the method for managing cross-link logistics business according to the present invention;
fig. 4 is a schematic structural diagram of a cross-link logistics service management device provided by the invention;
FIG. 5 is a second schematic diagram of a cross-link logistics business management apparatus according to the present invention;
fig. 6 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. 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.
The following describes a method, a device and an electronic device for managing cross-chain logistics business with reference to fig. 1 to 6.
The cross-chain logistics service management method can be applied to the block chain nodes corresponding to the source block chains corresponding to the service order management mechanism. The blockchain node corresponding to the source blockchain corresponding to the service order management mechanism may be a server or a processor, and may be disposed in a virtual network device or an entity network device. Nodes corresponding to different blockchains can be arranged on different servers.
A blockchain is a chain that is made up of a plurality of blocks. Each block holds certain information which is linked in a chain according to the time sequence of their respective generation. This chain is kept in all servers, and the entire blockchain is secure as long as one server in the entire system can work. In this case, the servers act as blockchain nodes in the blockchain system, providing storage space and computational support for the entire blockchain system.
If the information in the blockchain is to be modified, it is necessary to sign consent of more than a certain number of nodes and modify the information in all nodes, which are usually held in different subject hands, so it is an extremely difficult thing to tamper with the information in the blockchain. Compared with the traditional network, the blockchain has two main core characteristics: firstly, the data is difficult to tamper, and secondly, the data is decentralised.
Based on this, blockchain is a new application mode of computer technology including distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, etc., which is essentially a de-centralized database. The blockchain may be composed of a plurality of serial transaction records (also known as blocks) that are cryptographically concatenated and protected against content, and the distributed ledgers concatenated by the blockchain enable multiple parties to effectively record transactions and permanently verify the transactions.
The cross-chain logistics service management method is applied to the block chain nodes corresponding to the source block chains corresponding to the service order management mechanism based on the block chain technology, and can simultaneously perform cross-chain operation on a plurality of sub-block chains based on the source block chains.
In some embodiments, the sub-blockchains include at least one of a first sub-blockchain corresponding to a logistics transportation and supervision organization, a second sub-blockchain corresponding to a financial management organization, and a third sub-blockchain corresponding to a logistics warehouse management organization, so as to achieve the effect that a source chain automatically sends information to the sub-chains in a cross-chain operation, thereby reducing network burden.
It will be appreciated that in the field of logistics management, and in particular cold chain logistics management, there may be included a source blockchain corresponding to a business order management entity, a first sub-blockchain corresponding to a logistics transportation and supervision entity, a second sub-blockchain corresponding to a financial management entity, and a third sub-blockchain corresponding to a logistics warehouse management entity.
As shown in fig. 1, the method for managing cross-link logistics business according to the embodiment of the present invention mainly includes step 110 and step 120.
Step 110, sending an information inquiry request to the block link corresponding to the sub-block chain.
It will be appreciated that the information query request is determined based on the information query input of the target object to the business order. The service organization corresponding to the sub-blockchain is associated with the service order management organization of the source blockchain in the logistics service. The business order management organization may correspond to a source blockchain, the logistics transportation and administration organization may correspond to a first sub-blockchain, the financial management organization may correspond to a second sub-blockchain, and the logistic warehouse management organization may correspond to a third sub-blockchain.
The target object may be a person of a business order management organization, and may query and manage the signing information, logistics transportation and administration information, financial information, and logistic warehouse information of the business order.
The endorsement information may include the time of endorsement of the business order, the endorser, the specific logistics transportation items, the transportation time, the transportation contract, etc. The logistics transportation and supervision information can comprise logistics party selection, logistics mode, logistics path, logistics process supervision content and the like. The financial information may include information such as revenue, expense, deduction, and rewards for each of the money of the business order. The logistical warehouse information may include information related to warehouse storage of the items to be transported for each link.
The target object can realize information query input of the service order through terminal equipment or other equipment.
The various information types of the service order to be queried by the target object are not limited, and the input mode of the information query request is not limited.
In this embodiment, the source blockchain corresponding to the service order management mechanism sends the information query request to each other module corresponding to the logistics service, so that the source blockchain can directly initiate information transfer to each sub-blockchain.
Step 120, receiving query feedback information sent by the second blockchain node.
It can be appreciated that after receiving the query request sent by the first blockchain node corresponding to the source blockchain, the second blockchain node corresponding to the sub-blockchain can send the query feedback information to the first blockchain node corresponding to the source blockchain according to the corresponding intelligent contract, which is convenient for the target object to determine the queried content.
It should be noted that each sub-block chain may implement a respective function based on a corresponding smart contract.
For example, the logistics transportation and the supervision mechanism correspond to the first sub-blockchain node, which can realize the functions of data collection, data judgment, early warning processing, event transmission, event receiving, traceability verification and the like, and the functions on each sub-blockchain are not limited herein.
In this embodiment, the sub-block chain may generate first metadata corresponding to the information query request sent by the first block link, and send the query feedback information to the first block link, that is, the first metadata is used to indicate that the source block chain has queried information to the sub-block chain.
It should be noted that, the metadata can effectively help technicians and business personnel understand, supervise and manage the information such as the source of data, conversion rules, data change management and the like, so as to improve the working efficiency.
In this embodiment, by determining the first metadata, it is possible to record the information query request of the source blockchain conveniently, and actively perform the uplink certification on the sub-blockchain by using the first metadata, thereby implementing the certification of the data.
According to the method for managing the cross-chain logistics business, the source block chain actively initiates transmission and information inquiry requests to the sub-block chains, so that the cross-chain information interaction of the source block chain is realized, event information is not required to be continuously sent to the source block chain by the sub-block chain in a passive polling mode, data is sent to the source chain only when the source chain has information transmission requirements to the corresponding sub-chain, data transmission quantity and required computing capacity are reduced, and network burden and transmission cost in the cross-chain transmission process are reduced.
In the embodiment of the invention, as shown in fig. 2, the active multiplexing method can help one source block chain to call a plurality of different service sub-chains at the same time, and the plurality of different sub-chains can initiate callback to the main chain at the same time, which is different from the traditional passive event monitoring method based on polling, and greatly reduces the communication cost.
The blockchain node of the sub-blockchain can generate a section of data packet to be sent, namely inquiry feedback information, by using the hash value and the time stamp of the inquiry result encrypted by the private key, and the digital signature is the content encrypted by the private key.
The block chain node of the source block chain receiving the query feedback information calculates the abstract of the data packet by using a hash algorithm with the same encryption process, encrypts the abstract by the public key of the second block chain node of the sub block chain, decrypts the digital signature, and compares the two to realize signature verification.
In this embodiment, by encrypting the query result, security in the data transmission process can be ensured, and the first metadata includes not only the hash value of the query result, but also a timestamp that the source block chain transmits the information query request to the second block chain link, and all information of the cross-chain operation can be recorded, so that tracing and auditing of the full-chain node are ensured.
Taking temperature query in the cold chain logistics supervision process as an example, the target object may send a temperature information query request to a first blockchain node of a first sub-blockchain corresponding to a logistics transportation and supervision mechanism according to an intelligent contract of a source blockchain.
The intelligent contract corresponding to the first blockchain node of the first sub-blockchain can send a supervision request to the temperature sensor equipment in the cold chain logistics transportation vehicle at regular time, the temperature sensor equipment collects environmental data after receiving the request and uploads the temperature data to the blockchain platform through the node corresponding to the data collection function, and the temperature data is stored in the first sub-blockchain.
The blockchain node corresponding to the data judgment in the first sub-blockchain compares the collected data with a reasonable temperature threshold corresponding to the system setting. If the result is in a reasonable range, signing the processed data and the result by the nodes corresponding to the traceability verification, transmitting the data and the result into a file system by the nodes corresponding to the data uplink, and taking the hash value for uplink, so that the data can be stored in traceability.
If the result is not within the reasonable range of values, the data extraction hash value is wound up after the batch of products is marked as temperature anomaly while the file system stores the data. And finally, the corresponding node for early warning processing can early warn the related processing node through an early warning function for data abnormality, and inform the related processing node to process.
After processing, the first sub-blockchain may send the processing result to a source blockchain corresponding to the service order management mechanism for recording, and the source blockchain synchronizes the related data to a second sub-blockchain corresponding to the financial management mechanism, so that the second sub-blockchain performs related operations according to the corresponding intelligent contract.
According to the early warning condition, the second sub-blockchain can deduct the amount of guarantee money corresponding to the responsible nodes according to the intelligent contract, wherein each time of cross-chain operation can generate a signature and related data blocks to carry out uplink, and the tracing and auditing of all-chain nodes are guaranteed.
In some embodiments, before sending an information query request to a second block link corresponding to the sub-block chain, the method for managing a cross-chain logistics service according to the embodiment of the present invention further includes: under the condition that the business order is confirmed to be signed, data required by the sub-block chain corresponding to the business order is packed, the hash value of the business order data is extracted from the data required by the sub-block chain corresponding to the business order, and a data packet corresponding to the business order after digital signature is generated.
It will be appreciated that for each uplink service order, the service order is placed in the source blockchain.
Of course, the source blockchain initializes the address and key information of the nodes of the organization in a cross-chain environment prior to order placement. Then, after the order service is signed and up, the order management chain node distributes contracts to each sub-chain and saves the invoked metadata.
In this case, second metadata is generated that sends the data packet corresponding to the service order corresponding second blockchain node.
The data packet corresponding to the service order may be signing information, logistics transportation and supervision information, financial information, logistic warehouse information, etc. of the service order.
After each sub-block chain receives the data packet corresponding to the service order, each piece of information can be updated according to the corresponding intelligent contract.
The second metadata is used for indicating that the blockchain node corresponding to the source blockchain sends a data packet corresponding to the service order to the second blockchain node corresponding to the service order.
In some embodiments, the second metadata may be determined in the following manner.
It will be appreciated that the second blockchain node corresponding to the service order may be determined based on the intelligent contract corresponding to the source blockchain, i.e., the second blockchain node of the sub-blockchain corresponding to the service order may be determined from a plurality of nodes of the plurality of sub-blockchains.
In this case, the second metadata is determined based on the timestamp of the data packet corresponding to the service order sent to the service order corresponding second blockchain node and the service order data hash value. The service order data hash value may be set at the end of the data packet.
It is understood that the second metadata includes IP addresses of nodes corresponding to the data sender and the data receiver.
In this embodiment, the second metadata includes a timestamp of the source blockchain sending data to the sub-blockchain and a hash value of the service order data, so that accuracy, security and traceability of the data packet corresponding to the service order are ensured.
In this case, the second metadata is stored upstream and the data packet corresponding to the service order is sent to the second blockchain node.
In this embodiment, the source blockchain actively sends a data packet to each sub-blockchain, so that the automatic sending of related data required by the sub-chain is realized, the request of the sub-chain is not required, and when the sub-chain receives information and verifies that the sub-chain is successful, callback function is utilized to confirm that the call is successful.
In some embodiments, after sending the data packet corresponding to the service order to the second blockchain node corresponding to the service order, the cross-chain logistics service management method of the embodiment of the present invention further includes verification of the received data.
In this embodiment, signature verification and integrity verification may be performed on the hash value of the service order data in the data packet corresponding to the service order by the second blockchain node corresponding to the service order.
And the block chain node of the source block chain calculates the digest of the data packet by using a hash algorithm with the same encryption process, encrypts the digest by adopting a public key of a second block chain node through a client corresponding to the second block chain node, decrypts the digital signature, and compares the two to realize signature verification.
Under the condition, the integrity verification is continuously carried out on the hash value of the service order data, and under the condition that the signature verification and the integrity verification are both passed, the data packet corresponding to the service order is stored in a uplink mode, so that the integrity and the safety of the data received by the sub-link are ensured.
In the verification of the received data, a joint verification mode is adopted, namely, the transmission node self-verifies the integrity and the anti-counterfeiting property of the data by utilizing a hash mechanism and a signature mechanism, and other verification nodes request the source blockchain node to verify the correctness of the hash value through the corresponding organization node.
Meanwhile, the one-to-many cross-link communication model reduces the storage pressure, solves the problem of occupation of the traditional single-machine multi-link operation memory, and realizes the classified management of service data.
After the data packet is uplink, if other sub-block chain nodes want to perform authentication or operation, the other sub-block chain nodes can perform cross-chain authentication with the corresponding source block chain nodes by themselves.
In the cross-chain logistics service management method, an active multiplexing cross-chain calling method service model is adopted, isolation, supervision decentralization, safety and non-tamper-resistance of block chain data are guaranteed by using a block chain cross-chain technology and a joint verification mode, and the efficiency of inter-chain interaction and the utilization rate of a network are improved by using a multiplexing method.
As shown in fig. 3, the embodiment of the present invention further provides a method for managing a cross-link logistics service, which mainly includes steps 310, 320 and 330.
In this embodiment, the cross-chain logistics service management method is applied to the second blockchain node corresponding to the sub-blockchain corresponding to the service organization associated with the service order management organization in the logistics service, for example, the second blockchain node corresponding to the first sub-blockchain corresponding to the logistics transportation and supervision organization, the second sub-blockchain corresponding to the financial management organization, the third sub-blockchain corresponding to the logistic warehouse management organization, and the like.
Step 310, an information query request sent by a first blockchain node corresponding to a source blockchain is received.
It will be appreciated that the information query request is determined based on the information query input of the target object to the service order, and the service organization corresponding to the source blockchain is a service order management organization.
In this embodiment, the source blockchain corresponding to the service order management mechanism sends the information query request to each other module corresponding to the logistics service, so that the source blockchain can directly initiate information transfer to each sub-blockchain.
Step 320, generate first metadata corresponding to the received first block link point transmission information query request, and transmit query feedback information to the first block link point.
It can be appreciated that after receiving the query request sent by the first blockchain node corresponding to the source blockchain, the second blockchain node corresponding to the sub-blockchain can send the query feedback information to the first blockchain node corresponding to the source blockchain according to the corresponding intelligent contract, so that the target object can determine the queried content conveniently.
In this embodiment, the first metadata is used to indicate that the source blockchain has queried information for the sub-blockchain.
It should be noted that, the metadata can effectively help technicians and business personnel understand, supervise and manage the information such as the source of data, conversion rules, data change management and the like, so as to improve the working efficiency.
And 330, performing uplink certification on the first metadata.
It should be noted that, after receiving the query request sent by the first blockchain node corresponding to the source blockchain, the second blockchain node may generate first metadata, and store the first metadata in the corresponding sub-blockchain as the credential.
In this embodiment, by generating the first metadata, it is possible to record the information query request of the source blockchain conveniently, and store the first metadata in the sub-blockchain, so that the callback of the data is realized, and at the same time, the storage is left.
According to the method for managing the cross-chain logistics business, the source block chain actively initiates transmission and information inquiry requests to the sub-block chains, so that the cross-chain information interaction of the source block chain is realized, event information is not required to be continuously sent to the source block chain by the sub-block chain in a passive polling mode, data is sent to the source chain only when the source chain has information transmission requirements to the corresponding sub-chain, data transmission quantity and required computing capacity are reduced, and network burden and transmission cost in the cross-chain transmission process are reduced.
In some embodiments, the first metadata is generated, including the following process.
In this embodiment, the query result corresponding to the information query request may be determined by the intelligent contract corresponding to the sub-blockchain, and then the hash value is calculated on the query result to obtain the hash value of the query result.
In some embodiments, the query result may be hashed to generate a digest, i.e., a hash value of the query result. The query result hash value may be encrypted by the private key of the node.
On this basis, the first metadata may be determined based on the query result hash value and a timestamp corresponding to the information query request sent to the current node.
It is understood that the first metadata further includes the query index, the IP address of the node corresponding to the data sender and the data receiver.
The blockchain node of the sub-blockchain can generate a section of data packet to be sent, namely inquiry feedback information, by using the hash value and the time stamp of the inquiry result encrypted by the private key, and the digital signature is the content encrypted by the private key.
The block chain node of the source block chain receiving the query feedback information calculates the abstract of the data packet by using a hash algorithm with the same encryption process, encrypts the abstract by the public key of the second block chain node of the sub block chain, decrypts the digital signature, and compares the two to realize signature verification.
In this embodiment, by encrypting the query result, security in the data transmission process can be ensured, and the first metadata includes not only the hash value of the query result, but also a timestamp that the source block chain transmits the information query request to the second block chain link, and all information of the cross-chain operation can be recorded, so that tracing and auditing of the full-chain node are ensured.
The description of the cross-link logistics service management device provided by the invention is provided below, and the cross-link logistics service management device described below and the cross-link logistics service management method described above can be correspondingly referred to each other.
As shown in fig. 4, the cross-link logistics service management apparatus according to the embodiment of the present invention mainly includes a first sending module 410 and a first receiving module 420.
The first sending module 410 is configured to send an information query request to a second blockchain node corresponding to the sub-blockchain; the information inquiry request is determined based on the information inquiry input of the target object to the service order; the service mechanism corresponding to the sub-block chain is associated with the service order management mechanism of the source block chain in the logistics service;
the first receiving module 420 is configured to receive query feedback information sent by the second blockchain node.
According to the cross-chain logistics business management device, the source block chain actively initiates transmission and information query requests to the sub-block chains, so that cross-chain information interaction of the source block chain is realized, event information is not required to be continuously sent to the source block chain by the sub-block chains in a passive polling mode, data is sent to the source chain only when the source chain has information transmission requirements to the corresponding sub-chain, data transmission quantity and required computing capacity are reduced, and network burden and transmission cost in the cross-chain transmission process are reduced.
In some embodiments, the cross-chain logistics service management device of the embodiments of the present invention further includes a distribution module, where the distribution module is configured to, in a case where a service order is determined to be signed, package data required by a sub-blockchain corresponding to the service order and extract a service order data hash value for data required by the sub-blockchain corresponding to the service order, to generate a data packet corresponding to the service order; generating second metadata of a data packet corresponding to the service order sent to a second blockchain node corresponding to the service order; and the second metadata is stored in an uplink mode, and a data packet corresponding to the service order is sent to the second blockchain node.
In some embodiments, the distribution module is further configured to determine a blockchain node corresponding to a sub-blockchain corresponding to the service order based on an intelligent contract corresponding to the source blockchain; and determining second metadata based on the time stamp of the data packet corresponding to the service order and the service order data hash value sent to the second block chain node corresponding to the sub-block chain corresponding to the service order.
In some embodiments, the distribution module is further configured to perform signature verification and integrity verification on the hash value of the service order data in the data packet corresponding to the service order through an intelligent contract corresponding to a block link point corresponding to a sub-block chain corresponding to the service order; and under the condition that the signature verification and the integrity verification are passed, the data packet corresponding to the service order is stored in a uplink manner.
In some embodiments, the distribution module is further configured to perform signature verification and integrity verification on the service order data hash value in the data packet corresponding to the service order through the second blockchain node corresponding to the service order;
and under the condition that the signature verification and the integrity verification are both passed, storing the data packet corresponding to the service order in the sub-block chain.
In some embodiments, the sub-blockchain includes at least one of a first sub-blockchain corresponding to a logistics transportation regulatory agency, a second sub-blockchain corresponding to a financial regulatory agency, and a third sub-blockchain corresponding to a logistic warehouse regulatory agency.
As shown in fig. 5, the embodiment of the present invention further provides a cross-chain logistics service management apparatus, which mainly includes a second receiving module 510, a first processing module 520, and a second processing module 530.
The second receiving module 510 is configured to receive an information query request sent by a first blockchain node corresponding to a source blockchain; the information inquiry request is determined based on the information inquiry input of the target object to the service order; the business mechanism corresponding to the source block chain is a business order management mechanism;
the first processing module 520 is configured to generate first metadata corresponding to the information query request sent by the first block link, and send query feedback information to the first block link;
the second processing module 530 is configured to perform uplink certification on the first metadata.
According to the cross-chain logistics business management device, the source block chain actively initiates transmission and information query requests to the sub-block chains, so that cross-chain information interaction of the source block chain is realized, event information is not required to be continuously sent to the source block chain by the sub-block chains in a passive polling mode, data is sent to the source chain only when the source chain has information transmission requirements to the corresponding sub-chain, data transmission quantity and required computing capacity are reduced, and network burden and transmission cost in the cross-chain transmission process are reduced.
In some embodiments, the first processing module 520 is further configured to determine a query result corresponding to the information query request based on the smart contract; calculating a hash value of the query result to obtain a hash value of the query result; the first metadata is determined based on the query result hash value and a timestamp corresponding to the information query request sent to the second block link point.
Fig. 6 illustrates a physical schematic diagram of an electronic device, as shown in fig. 6, which may include: processor 610, communication interface (Communications Interface) 620, memory 630, and communication bus 640, wherein processor 610, communication interface 620, and memory 630 communicate with each other via communication bus 640. Processor 610 may invoke logic instructions in memory 630 to perform a cross-chain logistics business management method comprising: sending an information inquiry request to a second blockchain node corresponding to the subarea blockchain; the information inquiry request is determined based on the information inquiry input of the target object to the service order; the service mechanism corresponding to the sub-block chain is associated with the service order management mechanism of the source block chain in the logistics service; receiving inquiry feedback information sent by a second block chain node; alternatively, the method further comprises: receiving an information inquiry request sent by a first block chain node corresponding to a source block chain; the information inquiry request is determined based on the information inquiry input of the target object to the service order; the business mechanism corresponding to the source block chain is a business order management mechanism; generating first metadata corresponding to the information inquiry request sent by the first block link point, and sending inquiry feedback information to the first block link point; and carrying out uplink certification on the first metadata.
Further, the logic instructions in the memory 630 may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method of the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, where the computer program product includes a computer program, where the computer program can be stored on a non-transitory computer readable storage medium, and when the computer program is executed by a processor, the computer can execute the method for managing the cross-chain logistics service provided by the above methods, where the method includes: sending an information inquiry request to a second blockchain node corresponding to the subarea blockchain; the information inquiry request is determined based on the information inquiry input of the target object to the service order; the service mechanism corresponding to the sub-block chain is associated with the service order management mechanism of the source block chain in the logistics service; receiving inquiry feedback information sent by a second block chain node; alternatively, the method further comprises: receiving an information inquiry request sent by a first block chain node corresponding to a source block chain; the information inquiry request is determined based on the information inquiry input of the target object to the service order; the business mechanism corresponding to the source block chain is a business order management mechanism; generating first metadata corresponding to the information inquiry request sent by the first block link point, and sending inquiry feedback information to the first block link point; and carrying out uplink certification on the first metadata.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the method for managing a cross-chain logistics service provided by the above methods, the method comprising: sending an information inquiry request to a second blockchain node corresponding to the subarea blockchain; the information inquiry request is determined based on the information inquiry input of the target object to the service order; the service mechanism corresponding to the sub-block chain is associated with the service order management mechanism of the source block chain in the logistics service; receiving inquiry feedback information sent by a second block chain node; alternatively, the method further comprises: receiving an information inquiry request sent by a first block chain node corresponding to a source block chain; the information inquiry request is determined based on the information inquiry input of the target object to the service order; the business mechanism corresponding to the source block chain is a business order management mechanism; generating first metadata corresponding to the information inquiry request sent by the first block link point, and sending inquiry feedback information to the first block link point; and carrying out uplink certification on the first metadata.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
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 (6)

1. The method for managing the cross-chain logistics business is applied to a first blockchain node corresponding to a source blockchain corresponding to a business order management mechanism, and is characterized by comprising the following steps:
sending an information inquiry request to a second blockchain node corresponding to the subarea blockchain; the information inquiry request is determined based on the information inquiry input of the target object to the service order; the business mechanism corresponding to the sub-block chain is associated with the business order management mechanism of the source block chain in logistics business;
receiving inquiry feedback information sent by the second block chain node;
before the information inquiry request is sent to the second block link corresponding to the sub-block chain, the method further comprises:
under the condition that the business order is confirmed to be signed, packaging the data required by the sub-block chain corresponding to the business order, extracting a business order data hash value from the data required by the sub-block chain, and generating a data packet corresponding to the business order after digital signature; generating second metadata of a data packet corresponding to the service order sent to the second blockchain node corresponding to the service order;
storing the second metadata in a uplink manner, and sending a data packet corresponding to the service order to the second blockchain node;
The second metadata is determined by:
determining a second blockchain node corresponding to the sub-blockchain corresponding to the service order based on the intelligent contract corresponding to the source blockchain;
determining the second metadata based on a timestamp of a data packet corresponding to the service order sent to a second blockchain node corresponding to the subarea chain corresponding to the service order and the service order data hash value;
after the sending the data packet corresponding to the service order to the second blockchain node, the method further includes:
carrying out signature verification and integrity verification on a service order data hash value in a data packet corresponding to the service order through the second blockchain node corresponding to the service order;
and under the condition that the signature verification and the integrity verification are both passed, storing the data packet corresponding to the service order in the upper chain of the sub-block chain.
2. The method of claim 1, wherein the sub-blockchain includes at least one of a first sub-blockchain corresponding to a logistics transportation and regulatory agency, a second sub-blockchain corresponding to a financial regulatory agency, and a third sub-blockchain corresponding to a logistic warehouse regulatory agency.
3. A cross-chain logistics business management method applied to a second blockchain node corresponding to a subarea block chain corresponding to a business mechanism associated with a business order management mechanism in logistics business, the method comprising the steps of:
receiving an information inquiry request sent by a first block chain node corresponding to a source block chain; the information inquiry request is determined based on the information inquiry input of the target object to the service order; the business mechanism corresponding to the source block chain is the business order management mechanism;
generating first metadata corresponding to the information inquiry request sent by the first block chain link point, and sending inquiry feedback information to the first block chain link point;
performing uplink certification on the first metadata;
the first metadata is determined by:
determining a query result corresponding to the information query request based on an intelligent contract;
calculating a hash value of the query result to obtain a hash value of the query result;
and determining the first metadata based on the query result hash value and a timestamp corresponding to the information query request sent to the second block link point.
4. A cross-chain logistics business management apparatus, comprising:
The first sending module is used for sending an information inquiry request to a second block chain node corresponding to the sub-block chain; the information inquiry request is determined based on the information inquiry input of the target object to the service order; the service mechanism corresponding to the sub-blockchain is associated with the service order management mechanism of the source blockchain in the logistics service;
the first receiving module is used for receiving feedback information sent by the second block chain node;
the device also comprises a distribution module, a data signing module and a data signing module, wherein the distribution module is used for packing data required by the sub-block chain corresponding to the service order and extracting service order data hash values from the data required by the sub-block chain under the condition of determining the service order to sign, so as to generate a data packet corresponding to the service order after digital signature; generating second metadata of a data packet corresponding to the service order sent to the second blockchain node corresponding to the service order;
storing the second metadata in a uplink manner, and sending a data packet corresponding to the service order to the second blockchain node;
determining a second blockchain node corresponding to the sub-blockchain corresponding to the service order based on the intelligent contract corresponding to the source blockchain;
Determining the second metadata based on a timestamp of a data packet corresponding to the service order sent to a second blockchain node corresponding to the subarea chain corresponding to the service order and the service order data hash value;
carrying out signature verification and integrity verification on a service order data hash value in a data packet corresponding to the service order through the second blockchain node corresponding to the service order;
and under the condition that the signature verification and the integrity verification are both passed, storing the data packet corresponding to the service order in the upper chain of the sub-block chain.
5. A cross-chain logistics business management apparatus, comprising:
the second receiving module is used for receiving an information inquiry request sent by a first block chain node corresponding to the source block chain; the information inquiry request is determined based on the information inquiry input of the target object to the service order; the business mechanism corresponding to the source block chain is the business order management mechanism;
the first processing module is used for generating first metadata corresponding to the information inquiry request sent by the first block chain link, and sending inquiry feedback information to the first block chain link;
The second processing module is used for carrying out uplink certification on the first metadata;
the first processing module is further configured to:
determining a query result corresponding to the information query request based on an intelligent contract;
calculating a hash value of the query result to obtain a hash value of the query result;
and determining the first metadata based on the query result hash value and a timestamp corresponding to the information query request sent to the second block link.
6. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of cross-chain logistics service management of claim 1 or 2 when executing the program, or the processor implements the method of cross-chain logistics service management of claim 3 when executing the program.
CN202310015548.2A 2023-01-06 2023-01-06 Cross-chain logistics service management method and device and electronic equipment Active CN115759893B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310015548.2A CN115759893B (en) 2023-01-06 2023-01-06 Cross-chain logistics service management method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310015548.2A CN115759893B (en) 2023-01-06 2023-01-06 Cross-chain logistics service management method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN115759893A CN115759893A (en) 2023-03-07
CN115759893B true CN115759893B (en) 2023-05-12

Family

ID=85348260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310015548.2A Active CN115759893B (en) 2023-01-06 2023-01-06 Cross-chain logistics service management method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN115759893B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115439249A (en) * 2022-09-01 2022-12-06 国网区块链科技(北京)有限公司 Cross-block-chain business service implementation method, device and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309711A (en) * 2020-03-13 2020-06-19 财付通支付科技有限公司 Cross-block-chain data migration method, device, equipment and storage medium
CN111769957B (en) * 2020-09-02 2020-12-15 百度在线网络技术(北京)有限公司 Block chain cross-chain query method, device, equipment and storage medium
CN113157733A (en) * 2021-03-23 2021-07-23 华中科技大学 Efficient tracing query method for multi-chain data relevance
CN114254374B (en) * 2022-03-01 2022-07-01 北京市农林科学院信息技术研究中心 Data tracing method and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115439249A (en) * 2022-09-01 2022-12-06 国网区块链科技(北京)有限公司 Cross-block-chain business service implementation method, device and system

Also Published As

Publication number Publication date
CN115759893A (en) 2023-03-07

Similar Documents

Publication Publication Date Title
CN107274139B (en) Bill data management method and computer-readable medium
CN108846010B (en) Method, system, computer system and storage medium for tracing product source in network
CN107193490B (en) Distributed data storage system and method based on block chain
CN107508812B (en) Industrial control network data storage method, calling method and system
CN106982203B (en) Robust ATM network system based on block chain technology and information processing method thereof
CN111899016B (en) Quality data processing method and device based on block chain
CN108200208B (en) Logistics block chain consensus algorithm based on cloud computing
WO2019161774A1 (en) Methods, application server, block chain node and media for logistics tracking and source tracing
EP3709568A1 (en) Deleting user data from a blockchain
CN110458709B (en) Resource transfer information transmission method and device, storage medium and electronic device
CN110493268B (en) Data processing method, device and equipment based on block chain network and storage medium
CN109543459A (en) A kind of data deposit card method and apparatus
CN110598456A (en) Data storage method and device, electronic equipment and storage medium
CN112307458A (en) Light node uplink method and device, Internet of things central control terminal and block chain network
CN110689348A (en) Income verification method, device, terminal and medium based on alliance chain
CN112269829B (en) Block chain data management method based on resource recovery system platform
US20240097879A1 (en) Blockchain-based data management of distributed binary objects
CN110909381A (en) Block chain-based user comment tamper-proof system and method
CN111459935B (en) Internet of things data storage method, storage system, query method and storage medium
CN113922996A (en) Electronic subject file privacy protection method based on block chain crossing technology
CN115705601A (en) Data processing method and device, computer equipment and storage medium
CN115759893B (en) Cross-chain logistics service management method and device and electronic equipment
CN117749344A (en) Power data cross-domain supervision method, system and storage medium based on blockchain
CN116596551A (en) Supply chain product tracing method based on block chain, storage medium and electronic equipment
CN111489252B (en) Deposit certification opening method and device based on alliance 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
GR01 Patent grant
GR01 Patent grant