A homogeneous permission chain interconnection method based on permission control

By introducing cross-chain communication proxy nodes and certificate management modules between isomorphic permission chains, the problem of isolation attributes and high permission requirements of the interconnection between permission chains is solved, efficient isomorphic information interaction and permission control are achieved, and satisfying diverse application scenarios needs.

CN112636920BActive Publication Date: 2024-09-24CHINA ZHESHANG BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011455348.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-10
Publication Date
2024-09-24
Estimated Expiration
2040-12-10

AI Technical Summary

Technical Problem

Due to the isolation properties and high permission requirements between permissioned chains, it is difficult to achieve efficient isomorphic permissioned chain interconnection with existing technology, which limits the further development and application scenarios of blockchain.

Method used

Adopt a homogeneous permission chain interconnection method based on permission control, realize secure interconnection between chains through cross-chain communication proxy nodes and cross-chain certificate management modules, provide multi-chain registration, permission control and transaction consistency, and utilize cross-chain certificate management and permissions The module performs identity verification and transaction verification to ensure that the information is authentic, reliable and of equal value.

Benefits of technology

It achieves information authenticity, reliability, value equivalence, and transaction consistency during isomorphic information interaction, and achieves high-throughput permission control to meet the needs of more application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112636920B
    Figure CN112636920B
Patent Text Reader

Abstract

The present invention discloses a method for interconnecting homogeneous permission chains based on authority control, wherein the interconnected parties are homogeneous permission chains, and each permission chain has at least one cross-chain communication proxy node, and a cross-chain certificate management module and an authority control module are provided on the proxy node, wherein the cross-chain certificate management module is used to generate and manage relevant certificates, and the authority control module provides multi-chain registration and authority control functions, and registers according to the authority management requirements. If the registration is successful, the information is authenticated during communication, and the authorization authentication of other chains is required for access to other chains, so as to meet the isolation and protection of data. The present invention performs cross-chain operations of permission chains through cross-chain communication proxy nodes, and realizes the interconnection of homogeneous permission chains in combination with the design of cross-chain certificate management modules and authority control modules, which can meet the requirements of information authenticity, reliability, value equality, transaction consistency, etc. during homogeneous information interaction, and can realize authority control, high throughput, and meet more application scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a method for interconnecting homogeneous permission chains based on authority management and control. Background Art

[0002] A permission chain means that each node participating in the blockchain system is licensed, and unauthorized nodes cannot be connected to the system. The greatest value of blockchain is to realize the transmission of information value. As a permission chain, the participants are some organizations that have been authorized by permission. Even if the blockchain platform has the same architecture, due to the isolation properties between chains, data permissions, consensus and other reasons, the chains cannot communicate with each other to realize value exchange, which greatly limits the further development of blockchain. On the other hand, because it is a permission chain, the chain permissions, data permissions and contract permissions have higher requirements. General methods such as private data are far from meeting the actual needs. In terms of efficiency and throughput, single chains also have a big bottleneck, so a method for interconnecting homogeneous permission chains that can realize permission control is very necessary. The architecture of homogeneous permission chains is the same, which means that the consensus algorithm, account book, blockchain structure and communication interface adopted are consistent. The present invention designs and implements a method for interconnecting homogeneous permission chains based on permission control. The method can meet the requirements of information authenticity, value equality, transaction consistency and so on during homogeneous information interaction, and can realize permission control, high throughput, and meet more application scenarios. Summary of the invention

[0003] In response to the above requirements, the present invention proposes a homogeneous permission chain interconnection method for permission management.

[0004] The object of the present invention is achieved through the following technical solution: a method for interconnecting homogeneous permission chains based on authority control, comprising:

[0005] In the interconnected homogeneous permission chains of all parties, each permission chain has at least one cross-chain communication proxy node. Each proxy node can connect to any node in the permission chain. Each homogeneous permission chain interacts through network communication. A cross-chain certificate management module and a permission control module are provided on the proxy node, and cross-chain operations of the permission chain are performed through the proxy node.

[0006] The cross-chain certificate management module is used to generate and manage relevant CA certificates and digital certificates, including certificate issuance, public and private key generation, certificate checking and certificate revocation; when homogeneous permission chains communicate and interconnect, the cross-chain certificate management module issues certificates and public and private key pairs to the proxy nodes;

[0007] The permission management module provides multi-chain registration and permission management functions. When homogeneous permission chains communicate and interconnect, registration is performed according to the permission management requirements, and the other party conducts review. If the registration is successful, the communication information will be subject to permission verification during communication. Access to other chains requires authorization verification of other chains.

[0008] Furthermore, the functions of the cross-chain certificate management module are as follows:

[0009] a. Certificate issuance: Generate the root certificate root.ca and the root certificate private key root.priv through the cross-chain certificate management module; when communication is initiated between permission chains, identity information needs to be registered, and the root certificate root.ca of the destination chain issues the cross-chain certificate crosschain.cert and the cross-chain certificate private key crosschain.priv to the source chain;

[0010] b. Certificate check: The cross-chain certificate management module provides certificate check services, including whether the certificate is a cross-chain certificate issued by the root.ca certificate of the target chain proxy node and whether the summary signature is legal;

[0011] c. Certificate revocation: When the user's personal identity information changes, or the private key is lost, leaked, or suspected of being leaked, the certificate user can submit a certificate revocation request to the cross-chain certificate management module. The cross-chain certificate management module generates a certificate revocation list, which lists all digital certificates that are valid but revoked. During certificate verification, the certificate revocation list is used to check whether the certificate of the cross-chain transaction has been revoked.

[0012] Furthermore, in the permission management module, the registration information includes the source chain name, source chain hash address, destination chain name, destination chain hash address, chain access rights, contract access rights, contract method access rights, data field access rights, cross-chain certificate information, extension fields, etc., and flexible permission management is performed based on the registration information.

[0013] Furthermore, each isomorphic permission chain communicates and interacts through a cross-chain communication bus, and several cross-chain communication interfaces are defined on the bus; the main fields of the cross-chain communication message include: version, protocol version; SourceChainID, source chain address; DestChainID, destination chain address; CrosschainPayload, cross-chain transaction content; Timestamp, timestamp; Nonce, random; signature, proxy node signature; Cert, cross-chain transaction node certificate; Proof, existence verification information; OriginInfo, cross-chain transaction original transaction information; extra, user extension field; CrosschainPayload is serialized into a byte type through json, and when it is passed to the destination chain, the corresponding structure is parsed through json; the cross-chain communication interface is used for information interaction between permission chains, including: transaction sending interface, transaction receiving interface, transaction verification interface, registration link interface, update link interface, and deregistration link interface.

[0014] Furthermore, the interconnection process between homogeneous permission chains is as follows:

[0015] (1) Certificate issuance: The cross-chain certificate management module issues certificates and public-private key pairs to the cross-chain proxy node;

[0016] (2) Chain registration: The source chain registers cross-chain with the destination chain, which mainly includes the source chain's identity information, permission information, and verification rules. After successful registration, the destination chain's verification engine generates verification rules for the chain and stores the source chain's identity information and chain information in the destination chain's registry for persistent storage.

[0017] (3) Authority and verification rule management: Authority control of inter-chain communication is performed through registration information; verification rules are used to verify the existence and validity of cross-chain transactions. When permission chains communicate, the identity of the chain can be verified, and the verification rules of the corresponding chain can be matched to verify the existence and validity of the transaction;

[0018] (4) Checking stage: Check whether the source chain that generates the cross-chain transaction has been registered and whether it has relevant access rights;

[0019] (5) Verification phase: Use the source chain identity information of the transaction to match the verification rules in the registry of the destination chain, and then input the transaction permission information, verification information, verification rules, and cross-chain transactions into the verification engine for verification;

[0020] (6) Execution phase: After the cross-chain transaction is verified, the transaction is executed and the result is returned.

[0021] Furthermore, during the execution phase, the validity of transaction messages is ensured through asymmetric key signing and verification.

[0022] Furthermore, the proof of existence of cross-chain transactions is implemented by Merkle proof. The cross-chain transaction proof generated by the source chain is constructed into a Merkle tree structure. After the destination chain receives the cross-chain transaction proof sent by the source chain, the existence of the cross-chain transaction is verified by the Merkle proof method.

[0023] Furthermore, cross-chain transaction consistency is ensured through cross-chain transaction locking and transaction commit rollback, including:

[0024] The source chain permission chain initiates a cross-chain transaction to the destination chain permission chain through its proxy node; the proxy nodes of the source chain permission chain and the destination chain permission chain perform the following operations:

[0025] The proxy node of the source chain generates a cross-chain transaction proof and a cross-chain transaction summary signature, locks the transaction α, and initiates a cross-chain transaction request to the proxy node of the destination chain;

[0026] After receiving the cross-chain transaction request, the proxy node of the destination chain verifies the locked transaction α. ​​If the verification passes, the transaction β is locked, a transaction β lock certificate is generated, and the transaction β lock certificate is sent to the proxy node of the source chain.

[0027] The proxy node of the source chain receives and verifies the transaction β lock proof. If the verification is successful, a cross-chain transaction request is initiated to the destination chain. The cross-chain transaction request includes the cross-chain transaction proof and the cross-chain transaction summary signature.

[0028] The proxy node of the destination chain receives the cross-chain transaction request and verifies the cross-chain transaction proof and cross-chain transaction summary signature. If the verification passes, the transaction β is unlocked, the cross-chain transaction is submitted, and the cross-chain transaction certificate is returned to the proxy node of the source chain;

[0029] The proxy node of the source chain receives and verifies the cross-chain transaction certificate. If the verification is successful, transaction α is unlocked to achieve consistency between transaction α and transaction β.

[0030] During the verification process, the proxy node of the destination chain verifies whether transaction β is unlocked within the threshold time. If it is unlocked, the cross-chain transaction has been executed; otherwise, the cross-chain transaction is rolled back and transaction β is released; the proxy node of the source chain verifies whether transaction α is unlocked within the threshold time. If it is unlocked, the cross-chain transaction has been executed; otherwise, the cross-chain transaction is rolled back and transaction α is released;

[0031] Through transaction locking and interaction, it is ensured that transaction α and transaction β are unlocked at the same time or not unlocked at the same time.

[0032] Furthermore, transaction locking and rollback are as follows:

[0033] The source chain generates random content s, calculates the hash value H = Hash(s), and sends the hash value H of the random content s and the threshold time T0 to the destination chain;

[0034] The source chain locks transaction α with hash value H and threshold time T0;

[0035] The destination chain receives the hash value H of the random content s and locks the transaction β with the threshold time T1 and H, where T1 <T0;

[0036] The destination chain sends the transaction β lock proof and threshold time T1 to the source chain;

[0037] The source chain sends the original content s of H to the destination chain. If the destination chain receives s within the threshold time T1, the transaction β is unlocked and the source chain obtains the information locked by the transaction β. Otherwise, the transaction is rolled back.

[0038] The destination chain sends the original content s of H to the source chain. If the source chain receives s within the threshold time T0, the transaction α is unlocked and the destination chain obtains the information locked by transaction α. ​​Otherwise, the transaction is rolled back.

[0039] Furthermore, the cross-chain message delivery process includes:

[0040] The source chain permission chain sends a cross-chain message to its proxy node;

[0041] The proxy node of the source chain permission chain signs the cross-chain communication message and sends the cross-chain communication message to the proxy node of the destination chain permission chain;

[0042] The proxy node of the destination chain permission chain receives the cross-chain communication message and performs signature verification, identity verification, permission verification, and existence verification in sequence. After the verification is passed, the proxy node of the destination chain permission chain sends the cross-chain transaction to the destination chain permission chain;

[0043] The destination chain permission chain processes the cross-chain message and returns the processing result.

[0044] The beneficial effects of the present invention are as follows: the present invention performs cross-chain operations of the permission chain through a cross-chain communication proxy node, and realizes the interconnection of homogeneous permission chains in combination with the design of a cross-chain certificate management module and a permission control module, which can meet the requirements of information authenticity, reliability, value equality, transaction consistency, etc. during homogeneous information interaction, and can realize permission control and high throughput to meet more application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 It is a schematic diagram of the overall cross-chain architecture provided by an embodiment of the present invention;

[0046] Figure 2 It is a flow chart of issuing certificates and registering provided by an embodiment of the present invention;

[0047] Figure 3 This is a flowchart of implementing the permission control module provided by an embodiment of the present invention;

[0048] Figure 4 It is a flowchart of interconnection of homogeneous permission chains provided by an embodiment of the present invention;

[0049] Figure 5 is a Merkle tree structure diagram provided by an embodiment of the present invention;

[0050] Figure 6 It is a transaction locking and rollback flow chart provided by an embodiment of the present invention;

[0051] Figure 7 It is a message transmission flow chart provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0052] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0053] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0054] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0055] The present invention performs cross-chain operations of permission chains through a cross-chain communication agent node crossagent, and realizes the interconnection of homogeneous permission chains in combination with the design of a cross-chain certificate management module and a permission control module, which can meet the requirements of information authenticity, value equality, transaction consistency, etc. during homogeneous information interaction, and can realize permission control and high throughput to meet more application scenarios.

[0056] The overall architecture is as follows Figure 1 As shown. The interconnected parties are homogeneous permission chains, each permission chain has at least one cross-chain communication agent node crossagent, each crossagent can connect to any node in the permission chain, and each homogeneous permission chain communicates and interacts through the cross-chain communication bus Crosshub; a cross-chain certificate management module and a permission control module are set on the cross-chain communication agent node crossagent. The specific contents of each part are as follows:

[0057] 1. Cross-chain communication agent node crossagent

[0058] Crossagent is a proxy node for communication between homogeneous permission chains. It can connect to all nodes in the permission chain and provide a certain degree of fault tolerance. When homogeneous permission chains communicate and interconnect, the cross-chain certificate management module on the crossagent first issues a certificate, and then the permission control module registers it. The registration information includes the permissions of the current chain, smart contract permissions, contract method permissions, etc. Permission control can be flexibly performed based on the registration information; the certificate issuance and registration process is as follows: Figure 2 As shown. When a cross-chain transaction is initiated, after consensus is reached within the permission chain, the cross-chain message is transmitted to the crossagent of the destination chain through the sending interface of the crossagent, and then transmitted to the destination chain for related operations. The communication process uses TLS encryption to ensure the security of information transmission. The crossagent is responsible for the interconnection and communication of homogeneous permission chains, including chain registration, authority management, message signature, transaction routing, signature verification, transaction existence verification, and transaction consistency assurance.

[0059] 2. Cross-chain certificate management module certManage

[0060] certManage is mainly used to generate and manage related CA certificates and digital certificates, including certificate issuance, public and private key generation, certificate checking, certificate revocation and other functions. The details are as follows:

[0061] a. Certificate issuance: The crossagent node generates the root certificate root.ca and the root certificate private key root.priv through certManage. When communication is initiated between permission chains, identity information needs to be registered. First, the root certificate root.ca of the destination chain issues the cross-chain certificate crosschain.cert and the cross-chain certificate private key crosschain.priv to the source chain.

[0062] b. Certificate check: certManage provides certificate check service, including whether the certificate is a cross-chain certificate issued by the root.ca certificate of the target chain crossagent, whether the summary signature is legal, etc.

[0063] c. Certificate revocation: When the user's personal identity information changes, or the private key is lost, leaked, or suspected of being leaked, the certificate user can submit a certificate revocation request to CertManage, and certManage will generate a certificate revocation list, which lists all digital certificates that are valid but revoked. During certificate verification, the certificate revocation list will be used to check whether the certificate for cross-chain transactions has been revoked.

[0064] The permission chain needs to be authorized, so the data permission control on the chain is very important. The permission control of data access between permission chains in the present invention is mainly managed through the cross-chain certificate crosschain.cert.

[0065] 3. Permission Control Module

[0066] like Figure 3 As shown in the figure, the permission control module provides functions such as multi-chain registration and permission control. Specifically, when the permission chains need to communicate with each other, they need to issue cross-chain certificates to each other through the cross-chain certificate management module, and then register according to the permission management requirements, such as chain access rights, smart contract access rights, contract method rights, related field access rights, and data read and write rights, etc., and then the other party will review it. If the registration is successful, the communication information will be verified during communication. For access to other chains, authorization verification of other chains is required to meet the isolation and protection of data. When homogeneous permission chains are interconnected, on the one hand, they can meet the diversity of business scenarios, and on the other hand, they also greatly improve the processing efficiency and throughput of blockchain. In this way, the homogeneous permission chain interconnection method based on highly flexible permission control can better meet the actual application scenarios. Among them, the registration information mainly includes: source chain name, source chain hash address, destination chain name, destination chain hash address, chain access rights, contract access rights, contract method access rights, data field access rights, cross-chain certificate information, extension fields, etc.

[0067] The present invention designs the registration information CrossChainRegistInfo structure, and its structure is shown in the following table:

[0068]

[0069]

[0070] Permission is the permission management structure, which mainly includes:

[0071] ChainPermission Permission to access the destination chain ChaincodePermission Access to smart contracts ChaincodeFuncPermission Smart Contract Method Permissions DataPermission Access data field permissions Extra Reserve permissions for other content

[0072] 4. Cross-chain communication bus Crosshub

[0073] Crosshub is a cross-chain communication bus. Several cross-chain communication interfaces are defined on the bus for cross-chain network communication between blockchains. The main fields of cross-chain communication messages are as follows:

[0074]

[0075]

[0076] The cross-chain transaction content CrosschainPayload is serialized into byte type through json, and the corresponding structure is parsed through json when it is passed to the destination chain.

[0077] The cross-chain communication interface is used for information exchange between permissioned chains, mainly including:

[0078] The transaction sending interface SendTx is used for the source chain to send information to the destination chain;

[0079] The transaction receiving interface ReceiveTX is used by the destination chain to receive cross-chain transactions;

[0080] Transaction verification interface VerifyTX, used to verify transaction information;

[0081] Registration link RegistChain, used for identity registration;

[0082] UpdateChain interface, used to update chain identity information;

[0083] The deregistration link interface DeleteChain is used to deregister the chain identity information.

[0084] Based on the design of the above four parts, the key logical process of information transmission between homogeneous permission chains is as follows: Figure 4 As shown in the figure (all executed on the proxy node crossagent), the specific steps include:

[0085] (1) Certificate issuance

[0086] The cross-chain certificate management module issues certificates and public-private key pairs to the cross-chain proxy node. The specific issuance rules are as follows: Assuming that permission chain A and permission chain B communicate with each other, the root certificate of chain A issues a cross-chain certificate and a public-private key pair to chain B, and the root certificate of chain B issues a cross-chain certificate and a public-private key pair to chain A, and the certificate and the public-private key pair are deployed on the cross-chain communication proxy node crossagent. Then chain B can use the root certificate to verify the cross-chain certificate of the message sent by chain A, and chain A can also use the root certificate to verify the cross-chain certificate of the message sent by chain B; at the same time, the message digest signature will also be verified, thereby achieving cross-chain permission management and ensuring communication security.

[0087] (2) Chain Registration

[0088] The permission chain source chain will register with the destination chain across chains, mainly including the source chain's identity information, permission information, verification rules, etc. After successful registration, the verification engine module of the destination chain will generate verification rules for the chain, and then verify the legitimacy of cross-chain transactions according to this verification rule. The source chain's identity information and chain information are stored in the destination chain's registry for persistent storage. The verification engine of the destination chain crossagent will check the information registered by the source chain.

[0089] Crossagent supports chain update and deregistration operations. The overall process is similar to the registration process. After the update and deregistration information is checked and verified, the registry content will be updated.

[0090] (3) Permission and verification rule management

[0091] Permission management mainly controls the permissions of inter-chain communication through registration information, which is highly customizable and flexible.

[0092] Verification rules are used by the verification engine to verify the existence and validity of cross-chain transactions. When the source chain registers with the destination chain, the crossagent of the destination chain deploys and registers the corresponding verification rules, and records the identity information of the registered chain in the registry. When the permission chain communicates, it can verify the identity of the chain, and match the verification rules of the corresponding chain to verify the existence and validity of the transaction. After the verification is passed, the relevant transaction is executed.

[0093] (4) Inspection stage

[0094] The inspection of cross-chain transactions includes: whether the source chain that generates the cross-chain transaction has been registered, and whether it has relevant access rights (including chain access rights, smart contract access rights, contract method rights, relevant field access rights, and data read and write rights, etc.).

[0095] (5) Verification phase

[0096] The cross-chain transaction that passes the check enters the verification phase, which is executed by the verification engine. Through the source chain identity information of the transaction, the verification rules are matched in the registry of the destination chain, and then the transaction permission information, verification information (existence and validity), verification rules, and cross-chain transactions are input into the verification engine for verification. After the verification is passed, the transaction will enter the execution phase.

[0097] (6) Execution phase

[0098] After the cross-chain transaction is verified, it enters the execution phase. The execution phase designs methods for transaction validity, transaction existence proof, and transaction consistency assurance.

[0099] 6.1 Transaction Validity

[0100] The validity of transaction messages is guaranteed through asymmetric key signing and verification.

[0101] 6.2. Transaction Existence

[0102] In the present invention, the existence proof of cross-chain transactions is realized by Merkle proof. The cross-chain transaction proof generated by permission chain A is constructed into a Merkle tree structure. After permission chain B receives the cross-chain transaction proof sent by permission chain A, it verifies the existence of the cross-chain transaction through the Merkle proof method.

[0103] The structure of the Merkle tree is as follows Figure 5 As shown, each non-leaf node is labeled by the hash value of its child nodes, and the root node of the tree is called the Merkle root. Figure 5 The following is the Merkle tree structure of a block X. If you want to verify whether transaction Tx_D is in the block, you do not need to obtain the entire block. You only need to provide transaction Tx_D, H_AB, H_C and merkleroot. The specific process is as follows:

[0104] a. Calculate the hash based on transaction Tx_D to get H_D;

[0105] b. Calculate the hash based on H_C and H_D to get H_CD;

[0106] c. Calculate the hash based on H_AB and H_CD to get H_ABCD;

[0107] d. Compare H_ABCD and merkle root. If they are the same, it proves that transaction Tx_D exists in the block, otherwise it does not exist.

[0108] Communication between permissioned chains requires proof of existence, and verification information is required in the transaction information. The proof information refers to the initial hash value used in the verification process, namely H_AB, H_C, merkle root and Tx_D.

[0109] 6.3 Transaction Consistency

[0110] The blockchain ensures consistency between nodes through the consensus mechanism. For transactions within a single chain, the consensus algorithm can ensure that its status is certain and all transaction execution results are consistent in all clusters. However, in cross-chain interactions, on the one hand, the states between chains are not synchronized with each other. If the consensus protocols used within the chain are different, the consensus state within the node cannot be used as a sign of transaction submission. However, cross-chain interactions require the acquisition of transaction and status data between chains, so transaction guarantees in the cross-chain interaction process become a key point.

[0111] In order to ensure the consistency of cross-chain transactions, the present invention designs a cross-chain transaction lock solution. The cross-chain transaction interaction process is as follows:

[0112] a. Licensed chain A initiates a cross-chain transaction to licensed chain B through its proxy node;

[0113] b. Perform the following operations on the proxy node of permission chain A and the proxy node of permission chain B:

[0114] 1. The proxy node of permission chain A generates a cross-chain transaction certificate and a cross-chain transaction summary signature, locks transaction α, and initiates a cross-chain transaction request to the proxy node of permission chain B;

[0115] 2. After receiving the cross-chain transaction request, the proxy node of permission chain B verifies the locked transaction α. ​​If the verification passes, it locks the transaction β, generates a transaction β lock certificate, and sends the transaction β lock certificate to the proxy node of permission chain A;

[0116] 3. The proxy node of permission chain A receives and verifies the transaction β lock proof. If the verification is successful, it initiates a cross-chain transaction request to permission chain B. The cross-chain transaction request includes the cross-chain transaction proof and the cross-chain transaction summary signature;

[0117] 4. The proxy node of permission chain B receives the cross-chain transaction request and verifies the cross-chain transaction proof and cross-chain transaction summary signature. If the verification is successful, the transaction β is unlocked, the cross-chain transaction is submitted, and the cross-chain transaction certificate is returned to the proxy node of permission chain A;

[0118] 5. The proxy node of permission chain A receives and verifies the submitted cross-chain transaction certificate. If the verification passes, transaction α is unlocked to achieve consistent operations of transaction α and transaction β.

[0119] During the verification process:

[0120] The proxy node of permission chain B verifies whether transaction β is unlocked within the threshold time. If it is unlocked, the cross-chain transaction has been executed; otherwise, the cross-chain transaction is rolled back and transaction β is released.

[0121] The proxy node of permission chain A verifies whether transaction α is unlocked within the threshold time. If it is unlocked, the cross-chain transaction has been executed; otherwise, the cross-chain transaction is rolled back and transaction α is released.

[0122] Through transaction locking and interaction, it is ensured that transaction α and transaction β are unlocked at the same time or not unlocked at the same time.

[0123] In one embodiment, Figure 6 As shown in the figure, the specific process of transaction locking and rollback is as follows (all executed on the proxy node):

[0124] 1. Permission chain A generates random content s, calculates the hash value H = Hash(s), and sends the hash value H of the random content s and the threshold time T0 to permission chain B;

[0125] 2. Permission chain A locks transaction α with the hash value H and the threshold time T0. What α locks can be value asset information related to cross-chain interaction;

[0126] 3. Permission chain B receives the hash value H of the random content s, and locks transaction β with the threshold time T1 (T1 < T0) and H. What transaction β locks can be value asset information related to cross-chain interaction;

[0127] 4. Permission chain B sends the lock proof of transaction β and the threshold time T1 to permission chain A;

[0128] 5. Permission chain A sends the original content s of H to permission chain B. If permission chain B receives s within the threshold time T1, it unlocks transaction β, and permission chain A obtains the value assets locked by transaction β; otherwise, it performs transaction rollback;

[0129] 6. Permission chain B sends the original content s of H (s is sent by permission chain A in step 5) to permission chain A. If permission chain A receives s within the threshold time T0, it unlocks transaction α, and permission chain B obtains the value assets locked by transaction α; otherwise, it performs transaction rollback.

[0130] The present invention realizes transaction locking and rollback through hash values. Utilizing the characteristics of hash calculation, forward calculation (calculating H from s) is relatively simple, but reverse calculation (calculating s from H) is very difficult to achieve, which can effectively prevent attacks.

[0131] (7) Result return

[0132] The destination chain constructs the execution structure and execution status information into return information and sends it to the source chain.

[0133] In one embodiment, the message passing process is as Figure 7 shown.

[0134] 1. Permission chain A sends a cross-chain message to its proxy node crossagent;

[0135] 2. The crossagent of permission chain A signs the cross-chain communication message and sends the cross-chain communication message to the crossagent of permission chain B through the bus;

[0136] 3. The crossagent of permission chain B receives the cross-chain communication message, and successively performs signature verification, identity verification, permission verification, and existence verification. After the verification passes, the crossagent of permission chain B sends the cross-chain transaction to permission chain B;

[0137] 4. Permission chain B processes the cross-chain message and returns the processing result.

[0138] In one embodiment, a computer device is proposed, including a memory and a processor, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor executes the steps of the homogeneous permission chain interconnection method based on permission control in the above-mentioned embodiments.

[0139] In one embodiment, a storage medium storing computer-readable instructions is proposed. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps in the homogeneous permission chain interconnection method based on permission control in the above embodiments. The storage medium may be a non-volatile storage medium.

[0140] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0141] The above description is merely a preferred embodiment of one or more embodiments of the present specification and is not intended to limit one or more embodiments of the present specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of the present specification shall be included in the scope of protection of one or more embodiments of the present specification.

Claims

1. A homogeneous permission chain interconnection method based on authority control, characterized in that: include: In the interconnected homogeneous permission chains of all parties, each permission chain has at least one cross-chain communication proxy node. Each proxy node can connect to any node in the permission chain. Each homogeneous permission chain interacts through network communication. A cross-chain certificate management module and a permission control module are provided on the proxy node, and cross-chain operations of the permission chain are performed through the proxy node. The cross-chain certificate management module is used to generate and manage relevant CA certificates and digital certificates, including certificate issuance, public and private key generation, certificate checking and certificate revocation; when homogeneous permission chains communicate and interconnect, the cross-chain certificate management module issues certificates and public and private key pairs to the proxy nodes; the functions of the cross-chain certificate management module are as follows: a. Certificate issuance: Generate the root certificate root.ca and the root certificate private key root.priv through the cross-chain certificate management module; when communication is initiated between permission chains, identity information needs to be registered, and the root certificate root.ca of the destination chain issues the cross-chain certificate crosschain.cert and the cross-chain certificate private key crosschain.priv to the source chain; b. Certificate check: The cross-chain certificate management module provides certificate check services, including whether the certificate is a cross-chain certificate issued by the root.ca certificate of the destination chain proxy node and whether the summary signature is legal; c. Certificate revocation: When the user's personal identity information changes, or the private key is lost, leaked, or suspected of being leaked, the certificate user can submit a certificate revocation request to the cross-chain certificate management module. The cross-chain certificate management module generates a certificate revocation list, which lists all digital certificates that are valid but revoked. During certificate verification, the certificate revocation list is used to check whether the certificate of the cross-chain transaction has been revoked; The permission control module provides multi-chain registration and permission control functions. When isomorphic permission chains communicate and interconnect, the permission control module of the permission chain source chain sends registration information to the destination chain for cross-chain registration according to the permission management requirements. If the registration is successful, the permission verification of inter-chain communication will be performed through the registration information during communication. The registration information includes the source chain name, source chain hash address, destination chain name, destination chain hash address, chain access rights, contract access rights, contract method access rights, data field access rights, cross-chain certificate information, and extension fields.

2. According to claim 1, a homogeneous permission chain interconnection method based on permission control is characterized in that: Each homogeneous permissioned chain communicates and interacts through a cross-chain communication bus, on which several cross-chain communication interfaces are defined; The cross-chain communication message fields include: version, protocol version; SourceChainID, source chain address; DestChainID, destination chain address; CrosschainPayload, cross-chain transaction content; Timestamp, timestamp; Nonce, random; signature, proxy node signature; Cert, cross-chain transaction node certificate; Proof, existence verification information; OriginInfo, cross-chain transaction original transaction information; extra, user extension field; CrosschainPayload is serialized into byte type through json, and the corresponding structure is parsed through json when it is passed to the destination chain; the cross-chain communication interface is used for information interaction between permission chains, including: transaction sending interface, transaction receiving interface, transaction verification interface, registration link interface, update link interface, and deregistration link interface.

3. According to claim 1, a homogeneous permission chain interconnection method based on permission control is characterized in that: The interconnection process between homogeneous permission chains is as follows: (1) Certificate issuance: The cross-chain certificate management module issues certificates and public-private key pairs to the cross-chain proxy node; (2) Chain registration: The source chain registers cross-chain with the destination chain, including the source chain's identity information, permission information, and verification rules. After successful registration, the destination chain's verification engine generates verification rules for the chain and stores the source chain's identity information and chain information in the destination chain's registry for persistent storage. (3) Authority and verification rule management: Authority control of inter-chain communication is performed through registration information; verification rules are used to verify the existence and validity of cross-chain transactions. When permission chains communicate, the identity of the chain can be verified, and the verification rules of the corresponding chain can be matched to verify the existence and validity of the transaction; (4) Checking stage: Check whether the source chain that generates the cross-chain transaction has been registered and whether it has relevant access rights; (5) Verification phase: Use the source chain identity information of the transaction to match the verification rules in the registry of the destination chain, and then input the transaction permission information, verification information, verification rules, and cross-chain transactions into the verification engine for verification; (6) Execution phase: After the cross-chain transaction is verified, the transaction is executed and the result is returned.

4. According to claim 3, a homogeneous permission chain interconnection method based on permission control is characterized in that: During the execution phase, the validity of transaction messages is ensured through asymmetric key signing and verification.

5. According to claim 1, a homogeneous permission chain interconnection method based on permission control is characterized in that: The proof of existence of cross-chain transactions is implemented by Merkle proof. The cross-chain transaction proof generated by the source chain is constructed into a Merkle tree structure. After the destination chain receives the cross-chain transaction proof sent by the source chain, the existence of the cross-chain transaction is verified by the Merkle proof method.

6. According to claim 1, a homogeneous permission chain interconnection method based on permission control is characterized in that: Cross-chain transaction consistency is ensured through cross-chain transaction locking and transaction commit rollback, including: The source chain permission chain initiates a cross-chain transaction to the destination chain permission chain through its proxy node; the proxy nodes of the source chain permission chain and the destination chain permission chain perform the following operations: The proxy node of the source chain generates a cross-chain transaction proof and a cross-chain transaction summary signature, locks the transaction α, and initiates a cross-chain transaction request to the proxy node of the destination chain; After receiving the cross-chain transaction request, the proxy node of the destination chain verifies the locked transaction α. ​​If the verification passes, the transaction β is locked, a transaction β lock certificate is generated, and the transaction β lock certificate is sent to the proxy node of the source chain. The proxy node of the source chain receives and verifies the transaction β lock proof. If the verification is successful, a cross-chain transaction request is initiated to the destination chain. The cross-chain transaction request includes the cross-chain transaction proof and the cross-chain transaction summary signature. The proxy node of the destination chain receives the cross-chain transaction request and verifies the cross-chain transaction proof and cross-chain transaction summary signature. If the verification passes, the transaction β is unlocked, the cross-chain transaction is submitted, and the cross-chain transaction certificate is returned to the proxy node of the source chain; The proxy node of the source chain receives and verifies the cross-chain transaction certificate. If the verification is successful, transaction α is unlocked to achieve consistency between transaction α and transaction β. During the verification process, the proxy node of the destination chain verifies whether transaction β is unlocked within the threshold time. If it is unlocked, the cross-chain transaction has been executed; otherwise, the cross-chain transaction is rolled back and transaction β is released; the proxy node of the source chain verifies whether transaction α is unlocked within the threshold time. If it is unlocked, the cross-chain transaction has been executed; otherwise, the cross-chain transaction is rolled back and transaction α is released; Through transaction locking and interaction, it is ensured that transaction α and transaction β are unlocked at the same time or not unlocked at the same time.

7. A method for interconnecting homogeneous permission chains based on authority control according to claim 6, characterized in that: Transaction locking and rollback are as follows: The source chain generates random content s, calculates the hash value H = Hash(s), and sends the hash value H of the random content s and the threshold time T0 to the destination chain; The source chain locks transaction α with hash value H and threshold time T0; The destination chain receives the hash value H of the random content s and locks the transaction β with the threshold time T1 and H, where T1 <T0; The destination chain sends the transaction β lock proof and threshold time T1 to the source chain; The source chain sends the original content s of H to the destination chain. If the destination chain receives s within the threshold time T1, the transaction β is unlocked and the source chain obtains the information locked by the transaction β. Otherwise, the transaction is rolled back. The destination chain sends the original content s of H to the source chain. If the source chain receives s within the threshold time T0, the transaction α is unlocked and the destination chain obtains the information locked by transaction α. ​​Otherwise, the transaction is rolled back.

8. According to claim 2, a homogeneous permission chain interconnection method based on authority control is characterized in that: The cross-chain communication message delivery process includes: The source chain permission chain sends cross-chain communication messages to its proxy node; The proxy node of the source chain permission chain signs the cross-chain communication message and sends the cross-chain communication message to the proxy node of the destination chain permission chain; The proxy node of the destination chain permission chain receives the cross-chain communication message and performs signature verification, identity verification, permission verification, and existence verification in sequence. After the verification is passed, the proxy node of the destination chain permission chain sends the cross-chain transaction to the destination chain permission chain; The destination chain permission chain processes the cross-chain communication message and returns the processing result.