CN112615838B - Extensible block chain cross-chain communication method - Google Patents

Extensible block chain cross-chain communication method Download PDF

Info

Publication number
CN112615838B
CN112615838B CN202011455315.7A CN202011455315A CN112615838B CN 112615838 B CN112615838 B CN 112615838B CN 202011455315 A CN202011455315 A CN 202011455315A CN 112615838 B CN112615838 B CN 112615838B
Authority
CN
China
Prior art keywords
chain
cross
transaction
verification
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011455315.7A
Other languages
Chinese (zh)
Other versions
CN112615838A (en
Inventor
臧铖
陈嘉俊
郭东升
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Zheshang Bank Co Ltd
Original Assignee
China Zheshang Bank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Zheshang Bank Co Ltd filed Critical China Zheshang Bank Co Ltd
Priority to CN202011455315.7A priority Critical patent/CN112615838B/en
Publication of CN112615838A publication Critical patent/CN112615838A/en
Application granted granted Critical
Publication of CN112615838B publication Critical patent/CN112615838B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0823Network architectures or network communication protocols for network security for authentication of entities using certificates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3263Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving certificates, e.g. public key certificate [PKC] or attribute certificate [AC]; Public key infrastructure [PKI] arrangements

Abstract

The invention discloses an extensible blockchain cross-chain communication method, which carries out cross-chain operation through proxy nodes of a blockchain, each cross-chain organization is provided with at least one cross-chain proxy node, and all cross-chain organizations are communicated and interacted through a cross-chain bus. The invention designs a three-layer structure of cross-link bus crossbar, which comprises a standard communication interface layer, a communication encryption layer and a network communication layer, wherein a physical connection layer and a logic connection layer in the network communication layer are separated, and concurrent processing is carried out aiming at different links, so that the isolation of link communication data is ensured, and the concurrency of communication and the throughput rate of message processing are improved. The invention designs a cross-chain standard communication protocol CSCP, can meet the cross-chain communication of block chain platforms with different architectures, and can not only communicate between homogeneous chains, but also be compatible with the cross-chain communication between heterogeneous chains. The invention can realize the access of the extensible block chain platform with any architecture.

Description

Extensible block chain cross-chain communication method
Technical Field
The invention relates to the technical field of block chains, in particular to an extensible block chain cross-chain communication method.
Background
As blockchains evolve, the need for value exchange and operation between different blockchains becomes increasingly strong. However, the current block chain architectures are different, the communication among different block chains faces the problem of non-uniform interface communication messages, although some chain crossing schemes exist at present, only partial or specific block chain architectures can be met, and the chain crossing communication standard cannot be unified, which is a great obstacle for restricting the further development of the block chain and is also a great factor for realizing value interconnection of the current block chain.
Disclosure of Invention
The invention provides an expandable block chain cross-chain communication method aiming at the technical problems, and an expandable cross-chain bus crossbar is designed in the overall cross-chain scheme, and the bus can be responsible for communication between block chain platforms with any architecture.
The purpose of the invention is realized by the following technical scheme: an extensible block chain cross-chain communication method comprises the following steps:
each cross-chain organization is provided with at least one cross-chain agent node, and each cross-chain agent node can be connected with any node in the cross-chain organization; the various cross-chain organizations are communicated and interacted through a cross-chain bus Crosspub;
the cross-chain bus crossbar comprises a standard communication interface layer, a communication encryption layer and a network communication layer, provides a cross-chain standard communication protocol CSCP, and can meet cross-chain communication of block chain platforms of different architectures;
the standard communication interface layer provides a cross-chain related operation interface, which comprises a registration interface, a sending cross-chain transaction interface, a receiving cross-chain transaction interface, a transaction conversion interface and a verification interface;
the communication encryption layer is used for realizing TLS encryption and data transmission encryption;
the network communication layer is used for ensuring the data transmission safety of a communication link, and can be configured to enable TLS encryption and data transmission encryption or not, and in the network communication layer, a physical connection layer is separated from a logic connection layer;
the main functions of the logical connection layer comprise establishment of a communication link, data transmission, link safety and link activity control, and the logical connection layer comprises two members, namely a Server and a Client; the Server is responsible for registering network socket slots, monitoring services and distributing various messages from the Client; the logical connection layer is provided with a group of slot sets corresponding to different chains on the same block chain platform, and the slot sets are used as Server members for respectively processing messages from different chains; the Client corresponds to the Server and is mainly used for processing different message sending requests.
Furthermore, the proxy node is mainly responsible for cross-chain registration, signature, cross-chain transaction routing, signature verification, existence verification and transaction consistency guarantee.
Further, when cross-chain transaction is initiated and the source chain is identified, the sending interface of the source chain agent node transfers the cross-chain message to the destination chain agent node.
Further, when a different blockchain platform initiates a cross-chain operation, the following operation steps are initiated through a cross-chain bus:
(1) and (3) certificate issuance: a certificate management module of the agent node generates a cross-chain root certificate and a cross-chain public and private key pair, a source chain issues a cross-chain certificate to a target chain by using a target chain public key, and the target chain issues the cross-chain certificate to the source chain by using the source chain public key;
(2) and (3) cross-chain registration: the source chain carries out cross-chain registration to the destination chain through a registration interface of the bus, the registration information comprises identity information, authority information, a signature strategy and a verification rule of the source chain, and after the registration is successful, a verification engine of the destination chain generates the verification rule of the source chain under a destination chain framework according to the registration information;
(3) chain auditing: the destination chain audits the registration information of the source chain through a verification interface of the bus, and if the audit is passed, the source chain is successfully registered;
(4) and (3) verification rule management: the validation rules are used by a validation engine to validate the existence and validity of the cross-chain transaction; when the source chain is registered to the destination chain, the agent node of the destination chain deploys and registers corresponding verification rules;
(5) cross-chain transaction checking: the destination chain carries out cross-chain transaction check through a verification interface of the bus;
(6) cross-chain transaction verification: the checked cross-chain transaction enters a verification stage, a destination chain carries out cross-chain transaction verification through a verification interface of a bus, and the cross-chain transaction verification is executed by a verification engine of the destination chain and mainly verifies the existence and the validity of the cross-chain transaction;
(7) performing cross-chain transactions: and after the cross-chain transaction passes the verification, executing the transaction and returning the result.
Further, the step (5) of cross-chain transaction checking phase, wherein the checking work comprises: whether a source chain of the cross-chain transaction is registered, checked and frozen or not and whether a target chain of a cross-chain transaction identifier exists or not are generated; checking whether the transaction information has corresponding authority; checking whether the signature information conforms to a signature strategy; checking whether a source chain generating the cross-chain transaction registers a verification rule; and acquiring a corresponding verification rule address through the verification engine.
Further, in the step (6), in the cross-chain transaction verification stage, the cross-chain transaction content, the source chain identity information, and the verification rule address are input into a verification engine, and the verification engine executes the following steps to complete cross-chain transaction verification:
a. analyzing the cross-chain transaction, and extracting a transaction certificate in the cross-chain transaction;
b. matching rules, namely matching corresponding verification rules according to source chain identity information in cross-chain transaction;
c. and executing the rule, wherein the verification rule is operated by taking the transaction certificate and the source chain identity information as parameters, and the cross-chain transaction passing the verification is sent to the execution module.
Further, the step (7) of performing the cross-chain transaction specifically includes the following steps:
a. converting the cross-chain standard communication message into a message format of a destination chain through a transaction conversion interface of a bus;
b. sending the transaction to an execution module of a destination chain;
c. and after the execution is finished, a transaction conversion interface of the calling bus converts an execution result into a CSCP format and sends the CSCP format to the source chain, and if the execution fails, the rollback is carried out.
Further, the data transmission encryption in the communication encryption layer specifically includes: encrypting transaction information and communication messages transmitted on a network, firstly negotiating a corresponding session key through an ECDH algorithm, then encrypting service information by using the session key, and decrypting an opposite terminal; all communications between nodes are encrypted using different session keys.
Further, in the network communication layer, a network socket slot is used as a main mechanism for the logical connection layer to communicate with an upper layer, which is a multidimensional mapping for thread security, and maps related methods into different message processors for processing, wherein the message processing methods include chat (), discard (), whisper (), and greeting ().
Further, the main fields of the cross-chain standard communication protocol CSCP include: version, protocol version; sourcechaini id, source chain address; destchainID, destination link address; crosschiainppayload, cross-chain transaction content; timestamp, Timestamp; nonce, random; signature, proxy node signature; cert, cross-chain transaction node certificate; proof, presence verification information; OriginInfo, original transaction information for cross-chain transaction; extra, user extension field; the Crosschiainnpayload is serialized into byte types by json, and the corresponding structure is resolved by json when passing to a destination chain according to the blockchain architecture of the cross-chain transaction.
The invention has the beneficial effects that: according to the invention, cross-link operation is carried out through the proxy nodes of the block chain, each cross-link organization is provided with at least one cross-link proxy node, and the cross-link organizations are communicated and interacted with each other through a cross-link bus Crosspub. The invention designs a three-layer structure of cross-link bus crossbar, which comprises a standard communication interface layer, a communication encryption layer and a network communication layer, wherein a physical connection layer and a logic connection layer in the network communication layer are separated, and concurrent processing is carried out aiming at different links, so that the isolation of link communication data is ensured, and the concurrency of communication and the throughput rate of message processing are improved. The invention designs a cross-chain standard communication protocol CSCP, can meet the cross-chain communication of block chain platforms with different architectures, and can not only communicate between homogeneous chains, but also be compatible with the cross-chain communication between heterogeneous chains. The invention can realize the access of the extensible block chain platform with any architecture.
Drawings
FIG. 1 is a schematic diagram of an overall cross-chain architecture provided by an embodiment of the present invention;
fig. 2 is a block chain cross-chain bus crossbar overall architecture diagram provided in the embodiment of the present invention;
fig. 3 is a cross-chain flow chart of crossshub provided by the embodiment of the present invention;
FIG. 4 is a diagram of a network communication layer architecture provided by an embodiment of the present invention;
fig. 5 is a diagram of a cross stub architecture for logical connections provided in an embodiment of the present invention.
Detailed Description
For better understanding of the technical solutions of the present application, the following detailed descriptions of the embodiments of the present application are provided with reference to the accompanying drawings.
It should be understood that the embodiments described are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the embodiments of the present application, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
The current popular cross-link scheme is to use a relay chain or notary as a central coordinator, and the relay chain is in the form of multiple nodes, but actually is a centralized operation for the operation among multiple block chains.
The cross-chain scheme of the invention is as follows: the invention carries out cross-link operation through the proxy node of the block chain, and the whole cross-link architecture is shown in figure 1. Each cross-chain organization is provided with at least one cross-chain agent node cross, and each cross-chain agent node cross can be connected with any node in the cross-chain organization; the various cross-chain organizations are communicated with each other through a cross-chain bus Crosspub. The method specifically comprises the following steps:
cross-chain agent node crossgene: the method can be connected with any node in the cross-chain organization, when cross-chain transaction is initiated, after a source chain is identified, cross-chain information is transmitted to a cross-chain node of a destination chain by a cross-chain transmission interface, and the communication adopts a TLS encryption mode. Cross is mainly responsible for cross-chain registration, signature, cross-chain transaction routing, signature verification, existence verification, transaction consistency guarantee and the like.
② cross-link bus crossbar: for the communication bus of crossing chain, mainly include: the system comprises a standard communication interface layer, a communication encryption layer, a network communication layer and a cross-chain standard communication protocol CSCP (cross chain communication protocol), which are mainly used for inter-block chain cross-chain network communication, wherein the bus provides a standard cross-chain communication protocol and interface, and can meet the cross-chain communication of block chain platforms with different architectures.
The general architecture diagram of the scalable blockchain crossbar cross-link bus proposed by the present invention is shown in fig. 2. The crosschain flow of crossshub is shown in fig. 3.
When different blockchain platforms initiate cross-chain operation, the following operation steps (all executed on the proxy node cross) are mainly initiated through the bus:
(1) and (3) certificate issuance: the cross-chain root certificate and the cross-chain public and private key pair can be generated by the cross-chain certificate management module, the source chain issues a cross-chain certificate to the destination chain by using the destination chain public key, the source chain issues a cross-chain certificate to the source chain by using the source chain public key, and the cross-chain safety is ensured through a cryptography mechanism.
(2) And (3) cross-chain registration: the source chain carries out cross-chain registration to the destination chain through a registration interface of the bus, the registration information mainly comprises identity information, authority information, a signature strategy, a verification rule and the like of the source chain, after the registration is successful, a verification engine of the destination chain generates the verification rule of the source chain under a destination chain framework according to the registration information, and then the legitimacy (existence and validity) of cross-chain transaction is verified according to the verification rule. Different validation rules will be generated for chains of different architectures.
(3) Chain auditing: and the destination chain audits the registration information of the source chain through the verification interface of the bus, and if the audit is passed, the source chain is successfully registered.
(4) And (3) verification rule management: validation rules are used by a validation engine to validate presence and validity for cross-chain transactions. However, the verification rules of each chain are also different due to the heterogeneity of each chain, so that when the source chain is required to be registered with the destination chain, deployment and registration of the corresponding verification rules are performed by the cross-chain proxy node Crossagent of the destination chain.
(5) Cross-chain transaction checking
The destination chain carries out cross-chain transaction check through a verification interface of the bus, and the main check work comprises the following steps:
a. whether a source chain of the cross-chain transaction is registered or not, whether the source chain is checked or not, whether the source chain is frozen or not, whether a target chain of a cross-chain transaction identifier exists or not and the like are generated;
b. checking whether the transaction information has corresponding authority;
c. checking whether the signature information conforms to a signature strategy;
d. checking whether a source chain generating the cross-chain transaction registers a verification rule;
e. acquiring a corresponding verification rule address through a verification engine;
(6) cross-chain transaction verification
The checked cross-chain transaction enters a verification stage, a destination chain carries out cross-chain transaction verification through a verification interface of a bus, and a verification engine of the destination chain carries out execution and mainly verifies the existence and the validity of the cross-chain transaction;
the cross-chain transaction processing contract inputs the cross-chain transaction content, the source chain identity information and the verification rule address into the verification engine, and then the verification engine executes the following three steps to complete the verification of the cross-chain transaction:
a. and analyzing the cross-chain transaction, and extracting a transaction certificate in the cross-chain transaction.
b. And matching rules, namely matching corresponding verification rules according to the source chain identity information in the cross-chain transaction. The validation rules herein may run on a virtual machine or be in the form of a built-in contract.
c. And executing the rule, and running the verification rule by taking the transaction certificate and the source chain identity information as parameters. The verified cross-chain transaction is sent to the cross-chain execution module.
(7) Cross-chain transaction execution
a. The method comprises the steps that cross-link transaction execution firstly converts a cross-link standard communication message CSCP into a message format of a destination link through a bus protocol conversion interface;
b. sending the transaction to an execution module of a destination chain;
c. and after the execution is finished, calling a bus protocol conversion interface to convert the execution result into a CSCP format and sending the CSCP format to the source chain, and rolling back if the execution fails.
By parity of reasoning, the cross-chain bus crossbar can be always accessed into more chains, and the access of an extensible block chain platform is realized.
The implementation of each part of the cross-link bus crossbar is described in detail below.
One, standard communication interface layer: the bus interface layer mainly provides a cross-chain related operation interface and mainly comprises the following interfaces:
1. registration interface
Figure 674755DEST_PATH_IMAGE001
2. Update chain registration state interface
Figure 643760DEST_PATH_IMAGE002
3. Delete chain registration information interface
Figure 157918DEST_PATH_IMAGE003
4. Transmit cross-chain transaction interface
Figure 553128DEST_PATH_IMAGE004
5. Receiving a cross-chain transaction interface
Figure 164237DEST_PATH_IMAGE005
6. Transaction conversion interface
Figure 986700DEST_PATH_IMAGE006
7. Transaction conversion interface
Figure 988154DEST_PATH_IMAGE007
8. Verification interface
Figure 187054DEST_PATH_IMAGE008
A communication encryption layer for realizing TLS encryption and data transmission encryption, specifically:
tl TLS encryption
The security of the transmission layer is a function which is started by default by the platform, and the TLS certificate is adopted for carrying out secure communication, so that the security of information communication is guaranteed from the transmission layer. Further, this option is optional.
TLS can guarantee the security of information transmission at the transport layer, which is a relatively common implementation standard for network transmission at present, and this technology is used in almost all network security transmissions.
② data transmission encryption
Data transmission encryption refers to encryption of transaction information and communication messages transmitted on a network, all information transmitted on a bus can be encrypted according to the requirements of users, the encryption scheme is similar to TLS, a corresponding session key is negotiated through an ECDH algorithm, then service information is encrypted by using the session key, and an opposite terminal decrypts the service information. All communications between nodes are encrypted using different session keys. This is a complement to the transport layer security. The current platform messages can be configured for symmetric encryption, which can be used if more complex message encryption requirements exist.
Third, network communication layer
The network communication layer ensures the data transmission security of the communication link, and a user can configure whether to enable the transmission security TLS and whether to start the data transmission encryption (or replace the data encryption algorithm) through a configuration file. In the network communication layer, the physical network (physical network) is separated from the logical network (crossshubnet), and the overall architecture is as shown in fig. 4.
The main functions of the cross link network include establishment of a communication link, data transmission, link safety, link activity control and the like. It has two important members, Server and Client, and the architecture diagram is shown in FIG. 5.
The Server is responsible for registering a network socket (slot), monitoring service and distributing various messages from the Client in the Crosshubnet. The network socket slot is used as a main mechanism for communication between Crosshubnet and an upper layer, and realizes that map mapping of multi-dimensional thread safety is realized, and a related method is mapped into different message processors for processing. The method mainly comprises chat (), discard (), whisper (), and greeting ().
The logical connection layer possesses a group of slot sets corresponding to different chains (channels) on the same block chain platform, and the network socket set slots are used as Server members for respectively processing messages from different chains (channels).
The Client corresponds to the Server and is mainly used for processing different message sending requests. Typically, one Client corresponds to multiple different remote servers (since one crossbar node may be connected to multiple other crossbar nodes), and the information submitted by the Server is distributed to slots in different chains (channels) for processing in communication with the different servers. The method mainly comprises chat (), discard (), whisper (), and greeting ().
The network connection performs concurrent processing aiming at different chains, ensures the isolation of chain communication data, and improves the concurrency of communication and the throughput rate of message processing.
Four, cross-chain standard communication protocol CSCP
The cross-chain standard communication protocol CSCP mainly meets cross-chain calling among different chains, not only can communicate among homogeneous chains, but also can be compatible with cross-chain communication among heterogeneous chains. The invention designs a unified cross-chain standard communication protocol CSCP (cross chain standard communication protocol), and the main fields of the protocol are as follows:
Figure 652671DEST_PATH_IMAGE009
the content of the cross-chain transaction CrosswainPayload is serialized into a byte type through json, the byte type can be determined according to a block chain architecture of the cross-chain transaction, and a corresponding structure is analyzed through json when the byte type is transmitted to a destination chain.
Before a source chain initiates a cross-chain transaction, registration information CrossChainRegistInfo of the chain needs to be constructed, the structure of which is shown in the following table, and the information is used for an information structure when the source chain performs cross-chain registration to a destination chain:
Figure 380455DEST_PATH_IMAGE010
in one embodiment, a computer device is provided, which includes a memory and a processor, the memory stores computer readable instructions, and when executed by the processor, the processor executes the steps in the scalable blockchain cross-chain communication method in the embodiments.
In one embodiment, a storage medium storing computer readable instructions is provided, and the computer readable instructions, when executed by one or more processors, cause the one or more processors to perform the steps in the scalable blockchain cross-chain communication method in the embodiments described above. The storage medium may be a nonvolatile storage medium.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The above description is intended only to be exemplary of the one or more embodiments of the present disclosure, and should not be taken as limiting the one or more embodiments of the present disclosure, as any modifications, equivalents, improvements, etc. that come within the spirit and scope of the one or more embodiments of the present disclosure are intended to be included within the scope of the one or more embodiments of the present disclosure.

Claims (8)

1. An extensible block chain cross-chain communication method is characterized by comprising the following steps:
each cross-chain organization is provided with at least one cross-chain agent node, and each cross-chain agent node can be connected with any node in the cross-chain organization; the various cross-chain organizations are communicated and interacted through a cross-chain bus Crosspub;
the agent node is mainly responsible for cross-chain registration, signature, cross-chain transaction routing, signature verification, existence verification and transaction consistency guarantee; when cross-link transaction is initiated, after a source link is identified, a sending interface of a source link proxy node transmits a cross-link message to a destination link proxy node;
the cross-chain bus crossbar comprises a standard communication interface layer, a communication encryption layer and a network communication layer, provides a cross-chain standard communication protocol CSCP, and can meet cross-chain communication of block chain platforms of different architectures;
the standard communication interface layer provides a cross-chain related operation interface, which comprises a registration interface, a sending cross-chain transaction interface, a receiving cross-chain transaction interface, a transaction conversion interface and a verification interface;
the communication encryption layer is used for realizing TLS encryption and data transmission encryption;
the network communication layer is used for ensuring the data transmission safety of a communication link, and can configure whether TLS encryption and data transmission encryption are started or not, and in the network communication layer, a physical connection layer is separated from a logic connection layer;
the main functions of the logical connection layer comprise establishment of a communication link, data transmission, link safety and link activity control, and the logical connection layer comprises two members, namely a Server and a Client; the Server is responsible for registering network socket slots, monitoring services and distributing various messages from the Client; the logical connection layer is provided with a group of slot sets corresponding to different chains on the same block chain platform, and the slot sets are used as Server members for respectively processing messages from different chains; the Client corresponds to the Server and is mainly used for processing different message sending requests.
2. The scalable blockchain inter-chain communication method according to claim 1, wherein when different blockchain platforms initiate inter-chain operations, the following operation steps are initiated through an inter-chain bus:
(1) and (3) certificate issuance: a certificate management module of the agent node generates a cross-chain root certificate and a cross-chain public and private key pair, a source chain issues a cross-chain certificate to a target chain by using a target chain public key, and the target chain issues the cross-chain certificate to the source chain by using the source chain public key;
(2) and (3) cross-chain registration: the source chain carries out cross-chain registration to the destination chain through a registration interface of the bus, the registration information comprises identity information, authority information, a signature strategy and a verification rule of the source chain, and after the registration is successful, a verification engine of the destination chain generates the verification rule of the source chain under a destination chain framework according to the registration information;
(3) chain auditing: the destination chain audits the registration information of the source chain through a verification interface of the bus, and if the audit is passed, the source chain is successfully registered;
(4) and (3) verification rule management: the verification rules are used by a verification engine for verifying the existence and the validity of the cross-chain transaction; when the source chain is registered to the destination chain, the agent node of the destination chain deploys and registers corresponding verification rules;
(5) cross-chain transaction checking: the destination chain carries out cross-chain transaction check through a verification interface of the bus;
(6) cross-chain transaction verification: the checked cross-chain transaction enters a verification stage, a destination chain carries out cross-chain transaction verification through a verification interface of a bus, and the cross-chain transaction verification is executed by a verification engine of the destination chain and mainly verifies the existence and the validity of the cross-chain transaction;
(7) performing cross-chain transactions: and executing the transaction after the cross-chain transaction passes the verification and returning the result.
3. The scalable blockchain inter-chain communication method according to claim 2, wherein the step (5) of inter-chain transaction checking phase comprises: whether a source chain of the cross-chain transaction is registered, checked and frozen or not and whether a target chain of a cross-chain transaction identifier exists or not are generated; checking whether the transaction information has corresponding authority; checking whether the signature information conforms to a signature strategy; checking whether a source chain generating the cross-chain transaction registers a verification rule; and acquiring a corresponding verification rule address through the verification engine.
4. The scalable blockchain cross-chain communication method according to claim 3, wherein in the step (6), in the cross-chain transaction verification stage, three information, namely cross-chain transaction content, source chain identity information and verification rule address, are input into a verification engine, and the verification engine performs the following steps to complete cross-chain transaction verification:
a. analyzing the cross-chain transaction, and extracting a transaction certificate in the cross-chain transaction;
b. rule matching, namely matching a corresponding verification rule according to source chain identity information in cross-chain transaction;
c. and executing the rule, wherein the transaction certificate and the source chain identity information are used as parameters to run a verification rule, and the cross-chain transaction passing the verification is sent to an execution module.
5. The scalable blockchain cross-chain communication method according to claim 3, wherein the step (7) of cross-chain transaction execution phase specifically includes the following steps:
a. converting the cross-chain standard communication message into a message format of a destination chain through a transaction conversion interface of a bus;
b. sending the transaction to an execution module of a destination chain;
c. and after the execution is finished, a transaction conversion interface of the calling bus converts an execution result into a CSCP format and sends the CSCP format to the source chain, and if the execution fails, the rollback is carried out.
6. The scalable blockchain cross-chain communication method according to claim 1, wherein the encryption of data transmission in the communication encryption layer is specifically: encrypting transaction information and communication messages transmitted on a network, firstly negotiating a corresponding session key through an ECDH algorithm, then encrypting service information by using the session key, and decrypting an opposite terminal; all communications between nodes are encrypted using different session keys.
7. The method according to claim 1, wherein in the network communication layer, the network socket slot is used as a main mechanism for the logical connection layer to communicate with the upper layer, and is a multidimensional thread-safe map, and the related methods are mapped to different message processors for processing, and the message processing methods include chat (), discard (), whisper (), and greeting ().
8. The method of claim 1, wherein the main fields of the cross-chain standard communication protocol CSCP comprise: version, protocol version; SourceChainID, source chain address; DestChainID, destination chain address; crosschiainppayload, cross-chain transaction content; timestamp, Timestamp; nonce, random; signature, proxy node signature; cert, cross-chain transaction node certificate; proof, presence verification information; OriginInfo, original transaction information for cross-chain transaction; extra, user extension field; the CrossschainPayload is serialized into byte types through json, and the corresponding structure is analyzed through json when the transaction is transmitted to a destination chain according to a blockchain architecture of cross-chain transaction.
CN202011455315.7A 2020-12-10 2020-12-10 Extensible block chain cross-chain communication method Active CN112615838B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011455315.7A CN112615838B (en) 2020-12-10 2020-12-10 Extensible block chain cross-chain communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011455315.7A CN112615838B (en) 2020-12-10 2020-12-10 Extensible block chain cross-chain communication method

Publications (2)

Publication Number Publication Date
CN112615838A CN112615838A (en) 2021-04-06
CN112615838B true CN112615838B (en) 2022-08-23

Family

ID=75233434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011455315.7A Active CN112615838B (en) 2020-12-10 2020-12-10 Extensible block chain cross-chain communication method

Country Status (1)

Country Link
CN (1) CN112615838B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114844905B (en) * 2022-04-29 2024-03-29 蚂蚁区块链科技(上海)有限公司 System and method for cross-blockchain interactions
CN115277110B (en) * 2022-07-04 2023-07-28 河北嘉朗科技有限公司 Method for solving block chain node cross-network communication problem in cloud native environment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218303A (en) * 2018-09-10 2019-01-15 浙江天脉领域科技有限公司 A kind of novel across chain method of block chain of homologous isomery link network fusion
CN110751475A (en) * 2019-10-24 2020-02-04 杭州趣链科技有限公司 Cross-chain method, system, equipment and storage medium for blockchain transaction
CN111181968A (en) * 2019-12-30 2020-05-19 北京金山云网络技术有限公司 Cross-block chain communication method and device, cross-chain service system and cross-chain transaction system
CN111262872A (en) * 2020-01-20 2020-06-09 新晨科技股份有限公司 Enterprise block chain service platform
CN111666323A (en) * 2020-05-15 2020-09-15 西安纸贵互联网科技有限公司 Cross-chain intercommunication method and system for block chain

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11194837B2 (en) * 2018-05-01 2021-12-07 International Business Machines Corporation Blockchain implementing cross-chain transactions
US11895223B2 (en) * 2019-02-06 2024-02-06 International Business Machines Corporation Cross-chain validation
CN110505311A (en) * 2019-09-12 2019-11-26 杭州秘猿科技有限公司 A kind of across the chain exchange method of isomorphism block chain and system
CN110766408A (en) * 2019-10-24 2020-02-07 杭州趣链科技有限公司 Cross-chain transaction verification method, engine, equipment and storage medium for heterogeneous block chain
CN111784518B (en) * 2020-06-30 2024-04-05 京东科技信息技术有限公司 Block chain cross-chain processing method and device, computer equipment and storage medium
CN112733174B (en) * 2020-10-29 2022-07-19 腾讯科技(深圳)有限公司 Authentication management method and system of block chain system and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218303A (en) * 2018-09-10 2019-01-15 浙江天脉领域科技有限公司 A kind of novel across chain method of block chain of homologous isomery link network fusion
CN110751475A (en) * 2019-10-24 2020-02-04 杭州趣链科技有限公司 Cross-chain method, system, equipment and storage medium for blockchain transaction
CN111181968A (en) * 2019-12-30 2020-05-19 北京金山云网络技术有限公司 Cross-block chain communication method and device, cross-chain service system and cross-chain transaction system
CN111262872A (en) * 2020-01-20 2020-06-09 新晨科技股份有限公司 Enterprise block chain service platform
CN111666323A (en) * 2020-05-15 2020-09-15 西安纸贵互联网科技有限公司 Cross-chain intercommunication method and system for block chain

Also Published As

Publication number Publication date
CN112615838A (en) 2021-04-06

Similar Documents

Publication Publication Date Title
CN110266655B (en) Cross-chain interconnection method, device and system based on block chain
CN110537182B (en) System and method for providing representational state transfer proxy service for blockchain cloud service
CN112330326B (en) Business processing method and device applied to bank transaction blockchain system
US11483347B2 (en) High performance distributed system of record with secure interoperability to external systems
US11522676B2 (en) High performance distributed system of record with key management
CN112615915B (en) Method for constructing alliance chain between private chains
CN108965230A (en) A kind of safety communicating method, system and terminal device
US20230037932A1 (en) Data processing method and apparatus based on blockchain network, and computer device
CN114499898B (en) Block chain cross-chain secure access method and device
CN112615838B (en) Extensible block chain cross-chain communication method
US11829351B2 (en) High performance distributed system of record with hosted origin services
CN112529706A (en) Decentralized heterogeneous public chain asset exchange method
CN110149379B (en) Multi-primitive-chain throughput expansion method based on layer logic
CN115174267B (en) TLS protocol negotiation method, equipment and medium
CN112231741A (en) Data processing method, device, medium and electronic equipment based on block chain system
JP2022523217A (en) Topology Driven Byzantine Fault Tolerant Consensus Protocol with Voting Aggregation
CN101789939B (en) Effective realization method for credible OpenSSH
Zhang et al. ARC: an asynchronous consensus and relay chain-based cross-chain solution to consortium blockchain
Jannes et al. Beaufort: Robust byzantine fault tolerance for client-centric mobile web applications
da Costa et al. Securing light clients in blockchain with DLCP
CN114186213B (en) Data transmission method, device, equipment and medium based on federal learning
CN116015970A (en) Cross-domain identity authentication method based on SGX
CN116186749A (en) Block chain-based service processing method and device, electronic equipment and readable medium
CN116186786A (en) Block chain-based service processing method and device, electronic equipment and readable medium
CN112926983A (en) Block chain-based deposit certificate transaction encryption system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant