CN115759893A - Cross-chain logistics business management method and device and electronic equipment - Google Patents

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

Info

Publication number
CN115759893A
CN115759893A CN202310015548.2A CN202310015548A CN115759893A CN 115759893 A CN115759893 A CN 115759893A CN 202310015548 A CN202310015548 A CN 202310015548A CN 115759893 A CN115759893 A CN 115759893A
Authority
CN
China
Prior art keywords
block chain
chain
sub
logistics
service
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.)
Granted
Application number
CN202310015548.2A
Other languages
Chinese (zh)
Other versions
CN115759893B (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 cross-chain logistics business management method, a device and electronic equipment, belonging to the technical field of logistics, wherein the method comprises the following steps: sending an information query request to a second block chain node corresponding to the sub-block chain; and receiving query feedback information sent by a second blockchain node corresponding to the sub-blockchain. According to the cross-chain logistics service management method, the transmission and information query request is actively initiated to the sub-block chains through the source block chain, cross-chain information interaction of the source block chain is achieved, the sub-block chains are not required to continuously send event information to the source block chain in a passive polling mode, data are only sent under the condition that the source chain has the information transmission requirement to the corresponding sub-chain, and network burden and transmission cost in the cross-chain transmission process are reduced.

Description

Cross-chain logistics business 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-chain logistics service, and an electronic device.
Background
In recent years, the demand for freshness of fresh agricultural products has driven the expansion of the market trading scale of Fresh Cold Chain Logistics (FCCL), but the development of FCCL has faced many problems. The traditional FCCL nodes generally adopt a paper contract form for transaction, and the signature and sealing process of the paper contract is complex and lacks timeliness. Particularly, frequent remote transactions between FCCL nodes often occur, the mailing cost is high, the safety is low, the management cost is high, and the problem that the lookup is difficult is also prominent. In the field of FCCL cold chain supervision, more traditional cold chains are supervised by using a wireless sensor and a centralized system, more traditional cold chains are still oriented to nodes, a plurality of defects exist in a traditional supervision mode, enterprises often select a centralized platform to carry out self supervision, and data safety is difficult to guarantee.
In the field of blockchain application, a single-chain or multi-chain operation mode is often adopted in traditional blockchain application, and due to the openness of a blockchain and the characteristics of a distributed account book, the single-chain mode causes poor data isolation and the improvement of storage pressure. The multi-chain mode often adopts a cross-chain method to perform mutual operation, but most of the traditional cross-chain modes acquire data based on a passive polling mode, and a target sub-chain needs to continuously perform query information requests on a source chain until data corresponding to the source chain is acquired, so that high operation cost is brought to the target sub-chain, network load is increased, and waste of inter-chain network communication resources is caused. Therefore, how to reduce the network burden and transmission cost in the process of cross-link transmission is an urgent problem to be solved.
Disclosure of Invention
The invention provides a cross-chain logistics service management method, a cross-chain logistics service management device and electronic equipment, which are used for solving the defect that a target sub-chain needs to continuously perform information query requests on a source chain to acquire information in cross-chain transmission and achieving the effect that the source chain automatically sends the information to the sub-chain 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 query request to a second block chain node corresponding to the sub-block chain; the information query request is determined based on the information query input of the target object to the business 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;
and receiving the query feedback information sent by the second block chain node.
According to the cross-chain logistics service management method provided by the invention, before the sending of the information query request to the second block link point corresponding to the sub-block chain, the method further comprises:
under the condition that the sign of a service order is determined, packing data required by the sub-block chain corresponding to the service order, extracting a service order data hash value from the data required by the sub-block chain, and generating a data packet corresponding to the service order after digital signature; generating second metadata for sending a data packet corresponding to the service order to the second block link point corresponding to the service order;
and storing the second metadata uplink, and sending a data packet corresponding to the service order to the second block link point.
According to the cross-chain logistics service management method provided by the invention, the second metadata is determined in the following way:
determining a second block chain node corresponding to the sub-block chain corresponding to the service order based on the intelligent contract corresponding to the source block chain;
and determining the second metadata based on the timestamp of sending the data packet corresponding to the service order to the second block link corresponding to the sub-block chain corresponding to the service order and the hash value of the service order data.
In some embodiments, after the sending the data packet corresponding to the service order to the second block link point, the method further includes:
performing signature verification and integrity verification on the service order data hash value in the data packet corresponding to the service order through the second block link point corresponding to the service order;
and under the condition that the signature verification and the integrity verification are passed, storing the data packet corresponding to the service order in the sub-block chain in a chain way.
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 organization, a second sub-block chain corresponding to a financial management organization and a third sub-block chain corresponding to a logistics warehouse management organization.
The invention also provides a cross-chain logistics service management method, which is applied to a second blockchain node corresponding to a sub-blockchain corresponding to a business mechanism associated with a business order management mechanism in logistics services, and comprises the following steps:
receiving an information query request sent by a first block chain node corresponding to a source block chain; the information query request is determined based on the information query input of the target object to the business order; the service mechanism corresponding to the source block chain is the service order management mechanism;
generating and receiving first metadata corresponding to the information query request sent by the first block link node, and sending query feedback information to the first block link node;
and performing uplink storage on the first metadata.
According to the cross-chain logistics business management method provided by the invention, the first metadata is determined in the following way:
determining a query result corresponding to the information query request based on the 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 an information query request sent to the second block node.
The invention also provides a cross-chain logistics service management device, which comprises:
the first sending module is used for sending an information query request to a second block chain node corresponding to the sub-block chain; the information query request is determined based on the information query input of the target object to the business 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;
and the first receiving module is used for receiving the query feedback information sent by the second blockchain node.
The invention also provides a cross-chain logistics business management device, which comprises:
the second receiving module is used for receiving an information query request sent by a first block chain node corresponding to the source block chain; the information query request is determined based on the information query input of the target object to the business order; the service mechanism corresponding to the source block chain is the service order management mechanism;
the first processing module is used for generating first metadata corresponding to the received information query request sent by the first block link node and sending query feedback information to the first block link node;
and the second processing module is used for performing uplink storage and certification on the first metadata.
The invention further 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 when the processor executes the program, the cross-chain logistics service management method is realized.
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 cross-chain logistics traffic management method as described in any of the above.
The present invention also provides a computer program product, including a computer program, when executed by a processor, the computer program implements the cross-chain logistics service management method as described in any one of the above.
According to the cross-chain logistics service management method, the device and the electronic equipment, the transmission and information query request is actively initiated to the sub-block chain through the source block chain, 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 to the source chain under the condition that 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 technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a cross-chain logistics business management method provided by the present invention;
FIG. 2 is a block chain business architecture framework diagram provided by the present invention;
FIG. 3 is a second schematic flowchart of the cross-chain logistics business management method provided by the present invention;
FIG. 4 is a schematic structural diagram of a cross-chain logistics business management device provided by the present invention;
FIG. 5 is a second schematic structural diagram of a cross-chain logistics business management device provided by the present invention;
fig. 6 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make 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 obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
The cross-chain logistics business management method, device and electronic equipment of the present invention are described below with reference to fig. 1 to 6.
The cross-chain logistics business management method provided by the embodiment of the invention can be applied to the block chain link point corresponding to the source block chain corresponding to the business order management mechanism. The block link point corresponding to the source block chain corresponding to the service order management mechanism may be a server or a processor, and may be disposed in a virtual network device or a physical network device. The nodes corresponding to different blockchains may be disposed on different servers.
The block chain is a chain composed of a plurality of blocks. Each block holds certain information, which are linked in a chain according to a respective generated time sequence. This chain is maintained in all servers, and as long as one server can work in the entire system, the entire blockchain is secure. In this case, the servers act as blockchain nodes in the blockchain system, which provide storage space and computational support for the entire blockchain system.
If the information in the block chain is to be modified, more than a certain number of nodes must be agreed and the information in all the nodes must be modified, and the nodes are usually held in different subjects, so that the information in the block chain is extremely difficult to tamper with. Compared with the traditional network, the block chain has two core characteristics: firstly, data is difficult to tamper, and secondly, centralization is carried out.
On this basis, the blockchain becomes a novel application mode of computer technologies including distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like, and is essentially a decentralized database. The block chain can be composed of a plurality of series transaction records (also called blocks) which are connected in series by cryptography and protect the contents, and the distributed accounts connected in series by the block chain can effectively record the transaction by multiple parties and permanently check the transaction.
The cross-chain logistics service management method provided by the embodiment of the invention is based on a block chain technology, is applied to a block chain node corresponding to a source block chain corresponding to a service order management mechanism, and can simultaneously perform cross-chain operation on a plurality of sub-block chains based on the source block chain.
In some embodiments, the sub-block chain includes at least one of a first sub-block chain corresponding to a logistics transportation and supervision organization, a second sub-block chain corresponding to a financial management organization, and a third sub-block chain corresponding to a logistics warehouse management organization, so that an effect that a source chain automatically sends information to a sub-chain in a cross-chain operation to reduce network load is achieved.
It can be understood that in the field of logistics management, especially in the field of cold-chain logistics management, the source block chain corresponding to the business order management authority, the first sub-block chain corresponding to the logistics transportation and supervision authority, the second sub-block chain corresponding to the financial management authority, and the third sub-block chain corresponding to the logistics warehouse management authority may be included.
As shown in fig. 1, the method for managing logistics service across chains in the embodiment of the present invention mainly includes step 110 and step 120.
Step 110, sending an information query request to the block chain nodes corresponding to the sub-block chains.
It will be appreciated that the information query request is determined based on the information query input to the business order by the target object. And 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 business order management mechanism can correspond to the source block chain, the logistics transportation and supervision mechanism can correspond to the first sub-block chain, the financial management mechanism can correspond to the second sub-block chain, and the logistics warehouse management mechanism can correspond to the third sub-block chain.
The target object can be a person of a business order management organization, and the target object can inquire and manage signing information, logistics transportation and supervision information, financial information and logistics warehouse information of a business order.
The order information may include time of order, party, specific logistics transportation item, transportation time, and transportation contract of the business order, and the like. The logistics transportation and supervision information can comprise the selection of logistics parties, logistics modes, logistics paths, logistics process supervision contents and the like. The financial information may include revenue, expenditure, deductions, and rewards for each of the transactions of the order. The logistics warehouse information may include information regarding the warehouse storage of items to be shipped in various links.
The target object can realize the information inquiry input of the service order through the terminal equipment or other equipment.
Various information types of the business orders to be inquired by the target object are not limited, and the input mode of the information inquiry request is not limited.
In this embodiment, the information query request is sent to each other module corresponding to the logistics service through the source block chain corresponding to the service order management mechanism, and the source block chain can directly initiate information transfer to each sub-block chain.
And step 120, receiving the query feedback information sent by the second blockchain node.
It can be understood that after receiving the query request sent by the first block chain node corresponding to the source block chain, the second block chain node corresponding to the sub-block chain can send query feedback information to the first block chain node corresponding to the source block chain 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-chunk chain may implement its respective function based on the corresponding intelligent contract.
For example, the functions of data collection, data judgment, early warning processing, event transmission, event reception, tracing verification and the like can be realized by the second block link point corresponding to the first block chain corresponding to the logistics transportation and supervision mechanism, and the functions of each block chain are not limited herein.
In this embodiment, the sub-block chain may generate first metadata corresponding to the first block link node sending the information query request, and send query feedback information to the first block link node, where the first metadata is used to indicate that the source block chain has performed information query on the sub-block chain.
It should be noted that the metadata can effectively help technicians and service personnel to understand, supervise and manage information such as data sources, conversion rules, data change management and the like for descriptive information of data flow direction and information resources in the cross-link operation, thereby improving the working efficiency.
In this embodiment, by determining the first metadata, the information query request of the source block chain can be conveniently recorded, and the first metadata is actively used for performing uplink certificate storage on the sub-block chain, so that the certificate storage of the data is realized.
According to the cross-chain logistics service management method provided by the embodiment of the invention, the transmission and information query request is actively initiated to the sub-block chain through the source block chain, so that 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, and data is only sent to the source chain under the condition that the source chain has the information transmission requirement to the corresponding sub-chain, so that 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.
In the embodiment of the present invention, as shown in fig. 2, an active multiplexing method can help one source block chain to simultaneously call multiple different service sub-chains, and multiple different sub-chains can simultaneously initiate call-back to a main chain, which is different from a traditional passive event monitoring method based on polling, thereby greatly reducing communication cost.
The block chain link points of the sub-block chain can generate a section of data packet to be sent, namely query feedback information, according to the query result hash value and the time stamp encrypted by the private key, and the digital signature of the data packet is the content encrypted by the private key.
And calculating the abstract of the data packet by using the hash algorithm with the same encryption process at the block chain node of the source block chain for receiving the query feedback information, encrypting the abstract by using the public key of the second block chain node of the sub-block chain, decrypting the digital signature, and comparing the two to realize signature verification.
In the embodiment, the query result is encrypted, so that the safety in the data transmission process can be ensured, the first metadata comprises the hash value of the query result, the timestamp for sending the information query request to the second block link node by the source block chain is also included, all information of the cross-chain operation can be recorded, and the tracing and the auditing of the whole-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 block link point of a first sub-block chain corresponding to the logistics transportation and supervision authority according to an intelligent contract of the source block chain.
The intelligent contract corresponding to the first block link point of the first sub-block chain can regularly send a supervision request to the temperature sensor equipment in the cold-chain logistics transport vehicle, and the temperature sensor equipment collects environmental data after receiving the request, uploads the temperature data to the block chain platform through the node corresponding to the data collection function, and stores the temperature data in the first sub-block chain.
The data judgment corresponding to the block link point in the first sub-block chain compares the collected data with a corresponding reasonable temperature threshold set by the system. And if the result is in a reasonable range, signing the processed data and the node corresponding to the result through traceability verification, transmitting the signed data and the node corresponding to the data uplink into a file system, and performing hash value uplink on the data to realize the traceability of the data.
If the result is not within the reasonable range of values, the data is linked up by extracting the hash value after the batch of products is marked as temperature anomaly while the file system stores the data. And finally, the node corresponding to the early warning processing can early warn the relevant processing node through an early warning function to inform the relevant processing node to process the data abnormity.
After the processing, the first sub-block chain may send the processing result to a source block chain corresponding to the business order management organization for filing, and the source block chain synchronizes the related data to a second sub-block chain corresponding to the financial management organization, so that the second sub-block chain performs related operations according to the corresponding intelligent contract.
According to the early warning condition, the second sub-block chain can deduct the guarantee fund of the specified quantity of the corresponding responsible nodes according to the intelligent contract, wherein each time of chain crossing operation can generate a signature and a related data block for chain linking, and the source tracing and the auditing of the full-chain nodes are guaranteed.
In some embodiments, before sending the information query request to the second block link node corresponding to the sub-block chain, the method for managing logistics services across chains in an embodiment of the present invention further includes: and under the condition of determining the sign of the service order, packaging the data required by the sub-block chain corresponding to the service order, extracting the hash value of the service order data from the data required by the sub-block chain corresponding to the service order, and generating a data packet corresponding to the service order after digital signature.
It can be understood that for each uplink service order, the service order will be placed in the source block chain.
Of course, the source blockchain initializes the address and key information of each node of the organization in a cross-chain environment prior to order sign-in. Then, after the order service is signed and linked, the order management chain node distributes contracts to each sub-chain and stores the invoked metadata.
In this case, second metadata for transmitting a data packet corresponding to the service order to the second block link point corresponding to the service order is generated.
The data packet corresponding to the service order can be signing information, logistics transportation and supervision information, financial information, logistics warehouse information and the like of the service order.
After each sub-block link receives the data packet corresponding to the service order, each piece of information can be updated according to the respective corresponding intelligent contract.
And the second metadata is used for indicating that the block link point corresponding to the source block chain sends the data packet corresponding to the service order to the second block link point corresponding to the service order.
In some embodiments, the second metadata may be determined in the following manner.
It is to be understood that the second blockchain node corresponding to the service order may be determined based on the intelligent contract corresponding to the source blockchain, that is, the second blockchain node of the subblockchain corresponding to the service order is determined from a plurality of nodes of the plurality of subblockchains.
In this case, the second metadata is determined based on the timestamp of sending the data packet corresponding to the service order to the second block link point corresponding to the service order and the hash value of the service order data. The service order data hash value may be set at the end of the data packet.
It is to be 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 for sending data from the source block chain to the sub-block chain and a hash value of the service order data, so that accuracy, security, and traceability of a data packet corresponding to the service order are ensured.
In this case, the second metadata uplink is stored, and the data packet corresponding to the service order is sent to the second block link point.
In this embodiment, the source blockchain actively sends a data packet to each subchain, so that automatic sending of relevant data required by the subchain is realized, a request of the subchain is also not required, and the success of calling is confirmed by using a callback function after the subchain receives information and successfully verifies the information.
In some embodiments, after sending the data packet corresponding to the service order to the second block link point corresponding to the service order, the method for managing logistics services across chains according to the embodiments of the present invention further includes verifying the received data.
In this embodiment, the second block link point corresponding to the service order may perform signature verification and integrity verification on the hash value of the service order data in the data packet corresponding to the service order.
And calculating the abstract of the data packet by using a Hash algorithm with the same encryption process at the block chain link points of the source block chain, encrypting the abstract by using the public key of the second block chain link point through the client corresponding to the second block chain link point, decrypting the digital signature, and comparing the two to realize signature verification.
Under the condition, the integrity verification is continuously carried out on the service order data hash value, and under the condition that the signature verification and the integrity verification pass, the data packet corresponding to the service order is stored in an uplink manner, so that the integrity and the safety of the data received by the sub-chain 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 performance of the data by utilizing a hash mechanism and a signature mechanism, and other verification nodes verify the correctness of the hash value through corresponding organization node request source block chain nodes.
Meanwhile, the one-to-many cross-link communication model reduces the storage pressure, solves the problem that the traditional single-machine multi-link operation memory occupies, and performs business data classification management.
After the data packet is uplinked, if the other sub-blockchain nodes want to perform verification of authenticity or operation, the other sub-blockchain nodes can perform cross-chain verification with the corresponding source blockchain node.
In the cross-link logistics service management method of the embodiment of the invention, an active multiplex cross-link calling method service model is adopted, a block link cross-link technology and a joint verification mode are utilized to ensure the isolation, supervision decentralized, safety and non-tamper property of block link data, and a multiplex method is utilized to improve the efficiency of inter-link interaction and the utilization rate of a network.
As shown in fig. 3, an embodiment of the present invention further provides a cross-chain logistics business management method, which mainly includes step 310, step 320, and step 330.
In this embodiment, the cross-chain logistics business management method is applied to a second block chain node corresponding to a sub-block chain corresponding to a business organization associated with a business order management organization in a logistics business, for example, the second block chain node may be a first sub-block chain corresponding to a logistics transportation and supervision organization, a second sub-block chain corresponding to a financial management organization, a second block chain corresponding to a logistics warehouse management organization, and the like.
Step 310, receiving an information query request sent by a first block chain node corresponding to a source block chain.
It can be understood that the information query request is determined based on the information query input of the target object to the service order, and the service mechanism corresponding to the source block chain is a service order management mechanism.
In this embodiment, the information query request is sent to each other module corresponding to the logistics service through the source block chain corresponding to the service order management mechanism, and information transfer can be directly initiated from the source block chain to each sub-block chain.
Step 320, generating the first metadata corresponding to the first block link node sending information query request, and sending query feedback information to the first block link node.
It can be understood that after receiving the query request sent by the first block chain node corresponding to the source block chain, the second block chain node corresponding to the sub-block chain can send query feedback information to the first block chain node corresponding to the source block chain 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 performed an information query to the child blockchain.
It should be noted that the metadata can effectively help technicians and service personnel to understand, supervise and manage information such as data sources, conversion rules, data change management and the like for descriptive information of data flow direction and information resources in the cross-link operation, thereby improving the working efficiency.
Step 330, performing uplink storage 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 blockchain, so as to serve as a credential.
In the embodiment, by generating the first metadata, the information query request of the source block chain can be conveniently recorded, and the first metadata is stored in the sub-block chain, so that the storage is left while the callback of the data is realized.
According to the cross-chain logistics service management method provided by the embodiment of the invention, the transmission and information query request is actively initiated to the sub-block chain through the source block chain, so that 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, and data is only sent to the source chain under the condition that the source chain has the information transmission requirement to the corresponding sub-chain, so that 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.
In some embodiments, generating the first metadata includes the following processes.
In this embodiment, the query result corresponding to the information query request may be determined by the intelligent contract corresponding to the sub-chunk chain, and then the hash value of the query result is calculated 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 query result hash value. The query result hash value may be encrypted by the private key of the node.
On the basis, the first metadata can be determined based on the hash value of the query result and the 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 addresses of the nodes corresponding to the data sender and the data receiver.
The block chain link points of the sub-block chain can generate a section of data packet to be sent, namely query feedback information, according to the query result hash value and the time stamp encrypted by the private key, and the digital signature of the data packet is the content encrypted by the private key.
And calculating the abstract of the data packet by using the hash algorithm with the same encryption process at the block chain node of the source block chain for receiving the query feedback information, encrypting the abstract by using the public key of the second block chain node of the sub-block chain, decrypting the digital signature, and comparing the two to realize signature verification.
In the embodiment, the query result is encrypted, so that the safety in the data transmission process can be ensured, the first metadata comprises the hash value of the query result, the timestamp for sending the information query request to the second block link node by the source block chain is also included, all information of the cross-chain operation can be recorded, and the tracing and the auditing of the whole-chain node are ensured.
The cross-chain logistics service management device provided by the invention is described below, and the cross-chain logistics service management device described below and the cross-chain logistics service management method described above can be referred to correspondingly.
As shown in fig. 4, the cross-chain logistics service management apparatus of the embodiment of the 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 block link point corresponding to the sub-block chain; the information query request is determined based on the information query input of the target object to the business order; the business mechanism corresponding to the sub-block chain is associated with the business order management mechanism of the source block chain in the logistics business;
the first receiving module 420 is configured to receive query feedback information sent by the second blockchain node.
According to the cross-chain logistics service management device provided by the embodiment of the invention, the cross-chain information interaction of the source block chain is realized by actively initiating the transmission and information query requests to the sub-block chains through the source block chain, the sub-block chains are not required to continuously send event information to the source block chain in a passive polling mode, and data are only sent to the source chain under the condition that the source chain has the information transmission requirement to the corresponding sub-chain, so that 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.
In some embodiments, the cross-chain logistics service management apparatus in the embodiments of the present invention further includes a distribution module, where the distribution module is configured to, in a case that the service order is determined to be signed, package data required by the sub-block chain corresponding to the service order, extract a hash value of the service order data for the data required by the sub-block chain corresponding to the service order, and generate a data packet corresponding to the service order; generating second metadata for sending the data packet corresponding to the service order to a second block link point corresponding to the service order; and storing the uplink of the second metadata, and sending a data packet corresponding to the service order to the link point of the second block.
In some embodiments, the distribution module is further configured to determine, based on the intelligent contract corresponding to the source block chain, a block link point corresponding to a sub-block chain corresponding to the service order; and determining second metadata based on the timestamp of the data packet corresponding to the service order sent to the link point of the second block corresponding to the sub-block chain corresponding to the service order and the hash value of the data of the service order.
In some embodiments, the distribution module is further configured to perform signature verification and integrity verification on a service order data hash value in a 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 pass, the data packet corresponding to the service order is stored in an uplink mode.
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 block link point 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 sub-block chain in a chain way.
In some embodiments, the sub-blockchain includes at least one of a first sub-blockchain corresponding to a regulatory agency, a second sub-blockchain corresponding to a financial management agency, and a third sub-blockchain corresponding to a logistics warehouse management agency.
As shown in fig. 5, an embodiment of the present invention further provides a cross-chain logistics business 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 query request is determined based on the information query input of the target object to the business order; the service mechanism corresponding to the source module chain is a service order management mechanism;
the first processing module 520 is configured to generate first metadata corresponding to the first block link node sending information query request, and send query feedback information to the first block link node;
the second processing module 530 is configured to perform uplink crediting on the first metadata.
According to the cross-chain logistics service management device provided by the embodiment of the invention, the transmission and information query request is actively initiated to the sub-block chain through the source block chain, so that 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, and data is only sent to the source chain under the condition that the source chain has the information transmission requirement to the corresponding sub-chain, so that 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.
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 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 hash value of the query result and the timestamp corresponding to the information query request sent to the second block link point.
Fig. 6 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 6: a processor (processor) 610, a communication Interface (Communications Interface) 620, a memory (memory) 630 and a communication bus 640, wherein the processor 610, the communication Interface 620 and the memory 630 communicate with each other via the communication bus 640. The processor 610 may invoke logic instructions in the memory 630 to perform a cross-chain logistics traffic management method comprising: sending an information query request to a second block chain node corresponding to the sub-block chain; the information query request is determined based on the information query input of the target object to the business order; the business mechanism corresponding to the sub-block chain is associated with the business order management mechanism of the source block chain in the logistics business; receiving query feedback information sent by a second block chain node; alternatively, the method further comprises: receiving an information query request sent by a first block chain node corresponding to a source block chain; the information query request is determined based on the information query input of the target object to the business order; the service mechanism corresponding to the source block chain is a service order management mechanism; generating and receiving first metadata corresponding to the information query request sent by the first block link node, and sending query feedback information to the first block link node; and performing uplink storage on the first metadata.
In addition, the logic instructions in the memory 630 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. 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 instructions for causing 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: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
In another aspect, the present invention further provides a computer program product, where the computer program product includes a computer program, 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 cross-chain logistics business management method provided by the above methods, and the method includes: sending an information query request to a second block chain node corresponding to the sub-block chain; the information query request is determined based on the information query input of the target object to the business order; the business mechanism corresponding to the sub-block chain is associated with the business order management mechanism of the source block chain in the logistics business; receiving query feedback information sent by a second block chain node; alternatively, the method further comprises: receiving an information query request sent by a first block chain node corresponding to a source block chain; the information query request is determined based on the information query input of the target object to the business order; the service mechanism corresponding to the source block chain is a service order management mechanism; generating and receiving first metadata corresponding to the information query request sent by the first block link node, and sending query feedback information to the first block link node; and performing uplink storage on the first metadata.
In still another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to execute the cross-chain logistics business management method provided by the above methods, the method comprising: sending an information query request to a second block chain node corresponding to the sub-block chain; the information query request is determined based on the information query input of the target object to the business order; the business mechanism corresponding to the sub-block chain is associated with the business order management mechanism of the source block chain in the logistics business; receiving query feedback information sent by a second block chain node; alternatively, the method further comprises: receiving an information query request sent by a first block chain node corresponding to a source block chain; the information query request is determined based on the information query input of the target object to the business order; the service mechanism corresponding to the source block chain is a service order management mechanism; generating first metadata corresponding to the received information query request sent by the first block link node, and sending query feedback information to the first block link node; and performing uplink storage on the first metadata.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it should 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 cross-chain logistics business management method is applied to a first block chain node corresponding to a source block chain corresponding to a business order management mechanism, and is characterized by comprising the following steps:
sending an information query request to a second block chain node corresponding to the sub-block chain; the information query request is determined based on the information query input of the target object to the business order; the service mechanism corresponding to the sub-block chain is associated with the service order management mechanism of the source block chain in logistics service;
and receiving the query feedback information sent by the second block chain node.
2. The method for managing logistics traffic across chains according to claim 1, wherein before the sending the information query request to the second block link point corresponding to the sub-block chain, the method further comprises:
under the condition that a service order is signed, packaging data required by the sub-block chain corresponding to the service order, extracting a service order data hash value from the data required by the sub-block chain, and generating a data packet corresponding to the service order after digital signature; generating second metadata for sending the data packet corresponding to the service order to the second block link point corresponding to the service order;
and storing the second metadata uplink, and sending a data packet corresponding to the service order to the second block link point.
3. The method for managing logistics services across chains according to claim 2, wherein the second metadata is determined by:
determining a second block chain node corresponding to the sub-block chain corresponding to the service order based on the intelligent contract corresponding to the source block chain;
and determining the second metadata based on a timestamp of sending a data packet corresponding to the service order to a second block link corresponding to the sub-block chain corresponding to the service order and the hash value of the service order data.
4. The inter-chain logistics traffic management method of claim 2, wherein after the sending of the data packet corresponding to the traffic order to the second block link point, the method further comprises:
performing signature verification and integrity verification on the service order data hash value in the data packet corresponding to the service order through the second block link point 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 the sub-block chain in an uplink mode.
5. The cross-chain logistics business management method of any one of claims 1-4, wherein the sub-block chain comprises at least one of a first sub-block chain corresponding to a logistics transportation and supervision authority, a second sub-block chain corresponding to a financial authority, and a third sub-block chain corresponding to a logistics warehouse authority.
6. A cross-chain logistics service management method is applied to a second blockchain node corresponding to a sub-blockchain corresponding to a service mechanism associated with a service order management mechanism in logistics service, and is characterized in that the method comprises the following steps:
receiving an information query request sent by a first block chain node corresponding to a source block chain; the information query request is determined based on the information query input of the target object to the business order; the service mechanism corresponding to the source block chain is the service order management mechanism;
generating first metadata corresponding to the information query request sent by the first block link node, and sending query feedback information to the first block link node;
and performing uplink storage on the first metadata.
7. The method for managing logistics traffic of claim 6, wherein the first metadata is determined by:
determining a query result corresponding to the information query request based on the 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 node.
8. A cross-chain logistics service management device is characterized by comprising:
the first sending module is used for sending an information query request to a second block chain node corresponding to the sub-block chain; the information query request is determined based on the information query input of the target object to the business 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;
and the first receiving module is used for receiving the feedback information sent by the second blockchain node.
9. A cross-chain logistics business management device is characterized by comprising:
the second receiving module is used for receiving an information query request sent by a first block chain node corresponding to the source block chain; the information query request is determined based on the information query input of the target object to the business order; the service mechanism corresponding to the source block chain is the service order management mechanism;
the first processing module is used for generating first metadata corresponding to the received information query request sent by the first block link node and sending query feedback information to the first block link node;
and the second processing module is used for carrying out uplink storage on the first metadata.
10. 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 cross-chain logistics traffic management method according to any one of claims 1 to 5 when executing the program, or implements the cross-chain logistics traffic management method according to claim 6 or 7 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 true CN115759893A (en) 2023-03-07
CN115759893B 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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111769957A (en) * 2020-09-02 2020-10-13 百度在线网络技术(北京)有限公司 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
CN114254374A (en) * 2022-03-01 2022-03-29 北京市农林科学院信息技术研究中心 Data tracing method and system
US20220229577A1 (en) * 2020-03-13 2022-07-21 Tencent Technology (Shenzhen) Company Limited Cross-blockchain data migration
CN115439249A (en) * 2022-09-01 2022-12-06 国网区块链科技(北京)有限公司 Cross-block-chain business service implementation method, device and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220229577A1 (en) * 2020-03-13 2022-07-21 Tencent Technology (Shenzhen) Company Limited Cross-blockchain data migration
CN111769957A (en) * 2020-09-02 2020-10-13 百度在线网络技术(北京)有限公司 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
US20220309080A1 (en) * 2021-03-23 2022-09-29 Huazhong University Of Science And Technology Method for high-performance traceability query oriented to multi-chain data association
CN114254374A (en) * 2022-03-01 2022-03-29 北京市农林科学院信息技术研究中心 Data tracing method and system
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
CN115759893B (en) 2023-05-12

Similar Documents

Publication Publication Date Title
CN109034833B (en) Product tracing information management system and method based on block chain
CN110912937B (en) Block chain-based digital certificate storage platform and certificate storage method
CN108200208B (en) Logistics block chain consensus algorithm based on cloud computing
CN113157648A (en) Block chain based distributed data storage method, device, node and system
CN110598456B (en) Data storage method and device, electronic equipment and storage medium
CN111667368B (en) Anti-money laundering monitoring system and method
CN111899019A (en) Method and system for cross validation and sharing of blacklist and multiple parties
CN110689348B (en) Revenue verification method, device, terminal and medium based on alliance chain
CN113570479B (en) Block chain transmission method, system and storage medium for real estate transaction data
CN115701078B (en) Cross-chain transaction processing method, device, electronic equipment and storage medium
CN112269829B (en) Block chain data management method based on resource recovery system platform
CN112948488A (en) Industrial chain alliance service integration platform system based on block chain
CN115759893B (en) Cross-chain logistics service management method and device and electronic equipment
CN116596551A (en) Supply chain product tracing method based on block chain, storage medium and electronic equipment
CN111414417A (en) Video copyright management method based on block chain
CN111460489A (en) Client persistent storage method based on IPFS (Internet protocol file system) block chain
CN111953546B (en) Internet of things equipment management method based on block chain system and intelligent home system
CN115208630A (en) Block chain based data acquisition method and system and block chain system
CN113935874A (en) District chain-based book management system for studying income
CN114240349A (en) Ecological environment supervision method and system based on block chain
CN113792102A (en) Service processing method based on block chain, electronic device and storage medium
CN111274323A (en) Intelligent automatic monitoring method based on periodicity
Salehi Integration of blockchain technologie in case of systems engineering and software engineering in an industrial context
CN110704451A (en) Ownership registration and evidence-providing method and device based on block chain
CN114817249B (en) Transaction block verification method, device, equipment and storage medium

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