Electronic lading bill cross-chain approval method and device and computer readable storage medium

By verifying and locking the validity on cross-chain bridge contracts and custodial contracts, combining the approval process of cross-chain relay services and threshold signature mechanisms, the problem of electronic bill of lading assets protection in cross-chain transactions is solved, and the security and compliance of cross-chain transactions are achieved.

CN119831588APending Publication Date: 2025-04-15CHINA MERCHANTS FINANCE HLDG CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411726268.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

In the cross-chain processing process of electronic bill of lading services, due to the decentralized characteristics of blockchain technology, it is difficult for regulatory agencies to directly intervene in the cross-chain transaction process to implement effective regulatory approval, resulting in the fact that the electronic bill of lading assets on the original chain cannot be effectively protected during cross-chain.

Method used

Verify the validity of cross-chain requests through cross-chain bridge contracts, obtain the electronic bill of lading custody contract address, lock the electronic bill of lading, and use cross-chain relay services and threshold signature mechanisms to conduct signature confirmation and supervision approval to ensure the compliance and security of cross-chain transactions.

Benefits of technology

Effectively prevent electronic bills of lading from being illegally misappropriated and misused during cross-chain transactions, improve the security of cross-chain transactions, ensure compliance of cross-chain transactions, and improve the security of electronic bills of lading cross-chain process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119831588A_ABST
    Figure CN119831588A_ABST
Patent Text Reader

Abstract

The invention discloses an electronic lading bill cross-chain approval method and device and a computer readable storage medium, and relates to the technical field of data processing, and the electronic lading bill cross-chain approval method comprises the steps: carrying out the validity verification of a cross-chain request through a cross-chain bridge contract, and obtaining a corresponding electronic lading bill storage contract address; locking the electronic lading bill corresponding to the cross-chain request through a supervision contract according to the electronic lading bill storage contract address; performing signature confirmation on the cross-chain request through at least one cross-chain relay service according to a preset relay threshold in the cross-chain bridge contract; and based on a threshold signature mechanism, supervising and approving the cross-chain request after signature confirmation according to the request type through a supervising and approving service. The electronic lading bill is effectively prevented from being illegally misused and misused during the cross-chain transaction, the safety of the cross-chain transaction process is improved, the cross-chain request is strictly examined, and the safety of the cross-chain process of the electronic lading bill is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a cross-chain approval method, device and computer-readable storage medium for electronic bills of lading. Background Art

[0002] In the cross-chain processing flow of the electronic bill of lading business, due to the decentralized nature of blockchain technology, that is, data and information are distributedly stored on multiple nodes, there is a lack of a centralized control center, and a comprehensive regulatory framework for cross-chain transaction activities has not yet been established. It is difficult for regulators to directly intervene in the cross-chain transaction process to implement effective regulatory approval, resulting in the electronic bill of lading assets on the original chain not being effectively protected during cross-chain operations.

[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The main purpose of this application is to provide a cross-chain approval method, device and computer-readable storage medium for electronic bills of lading, aiming to solve the technical problem of how to improve the security of electronic bills of lading in cross-chain processes.

[0005] To achieve the above objectives, the present application proposes a cross-chain approval method for electronic bills of lading, which includes: Verify the validity of the cross-chain request through the cross-chain bridge contract and obtain the corresponding electronic bill of lading depository contract address; According to the electronic bill of lading depository contract address, the electronic bill of lading corresponding to the cross-chain request is locked through the supervision contract; According to the relay threshold preset in the cross-chain bridge contract, the cross-chain request is signed and confirmed by at least one cross-chain relay service; Based on the threshold signature mechanism, the cross-chain request after signature confirmation is subject to regulatory approval by the regulatory approval service according to the request type.

[0006] In one embodiment, the step of verifying the validity of the cross-chain request through the cross-chain bridge contract and obtaining the corresponding electronic bill of lading depository contract address includes: Calling the regulatory contract through the cross-chain bridge contract to verify the format and signature of the cross-chain request to confirm the validity of the cross-chain request; According to the electronic bill of lading information corresponding to the verified cross-chain request, the electronic bill of lading custody contract address is obtained.

[0007] In one embodiment, the step of locking the electronic bill of lading corresponding to the cross-chain request through a supervision contract according to the electronic bill of lading depository contract address includes: The electronic bill of lading depository contract address is used as a parameter, and the asset processor corresponding to the cross-chain request is called through the regulatory contract; The electronic bill of lading is locked into the electronic bill of lading depository contract by the asset processor.

[0008] In one embodiment, after the step of locking the electronic bill of lading corresponding to the cross-chain request through the supervision contract according to the electronic bill of lading depository contract address, the following steps are included: Querying the status of the electronic bill of lading depository contract to determine the locking status of the electronic bill of lading; The electronic bill of lading information corresponding to the cross-chain request is compared and verified with the electronic bill of lading information recorded in the electronic bill of lading depository contract to determine the integrity of the electronic bill of lading.

[0009] In one embodiment, the step of signing and confirming the cross-chain request through at least one cross-chain relay service according to the relay threshold preset in the cross-chain bridge contract includes: Receiving a signature from at least one cross-chain relay service confirming the cross-chain request; According to the relay threshold, checking the number of the received signatures; If the number of signatures reaches the relay threshold, the result of signature confirmation on the cross-chain request is valid.

[0010] In one embodiment, the step of conducting regulatory approval on the cross-chain request after signature confirmation according to the request type through the regulatory approval service based on the threshold signature mechanism includes: According to the result of the signature confirmation of the cross-chain request, obtain the cross-chain request to be approved; Determining, through the regulatory approval service, whether the request type of the cross-chain request meets the preset request type based on the information in the cross-chain request; If the preset request type is met, the cross-chain request is directly approved and the approval result is determined to be passed; If the preset request type is not met, the cross-chain request is approved based on the threshold signature mechanism, and the approval result is determined.

[0011] In one embodiment, if the preset request type is not met, the step of approving the cross-chain request based on the threshold signature mechanism and determining the approval result includes: Approving the cross-chain request through at least one approval authority to determine approval signature information; Based on the threshold signature mechanism, if the number of the approval agencies that agree with the approval signature information reaches the threshold signature threshold, the approval result is determined to be passed.

[0012] In one embodiment, after the step of conducting regulatory approval on the cross-chain request after signature confirmation according to the request type through the regulatory approval service based on the threshold signature mechanism, the following steps are included: Send the cross-chain request with the regulatory approval result as passed to the cross-chain bridge contract of the target chain, and obtain the electronic bill of lading depository contract address of the electronic bill of lading corresponding to the cross-chain request through the cross-chain bridge contract; According to the electronic bill of lading depository contract address, the electronic bill of lading is released from the electronic bill of lading depository contract through an asset processor.

[0013] In addition, to achieve the above-mentioned purpose, the present application also proposes a cross-chain approval device for electronic bills of lading, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the cross-chain approval method for electronic bills of lading as described above.

[0014] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the cross-chain approval method for electronic bills of lading as described above are implemented.

[0015] The present application provides a cross-chain approval method for an electronic bill of lading. The present application first verifies the validity of the cross-chain request to prevent the occurrence of illegal requests, and locks the electronic bill of lading through the electronic bill of lading custody contract, which can effectively prevent the electronic bill of lading from being illegally misappropriated and misused during the cross-chain transaction, thereby improving the security of the cross-chain transaction process. The cross-chain request is strictly reviewed through signature confirmation of the cross-chain request by multiple cross-chain relay services, and a regulatory approval process based on a threshold signature mechanism, thereby ensuring the compliance of the cross-chain transaction and improving the security of the cross-chain process of the electronic bill of lading. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0018] Figure 1 A flowchart diagram of the first embodiment of the cross-chain approval method for electronic bills of lading of this application; Figure 2A flow chart of the second embodiment of the cross-chain approval method for electronic bill of lading of this application; Figure 3 A flow chart of the third embodiment of the cross-chain approval method for electronic bill of lading of this application; Figure 4 A flowchart diagram of the fourth embodiment of the cross-chain approval method for electronic bills of lading of this application; Figure 5 This is a schematic diagram of the overall process involved in the cross-chain approval method for electronic bills of lading in the embodiment of this application; Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the cross-chain approval method for electronic bills of lading in an embodiment of the present application.

[0019] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0020] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0021] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0022] The main solutions of the embodiments of this application are: At present, in the cross-chain processing flow of electronic bills of lading business, due to the decentralized characteristics of blockchain technology, that is, data and information are distributedly stored on multiple nodes, there is a lack of a centralized control center, and a comprehensive regulatory framework for cross-chain transaction activities has not yet been established. It is difficult for regulators to directly intervene in the cross-chain transaction process to implement effective regulatory approval, resulting in the electronic bill of lading assets on the original chain not being effectively protected during cross-chain.

[0023] This application verifies the validity of cross-chain requests, prevents the occurrence of illegal requests, and locks the electronic bill of lading through the electronic bill of lading custody contract. It can effectively prevent the illegal misappropriation and misuse of electronic bills of lading during cross-chain transactions, thereby improving the security of the cross-chain transaction process. Through signature confirmation of cross-chain requests by multiple cross-chain relay services and a regulatory approval process based on a threshold signature mechanism, cross-chain requests are strictly reviewed to ensure the compliance of cross-chain transactions, thereby improving the security of the cross-chain process of electronic bills of lading.

[0024] It should be noted that the execution subject of this embodiment can be an electronic bill of lading cross-chain approval device, or a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a control device for electronic bill of lading cross-chain approval that can realize the above functions, etc. This embodiment does not specifically limit this. The following takes the electronic bill of lading cross-chain approval device as an example of the execution subject to illustrate this embodiment and the following embodiments.

[0025] Embodiment 1 Based on this, this application proposes a cross-chain approval method for electronic bills of lading in the first embodiment, please refer to Figure 1 , the electronic bill of lading cross-chain approval method includes: Step S100, verify the validity of the cross-chain request through the cross-chain bridge contract, and obtain the corresponding electronic bill of lading custody contract address.

[0026] In this embodiment, the cross-chain request refers to the transfer request of the electronic bill of lading initiated between different blockchain systems. The electronic bill of lading is an electronic cargo transportation certificate constructed using blockchain technology. It records the entire cargo transportation information in the form of electronic data, covering all transportation details from the origin to the destination, including cargo type, quantity, related party information, transportation terms, etc., and is real-time and efficient, and is applicable to multiple modes of transportation such as sea, air, and rail transportation.

[0027] In this embodiment, the cross-chain bridge contract is a smart contract. As the submission entry for cross-chain transactions, the cross-chain bridge contract is responsible for managing the cross-chain relay identity, permissions and multi-signature threshold, recording the submission information of cross-chain operations, and managing the status changes of transactions. At the same time, the cross-chain bridge contract is connected to the supervision contract to ensure the controllability of cross-chain transactions, including obtaining the electronic bill of lading depository contract address through the supervision contract when submitting tasks on the original chain, calling the asset processor to complete the fund lock, and calling the supervision contract to confirm the execution after the relay confirms the validity of the transaction on the target chain. The supervision contract is deployed and managed by the regulatory agency, responsible for managing the cross-chain transactions to be approved, automatically or manually approving according to the transaction type, and managing the deployment, binding and permission allocation of the asset custody contract. The electronic bill of lading custody contract is used to deposit the electronic bill of lading pledged in the cross-chain process to ensure the security of assets. It is deployed and managed by the supervision contract, and the inflow and outflow of funds are operated by the bill of lading pledge and release interface functions of the cross-chain bridge contract and the electronic bill of lading custody administrator. In addition, the asset processor contract and asset depository contract also play an important role in this system, responsible for handling operations such as asset transfer, locking and unlocking in cross-chain transactions, as well as storing and managing assets in the cross-chain process. The on-chain cross-chain contract set consists of the above-mentioned cross-chain transaction-related contracts deployed on each blockchain. Through the collaborative work of multiple contracts, efficient, secure and controllable execution of cross-chain transactions can be achieved.

[0028] Optionally, step S100 includes: Step S110, calling the supervision contract through the cross-chain bridge contract to verify the format and signature of the cross-chain request to confirm the validity of the cross-chain request.

[0029] Exemplarily, the cross-chain bridge contract receives the user's cross-chain request sent by the electronic bill of lading service front end, calls the regulatory contract to check the format of the cross-chain request, verifies the signature of the request and returns the verification result to the cross-chain bridge contract. If the cross-chain request is verified to be valid, the cross-chain bridge contract will continue to process the request; if the verification fails, the cross-chain bridge contract will reject the request.

[0030] Step S120, obtaining the electronic bill of lading depository contract address according to the electronic bill of lading information corresponding to the verified cross-chain request.

[0031] Exemplarily, after receiving the verification result returned by the regulatory contract, the cross-chain bridge contract parses the electronic bill of lading information contained in the cross-chain request. Based on the electronic bill of lading information, the cross-chain bridge contract searches the blockchain for the electronic bill of lading custody contract address associated with the electronic bill of lading.

[0032] Step S200: According to the electronic bill of lading custody contract address, the electronic bill of lading corresponding to the cross-chain request is locked through the supervision contract.

[0033] The electronic bill of lading is locked according to the electronic bill of lading custody contract address through the supervision contract to prevent duplicate transactions or tampering during the cross-chain process, thereby ensuring the security of the electronic bill of lading during cross-chain transmission.

[0034] In this embodiment, the electronic bill of lading is locked on the blockchain, and the asset manager is called through the regulatory contract to put the electronic bill of lading in an unchangeable state until the cross-chain transaction is completed.

[0035] Exemplarily, the regulatory contract takes the electronic bill of lading custody contract address as one of the parameters and calls the asset processor. After receiving the parameters, the asset processor executes the fund locking operation to lock the specified amount of funds into the electronic bill of lading custody contract. After the funds are locked, the regulatory contract is called through the cross-chain bridge contract to check the status of the electronic bill of lading custody contract to confirm whether the corresponding electronic bill of lading has been locked. If the bill of lading has been locked, the regulatory contract returns a confirmation message to the cross-chain bridge contract. After receiving the confirmation message from the regulatory contract, the cross-chain bridge contract sends an event message indicating that the task has been successfully submitted.

[0036] Optionally, step S200 includes: Step S210, taking the electronic bill of lading depository contract address as a parameter, calling the asset processor corresponding to the cross-chain request through the supervision contract.

[0037] In this embodiment, the asset processor is a program deployed on the blockchain for processing asset-related operations. The asset processor is responsible for locking the electronic bill of lading into the electronic bill of lading custody contract in cross-chain transactions.

[0038] Step S220: Lock the electronic bill of lading into the electronic bill of lading depository contract through the asset processor.

[0039] Exemplarily, the asset processor writes the data of the electronic bill of lading into the storage structure of the electronic bill of lading depository contract, updates the status of the electronic bill of lading depository contract to reflect the locking status of the electronic bill of lading, and returns the result of the locking operation to the supervision contract.

[0040] Step S300: According to the relay threshold preset in the cross-chain bridge contract, the cross-chain request is signed and confirmed by at least one cross-chain relay service.

[0041] During cross-chain transactions, the relay threshold preset in the cross-chain bridge contract is used to confirm the signatures of multiple cross-chain relay services to form a certain fault-tolerant mechanism and improve the security of cross-chain transactions.

[0042] In this embodiment, the relay threshold is a parameter preset in the cross-chain bridge contract, indicating how many signature confirmations of the cross-chain relay service are required for the cross-chain request to be considered valid. Signature confirmation is the cross-chain relay service digitally signing the cross-chain request to prove that it has verified and approved the authenticity of the request.

[0043] Optionally, the cross-chain bridge contract sets different relay thresholds according to the type of cross-chain transaction request. For large asset transfers and / or sensitive information transmissions, a higher threshold is set to ensure security; for small transactions and / or ordinary information transmissions, a lower threshold is set to speed up transactions. The relay threshold is dynamically adjusted according to the operation status of the blockchain and the reliability of the relay node. When the blockchain has security issues and / or the relay node fails, the relay threshold is increased to ensure the security of the transaction; when the blockchain is running stably and the relay node is reliable, the relay threshold is lowered to speed up transactions.

[0044] As an optional implementation method, the cross-chain bridge contract distributes the cross-chain request to multiple cross-chain relay services. Each received cross-chain relay service verifies the cross-chain request. If the verification passes, the cross-chain relay service digitally signs the cross-chain request. The cross-chain bridge contract collects signature confirmations from the cross-chain relay services and checks whether the preset relay threshold has been reached.

[0045] Optionally, step S300 includes: Step S310: Receive a signature from at least one cross-chain relay service confirming the cross-chain request.

[0046] As an optional implementation method, the cross-chain bridge contract in the original chain sends the cross-chain request to the target chain, and simultaneously sends confirmation request instructions to multiple cross-chain relay services. After receiving the cross-chain request, the cross-chain relay service digitally signs the cross-chain request and returns the signature to the regulatory contract of the target chain.

[0047] For example, if 5 cross-chain relays are configured in the cross-chain bridge contract and the threshold is 4, then 5 cross-chain relay services can be started in a distributed manner. Each service has its own independent relayer identity (i.e., its own address and private key), and each independently votes for the monitored cross-chain transfer messages. Assuming that votes for the cross-chain transaction from any 4 or more of the 5 relays are received on the target chain, the cross-chain transaction can be executed on the target chain.

[0048] Step S320: Check the number of the received signatures according to the relay threshold.

[0049] Step S330: If the number of signatures reaches the relay threshold, the result of signature confirmation on the cross-chain request is valid.

[0050] Step S400: Based on the threshold signature mechanism, the cross-chain request after signature confirmation is subject to regulatory approval by the regulatory approval service according to the request type.

[0051] In this embodiment, the threshold signature mechanism is a distributed signature scheme in which multiple regulatory agencies jointly participate in the approval signature process. Only when the number of participating signatures reaches a preset threshold value, the signature is considered valid.

[0052] Optionally, multiple regulators register their identities in the regulatory approval contract to form a threshold signature group. A threshold value is set in the threshold signature group to indicate how many signatures are required to confirm the validity of the cross-chain request.

[0053] As an optional implementation method, the cross-chain request that has been signed and confirmed by the cross-chain relay service to reach the relay threshold is submitted to the regulatory approval contract. The regulatory approval contract sends the cross-chain request to all regulatory agencies in the threshold signature group for approval. Each regulatory agency will independently complete the approval of the cross-chain request and submit its own approval results to the regulatory approval contract. The regulatory approval contract will automatically calculate whether the approval is completed based on the threshold of the current threshold signature group.

[0054] Exemplarily, the threshold value of the threshold signature group is set to mn, that is, n of the m approval agencies are required to complete the approval. If at least n regulatory agencies have completed the approval and given an approval result, the entire approval process is considered valid and the cross-chain request will be approved.

[0055] This embodiment provides a cross-chain approval method for an electronic bill of lading. This embodiment first verifies the validity of the cross-chain request to prevent the occurrence of illegal requests, and locks the electronic bill of lading through the electronic bill of lading depository contract, which can effectively prevent the electronic bill of lading from being illegally misappropriated and misused during the cross-chain transaction, thereby improving the security of the cross-chain transaction process. The signature confirmation of the cross-chain request through multiple cross-chain relay services and the regulatory approval process based on the threshold signature mechanism strictly review the cross-chain request to ensure the compliance of the cross-chain transaction, thereby improving the security of the cross-chain process of the electronic bill of lading.

[0056] Based on Example 1, Example 2 of this application proposes a cross-chain approval method for electronic bills of lading, referring to Figure 2 , after step S200, including: Step S500, querying the status of the electronic bill of lading depository contract to determine the locking status of the electronic bill of lading.

[0057] During cross-chain transactions, by querying the status of the electronic bill of lading custody contract, it can be confirmed whether the electronic bill of lading has been correctly locked, thereby preventing it from being illegally tampered with or reused during the transaction, thereby ensuring the security and integrity of the electronic bill of lading.

[0058] In this embodiment, the electronic bill of lading locking status refers to the status of the electronic bill of lading in the electronic bill of lading depository contract, including locked and unlocked states. The locked state means that the electronic bill of lading has been occupied by a transaction and cannot be used for other transactions; the unlocked state means that the electronic bill of lading can be used for new transactions.

[0059] Exemplarily, a blockchain client or API interface is used to send a query request to the electronic bill of lading depository contract, and the request includes the electronic bill of lading depository address of the electronic bill of lading to be queried.

[0060] For example, a query function is written in the electronic bill of lading depository contract, which accepts the electronic bill of lading depository address as a parameter and returns the lock status of the electronic bill of lading. The current lock status of the electronic bill of lading can be obtained by calling the function.

[0061] Step S600, compare and verify the electronic bill of lading information corresponding to the cross-chain request with the electronic bill of lading information recorded in the electronic bill of lading depository contract to determine the integrity of the electronic bill of lading.

[0062] By comparing and verifying the electronic bill of lading information in the cross-chain request with the information recorded in the electronic bill of lading custody contract, it can be ensured that the electronic bill of lading has not been damaged or tampered with during the cross-chain transmission process, thus maintaining its integrity.

[0063] Exemplarily, the electronic bill of lading information is extracted from the cross-chain request, and the corresponding electronic bill of lading information recorded in the electronic bill of lading depository contract is queried according to the electronic bill of lading depository address. The electronic bill of lading information extracted from the cross-chain request is compared with the information queried from the electronic bill of lading depository contract item by item. If all information fields are consistent, it is confirmed that the electronic bill of lading information remains intact during the cross-chain transmission process; if any inconsistency is found, the cross-chain request transaction is stopped and a warning message is submitted.

[0064] This embodiment provides a cross-chain approval method for an electronic bill of lading. This embodiment first queries the status of the electronic bill of lading custody contract to understand the locking status of the electronic bill of lading in real time. When the electronic bill of lading is in a locked state, it can effectively prevent it from being reused for other transactions. By comparing and verifying the electronic bill of lading information in the cross-chain request with the information recorded in the custody contract, the consistency of the two can be ensured, which helps prevent the data from being tampered with or damaged during transmission, thereby ensuring the authenticity of the data.

[0065] Based on Example 1, Example 3 of this application proposes a cross-chain approval method for electronic bills of lading, referring to Figure 3 , step S400 includes: Step S410: Obtain the cross-chain request to be approved according to the result of the signature confirmation of the cross-chain request.

[0066] Exemplarily, based on the results of the signature confirmation of the cross-chain relay service, the regulatory approval service captures the cross-chain request with the signature confirmation submitted to the regulatory contract for further approval.

[0067] Step S420: The regulatory approval service determines whether the request type of the cross-chain request meets the preset request type based on the information in the cross-chain request.

[0068] The regulatory approval service is used to judge the type of cross-chain requests to determine whether the request meets the preset request types in the system that are considered safe or compliant. This helps to quickly distinguish between low-risk requests and high-risk requests, so that corresponding approval measures can be taken.

[0069] In this embodiment, the request type is a specific category of cross-chain requests, and different request types have different risk levels, approval processes, and processing methods. The preset request type is a request type that is pre-defined in the system and is considered to meet security or compliance requirements.

[0070] Exemplarily, key information such as the request type, the asset type involved, the identities of the sender and the receiver are extracted from the cross-chain request and compared with the request type preset in the system. Based on the comparison results, the regulatory approval service determines whether the request type of the cross-chain request meets the preset request type.

[0071] Step S430: If the preset request type is met, the cross-chain request is directly approved and the approval result is determined to be passed.

[0072] For example, if the cross-chain request meets the preset request type, the regulatory approval service will directly regard it as a low-risk request and automatically complete the approval of the request without further manual approval process, and determine the approval result as passed.

[0073] Step S440: If the preset request type is not met, the cross-chain request is approved based on the threshold signature mechanism, and the approval result is determined.

[0074] Optionally, step S440 includes: Step S441: at least one approval authority approves the cross-chain request and determines approval signature information.

[0075] Exemplarily, a cross-chain request that does not meet a preset request type is sent to at least one approval authority for approval. Each approval authority reviews the request and generates approval signature information.

[0076] Step S442: Based on the threshold signature mechanism, if the number of the approval agencies that agree with the approval signature information reaches the threshold signature threshold, the approval result is determined to be passed.

[0077] Exemplarily, the regulatory approval service collects the approval signature information of all approval agencies, and based on the threshold signature mechanism, determines whether the number of approval agencies that agree reaches the threshold signature threshold. If the threshold signature threshold is reached, the approval result is determined to be passed. If the threshold signature threshold is not reached, the approval result is determined to be failed, and the cross-chain request is rejected.

[0078] This embodiment provides a cross-chain approval method for electronic bills of lading. This embodiment first uses the approval process of preset request types and threshold signature mechanisms. For low-risk requests that meet the preset request types, the approval can be automatically completed without human intervention, thereby shortening the approval time and improving the overall approval efficiency. For high-risk requests that do not meet the preset request types, the threshold signature mechanism is used for approval, and multiple approval agencies jointly participate in the approval to ensure the accuracy and security of the approval.

[0079] Based on Example 1, Example 4 of this application proposes a cross-chain approval method for electronic bills of lading, referring to Figure 4 , after step S400, including: Step S700: Send the cross-chain request with the regulatory approval result as passed to the cross-chain bridge contract of the target chain, and obtain the electronic bill of lading depository contract address of the electronic bill of lading corresponding to the cross-chain request through the cross-chain bridge contract.

[0080] Exemplarily, when the cross-chain request is approved, the request is sent to the cross-chain bridge contract of the target chain. Based on the information in the request, the cross-chain bridge contract associates the hash value or unique identifier of the electronic bill of lading with the electronic bill of lading custody contract address on the target chain.

[0081] Step S800: according to the electronic bill of lading depository contract address, the electronic bill of lading is released from the electronic bill of lading depository contract through the asset processor.

[0082] Exemplarily, the asset processor queries the electronic bill of lading depository contract on the target chain based on the electronic bill of lading hash value or unique identifier provided by the cross-chain bridge contract and the electronic bill of lading depository contract address. The asset processor executes a release instruction to release the electronic bill of lading from the electronic bill of lading depository contract and returns the result to the cross-chain bridge contract to complete the cross-chain request transaction.

[0083] This embodiment provides a cross-chain approval method for electronic bills of lading. This embodiment first sends the approved cross-chain request to the cross-chain bridge contract of the target chain, obtains the electronic bill of lading custody contract address through the cross-chain bridge contract, and then releases the electronic bill of lading according to the address. During the cross-chain transaction process, the security of the electronic bill of lading is ensured and the efficiency of cross-chain transactions is improved.

[0084] For example, to facilitate understanding of the implementation process of the electronic bill of lading cross-chain approval method obtained in the embodiment of the present application, please refer to Figure 5 , Figure 5 A brief flow chart of the cross-chain approval method for electronic bills of lading is provided, specifically: Shipping trade users initiate cross-chain requests through the electronic bill of lading service front-end. The request types include electronic bill of lading asset custody authorization and cross-chain transfer requests. Users fill in necessary cross-chain information such as target chain ID and target user address.

[0085] The electronic bill of lading service front end receives the information entered by the user and performs preliminary verification. After the verification is passed, the front end sends the cross-chain request information to the original chain for processing.

[0086] The original link receives the cross-chain request sent by the front-end, checks the integrity and validity of the request information, and calls the corresponding interface of the cross-chain bridge contract according to the request type. The cross-chain bridge contract records the submission information of the cross-chain transaction and issues a cross-chain task submission event.

[0087] The cross-chain relay service monitors the cross-chain events issued by the cross-chain bridge contracts on each chain, and checks the monitored cross-chain events. After the inspection and verification, the cross-chain relay service forwards the cross-chain transaction information to the cross-chain bridge contract of the target chain and votes. When the number of votes reaches the preset threshold, the cross-chain transaction continues to be executed on the target chain.

[0088] The regulatory approval service monitors the regulatory contracts on each chain, obtains cross-chain events that need to be approved, and determines the approval type based on the asset size, user identity and other information in the event to be approved. For events that require automatic approval, the regulatory approval service directly calls the regulatory contract to complete the approval operation. For events that require manual approval, the regulatory approval service puts the event into the approval queue and conducts approval by the regulatory agency through a threshold signature mechanism. After the approval is completed, the regulatory approval service submits the approval result to the regulatory contract in the target chain through a transaction.

[0089] When the cross-chain transaction is activated on the target chain, the cross-chain bridge contract checks the voting results of the relay service and the approval results of the regulatory approval service. If both the voting results and the approval results meet the requirements, the cross-chain bridge contract executes the cross-chain transaction and releases the electronic bill of lading to the corresponding target user. After the execution is completed, the cross-chain bridge contract updates the transaction status and issues a cross-chain task completion event.

[0090] The electronic bill of lading service front-end monitors the cross-chain task completion events issued by the cross-chain bridge contract, updates the front-end interface based on the event information, and displays the completion status of the cross-chain tasks.

[0091] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the cross-chain approval method for electronic bills of lading of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0092] The present application provides an electronic bill of lading cross-chain approval device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the electronic bill of lading cross-chain approval method in the above-mentioned embodiment one.

[0093] Reference below Figure 6, which shows a schematic diagram of the structure of the cross-chain approval device for electronic bills of lading suitable for implementing the embodiment of the present application. The cross-chain approval device for electronic bills of lading in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The electronic bill of lading cross-chain approval device shown is merely an example and should not bring any limitations to the functions and scope of use of the embodiments of the present application.

[0094] like Figure 6 As shown, the electronic bill of lading cross-chain approval device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM: Read Only Memory) 1002 or the program loaded from the storage device 1003 to the random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the electronic bill of lading cross-chain approval device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. The input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the electronic bill of lading cross-chain approval device to communicate wirelessly or wired with other devices to exchange data. Although the electronic bill of lading cross-chain approval device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.

[0095] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0096] The cross-chain approval device for electronic bills of lading provided by this application adopts the cross-chain approval method for electronic bills of lading in the above-mentioned embodiment, which can solve the technical problem of how to improve the security of electronic bills of lading in the cross-chain process. Compared with the prior art, the beneficial effects of the cross-chain approval device for electronic bills of lading provided by this application are the same as the beneficial effects of the cross-chain approval method for electronic bills of lading provided by the above-mentioned embodiment, and the other technical features in the cross-chain approval device for electronic bills of lading are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0097] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0098] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0099] The present application provides a computer-readable storage medium having computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the cross-chain approval method for electronic bills of lading in the above-mentioned embodiments.

[0100] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0101] The above-mentioned computer-readable storage medium may be included in the electronic bill of lading cross-chain approval device; or it may exist independently without being assembled into the electronic bill of lading cross-chain approval device.

[0102] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the electronic bill of lading cross-chain approval device, the electronic bill of lading cross-chain approval device can write computer program codes for performing the operations of the present application in one or more programming languages ​​or a combination thereof. The programming languages ​​include object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0103] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0104] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0105] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned electronic bill of lading cross-chain approval method, and can solve the technical problem of how to improve the security of electronic bills of lading in cross-chain processes. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the electronic bill of lading cross-chain approval method provided in the above-mentioned embodiment, and will not be repeated here.

[0106] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A cross-chain approval method for electronic bills of lading, characterized in that: The electronic bill of lading cross-chain approval method includes: Verify the validity of the cross-chain request through the cross-chain bridge contract and obtain the corresponding electronic bill of lading depository contract address; According to the electronic bill of lading depository contract address, the electronic bill of lading corresponding to the cross-chain request is locked through the supervision contract; According to the relay threshold preset in the cross-chain bridge contract, the cross-chain request is signed and confirmed by at least one cross-chain relay service; Based on the threshold signature mechanism, the cross-chain request after signature confirmation is subject to regulatory approval by the regulatory approval service according to the request type.

2. The cross-chain approval method for electronic bills of lading according to claim 1, characterized in that: The steps of verifying the validity of the cross-chain request through the cross-chain bridge contract and obtaining the corresponding electronic bill of lading depository contract address include: Calling the regulatory contract through the cross-chain bridge contract to verify the format and signature of the cross-chain request to confirm the validity of the cross-chain request; According to the electronic bill of lading information corresponding to the verified cross-chain request, the electronic bill of lading custody contract address is obtained.

3. The cross-chain approval method for electronic bill of lading according to claim 1, characterized in that: The step of locking the electronic bill of lading corresponding to the cross-chain request through a supervision contract according to the electronic bill of lading depository contract address comprises: The electronic bill of lading depository contract address is used as a parameter, and the asset processor corresponding to the cross-chain request is called through the regulatory contract; The electronic bill of lading is locked into the electronic bill of lading depository contract by the asset processor.

4. The cross-chain approval method for electronic bills of lading according to claim 1, characterized in that: After the step of locking the electronic bill of lading corresponding to the cross-chain request through the supervision contract according to the electronic bill of lading depository contract address, the method further comprises: Querying the status of the electronic bill of lading depository contract to determine the locking status of the electronic bill of lading; The electronic bill of lading information corresponding to the cross-chain request is compared and verified with the electronic bill of lading information recorded in the electronic bill of lading depository contract to determine the integrity of the electronic bill of lading.

5. The cross-chain approval method for electronic bills of lading according to claim 1, characterized in that: The step of signing and confirming the cross-chain request through at least one cross-chain relay service according to the relay threshold preset in the cross-chain bridge contract includes: Receiving a signature from at least one cross-chain relay service confirming the cross-chain request; According to the relay threshold, checking the number of the received signatures; If the number of signatures reaches the relay threshold, the result of signature confirmation on the cross-chain request is valid.

6. The cross-chain approval method for electronic bill of lading according to claim 1, characterized in that: The step of conducting regulatory approval on the cross-chain request after signature confirmation according to the request type through the regulatory approval service based on the threshold signature mechanism includes: According to the result of the signature confirmation of the cross-chain request, obtain the cross-chain request to be approved; Determining, through the regulatory approval service, whether the request type of the cross-chain request meets the preset request type based on the information in the cross-chain request; If the preset request type is met, the approval of the cross-chain request is directly completed, and the approval result is determined to be passed; If the preset request type is not met, the cross-chain request is approved based on the threshold signature mechanism, and the approval result is determined.

7. The electronic bill of lading cross-chain approval method according to claim 6, characterized in that: If the preset request type is not met, the step of approving the cross-chain request based on the threshold signature mechanism and determining the approval result includes: Approving the cross-chain request through at least one approval authority to determine approval signature information; Based on the threshold signature mechanism, if the number of the approval agencies that agree with the approval signature information reaches the threshold signature threshold, the approval result is determined to be passed.

8. The cross-chain approval method for electronic bill of lading according to claim 1, characterized in that: After the step of conducting regulatory approval on the cross-chain request after signature confirmation according to the request type through the regulatory approval service based on the threshold signature mechanism, it includes: Send the cross-chain request with the regulatory approval result as passed to the cross-chain bridge contract of the target chain, and obtain the electronic bill of lading depository contract address of the electronic bill of lading corresponding to the cross-chain request through the cross-chain bridge contract; According to the electronic bill of lading depository contract address, the electronic bill of lading is released from the electronic bill of lading depository contract through an asset processor.

9. An electronic bill of lading cross-chain approval device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the cross-chain approval method for electronic bills of lading as described in any one of claims 1 to 8.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the electronic bill of lading cross-chain approval method as described in any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Supervision method and device for transaction data in alliance chain, equipment and storage medium

    CN113360575A

  • Bidirectional cross-chain method, system and device for digital assets

    CN114172661A

  • Cross-chain transaction verification method and device, electronic equipment, system and storage medium

    CN114493862A

  • Relay cross-chain verification method and device, storage medium and electronic equipment

    CN115361141A

  • Information processing method and device based on multi-block chain, equipment and medium

    CN116708463A