WO2023246187A1 - 一种区块链网络的管理方法及相关设备 - Google Patents

一种区块链网络的管理方法及相关设备 Download PDF

Info

Publication number
WO2023246187A1
WO2023246187A1 PCT/CN2023/081316 CN2023081316W WO2023246187A1 WO 2023246187 A1 WO2023246187 A1 WO 2023246187A1 CN 2023081316 W CN2023081316 W CN 2023081316W WO 2023246187 A1 WO2023246187 A1 WO 2023246187A1
Authority
WO
WIPO (PCT)
Prior art keywords
blockchain network
chain
cross
blockchain
transaction
Prior art date
Application number
PCT/CN2023/081316
Other languages
English (en)
French (fr)
Inventor
张晓天
张子怡
曲强
Original Assignee
华为云计算技术有限公司
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 华为云计算技术有限公司 filed Critical 华为云计算技术有限公司
Publication of WO2023246187A1 publication Critical patent/WO2023246187A1/zh

Links

Classifications

    • 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
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1059Inter-group management mechanisms, e.g. splitting, merging or interconnection of groups
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • 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/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • 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
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1042Peer-to-peer [P2P] networks using topology management mechanisms
    • 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/40Network security protocols

Definitions

  • This application relates to the field of blockchain technology, and in particular to a management method, platform, computer cluster, computer-readable storage medium, and computer program product of a blockchain network.
  • the blockchain network is a peer-to-peer (P2P) network that stores distributed data.
  • the nodes in the peer-to-peer network are peer nodes.
  • Each peer node maintains at least one blockchain and uses the blockchain data structure in the blockchain to verify and store data.
  • blockchain As a distributed public ledger, blockchain has the characteristics of decentralization, open anonymity, and cannot be forged or tampered with. With its unique trust mechanism and information transmission technology, it has been widely used in various fields and promoted the field of science and technology. of change.
  • the blockchain network includes multiple nodes, and the multiple nodes in the blockchain network can be nodes managed by different departments.
  • the server can receive the request from the client (also called the user), classify, process and approve the request, and then the server can upload the interaction data with the client to the blockchain network for storage.
  • users such as enterprises, institutions or organizations can create or join multiple blockchain networks. Managing each blockchain network separately requires a lot of time and effort.
  • each blockchain network is usually independent, and it is difficult to share data between blockchain networks. For example, it is difficult for blockchain networks belonging to different alliances to share data. When a certain blockchain network fails, it is difficult to migrate the data stored in the blockchain well.
  • This application provides a blockchain network management method, which introduces a management platform.
  • the management platform installs cross-chain contracts for different blockchain networks such as heterogeneous blockchain networks through a unified blockchain platform management interface. This enables the integration of cross-chain capabilities and truly opens up the business of the blockchain network. Data can be migrated between different blockchain networks without adapting to heterogeneous kernels, saving transformation costs.
  • This application also provides a blockchain network management platform, computer cluster, computer-readable storage medium and computer program product corresponding to the above method.
  • embodiments of the present application provide a management method for a blockchain network.
  • This method can be executed by the management platform of the blockchain network (referred to as the management platform).
  • the management platform may be a software system.
  • the software system is deployed in a computer cluster.
  • the computer cluster executes the blockchain network management method of the embodiment of the present application by running the program code of the software system.
  • the management platform can also be a hardware system with blockchain network management functions, and the hardware system can be one or more computers in a computer cluster.
  • the management platform receives the cross-chain application submitted by the user, and then calls the blockchain platform management interface to install the cross-chain contract for the first blockchain network and the second blockchain network according to the cross-chain application.
  • the cross-chain contract is used for the first blockchain network and the second blockchain network to establish connections with the relay device respectively, and conduct cross-chain transactions through the relay device.
  • the management platform of the embodiment of this application installs cross-chain contracts on different blockchain networks, such as heterogeneous blockchain networks, through a unified blockchain platform management interface, thereby integrating cross-chain capabilities and truly opening up the business of the blockchain network.
  • Data can be migrated between different blockchain networks without adapting to heterogeneous cores, saving transformation costs.
  • this method encapsulates cumbersome cross-chain processes into the management platform, greatly simplifying user operations, improving ease of use, and ensuring traceability management of the entire data life cycle.
  • the management platform can also obtain the configuration information of the first blockchain network and the configuration information of the second blockchain network, and then transfer the first blockchain network to The configuration information of and the configuration information of the second blockchain network are registered to the relay device.
  • the configuration information includes the connection address of the blockchain network, the application name associated with the blockchain network, the type of the blockchain network, user identification, identity certificate, certificate One or more of a key and a private key.
  • configuration information such as the connection address of the blockchain network, the application name associated with the blockchain network, the type of the blockchain network, etc. can assist the relay device in establishing a connection with the blockchain network, user identification, identity certificate, certificate Keys and private keys can assist the relay device in identity verification to ensure reliability and security.
  • the management platform may receive a cross-chain transaction request submitted by the user, instruct the relay device to initiate a cross-chain transaction according to the cross-chain transaction request, and then the relay device sends a request to the third
  • a blockchain network sends a submission request, receives the first submission proof generated by the first blockchain network executing the transaction submission and the transaction header of the cross-chain transaction, and after passing the verification, adds the first transaction result to the consensus Queue;
  • the relay device receives the second submission proof generated by the second blockchain network executing transaction submission and the transaction header of the cross-chain transaction, and after passing the verification, adds the second transaction result to the consensus queue;
  • the relay device adds blocks to the relay chain based on the first transaction result and the second transaction result in the consensus queue to complete the cross-chain transaction.
  • cross-chain transactions are realized through relay cross-chain methods between different blockchain networks managed by the management platform, integrating cross-chain capabilities into the blockchain network, and truly opening up the business of the blockchain network without the need to adapt to heterogeneous Kernel can be used to migrate data between different blockchain networks, saving transformation costs.
  • the management platform can also receive a transaction query request sent by the user, and then the management platform calls the blockchain platform management interface to query the first transaction in the first blockchain network.
  • the blockchain and the second blockchain in the second blockchain network obtain the transaction information. Then the management platform returns the transaction information to the user.
  • the method realizes the interaction between the management platform and the underlying blockchain platform based on the blockchain platform management interface, and standardizes general blockchain functions such as query chain information, transactions, blocks, and configurations.
  • the transaction query request is generated according to a business interface provided by the management platform. This can achieve unified cross-chain operation and maintenance monitoring, and facilitate subsequent application docking and business on-chain of the new management chain.
  • the management platform can also verify the cross-chain capabilities of the first blockchain network and the second blockchain network, and determine the relationship between the first blockchain network and the second blockchain network.
  • the second blockchain network supports cross-chain.
  • This method first performs cross-chain capability verification, detects blockchain networks that do not have cross-chain capabilities in advance, and terminates subsequent cross-chain processes for blockchain networks that do not have cross-chain capabilities, so as to avoid block chain failures.
  • the chain network does not have cross-chain capabilities, resulting in cross-chain failure.
  • the management platform can verify the cross-chain capabilities of the first blockchain network and the second blockchain network according to cross-chain rules, and determine whether the first blockchain network And the second blockchain network supports cross-chain.
  • the cross-chain rules can be general cross-chain rules or user-defined cross-chain rules. Based on the above cross-chain rules, automated cross-chain capability verification can be implemented to improve verification efficiency. In addition, cross-chain capability verification based on user-defined cross-chain rules can meet the needs of different businesses.
  • the management platform can also manage the relay device in response to a management request for the relay device.
  • the management platform can implement full life cycle management relay services and interact with relay devices, including deployment, querying relay status, managing relay nodes, relay gateways, etc.
  • the first blockchain network and the second blockchain network are networks in different alliances. In this way, data can be shared between different alliances and the availability of the blockchain network can be improved.
  • this application provides a management platform for a blockchain network.
  • the management platform includes:
  • the interface module is used to receive cross-chain applications submitted by users
  • the cross-chain business module is used to call the blockchain platform management interface to install cross-chain contracts for the first blockchain network and the second blockchain network according to the cross-chain application.
  • the cross-chain contract is used for the The first blockchain network and the second blockchain network establish connections with the relay device respectively, and perform cross-chain transactions through the relay device.
  • the interface module is also used to:
  • the management platform also includes:
  • a registration module configured to register the configuration information of the first blockchain network and the configuration information of the second blockchain network to the relay device.
  • the configuration information includes the connection address of the blockchain network, the application name associated with the blockchain network, the type of the blockchain network, user identification, identity certificate, certificate One or more of a key and a private key.
  • the interface module is also used to:
  • the relay device is used for:
  • Send a submission request to the first blockchain network receive the first submission certificate generated by the first blockchain network's transaction submission and the transaction header of the cross-chain transaction, and after passing the verification, send the first transaction result Join the consensus queue; receive the second submission certificate generated by the second blockchain network to execute the transaction submission and the transaction header of the cross-chain transaction, and after passing the verification, add the second transaction result to the consensus queue; according to The first transaction result and the second transaction result in the consensus queue are added to the relay chain to complete the cross-chain transaction.
  • the interface module is also used to:
  • the management platform also includes:
  • a query module used to call the blockchain platform management interface, query the first blockchain in the first blockchain network and the second blockchain in the second blockchain network, and obtain the The transaction information is described and the transaction information is returned to the user.
  • the transaction query request is generated according to a business interface provided by the management platform.
  • the management platform also includes:
  • a verification module used to verify the cross-chain capabilities of the first blockchain network and the second blockchain network, and determine that the first blockchain network and the second blockchain network support cross-chain capabilities. chain.
  • the verification module is specifically used to:
  • the management platform verifies the cross-chain capabilities of the first blockchain network and the second blockchain network according to the cross-chain rules, and determines the first blockchain network and the second blockchain network. Support cross-chain.
  • the management platform also includes:
  • a relay management module configured to manage the relay device in response to a management request for the relay device.
  • the first blockchain network and the second blockchain network are networks in different alliances.
  • this application provides a computer cluster.
  • the computer cluster includes at least one computer including at least one processor and at least one memory.
  • the at least one processor and the at least one memory communicate with each other.
  • the at least one processor is configured to execute instructions stored in the at least one memory, so that the computer or computer cluster executes the management method of a blockchain network as described in the first aspect or any implementation of the first aspect.
  • the present application provides a computer-readable storage medium that stores instructions instructing a computer or a computer cluster to execute the above-mentioned first aspect or any implementation of the first aspect.
  • the management method of the blockchain network is not limited to, but not limited to, but not limited to,
  • the present application provides a computer program product containing instructions that, when run on a computer or computer cluster, causes the computer or computer cluster to execute the above-mentioned first aspect or any implementation of the first aspect.
  • Blockchain network management methods
  • Figure 1 is a schematic architectural diagram of a data management system provided by an embodiment of the present application.
  • Figure 2 is a flow chart of a blockchain network management method provided by an embodiment of the present application.
  • Figure 3 is a flow chart of a cross-chain application provided by the embodiment of this application.
  • Figure 4 is a flow chart of a cross-chain transaction provided by an embodiment of the present application.
  • Figure 5 is a schematic structural diagram of a blockchain network management platform provided by an embodiment of the present application.
  • Figure 6 is a schematic structural diagram of a computer cluster provided by an embodiment of the present application.
  • first and second in the embodiments of this application are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, features defined as “first” and “second” may explicitly or implicitly include one or more of these features.
  • the blockchain network is a decentralized network formed by multiple nodes.
  • Nodes in the blockchain network are connected point-to-point to form a peer-to-peer (P2P) network.
  • P2P peer-to-peer
  • nodes in this network are also called peer nodes, that is, peer nodes.
  • the blockchain network is used to provide distributed ledger and smart contract services for applications (which can be referred to as applications).
  • transaction logic is defined in the smart contract.
  • Smart contracts are used to generate transactions, which are distributed to each peer node in the blockchain network.
  • Each peer node records these transactions on its own copy of the ledger, and the copy of the ledger cannot be tampered with.
  • Transactions can usually be recorded in the form of blocks. Different transactions can be recorded in different blocks, and different blocks can be connected to form a blockchain. Therefore, a copy of the ledger can be a blockchain.
  • the management platform of the blockchain network also known as the chain management platform and management platform, is a system for centralized operation or maintenance of the blockchain network. This system can provide open platform interface protocol standards, allowing users to smoothly access various blockchain networks under their name, and achieve unified management and monitoring.
  • the management platform is usually built in the middle layer of the business server and the back-end blockchain network, and realizes the management and control of the blockchain network by providing open interfaces. This method can save operation or maintenance costs through one-stop management of the blockchain network under the user's name.
  • each blockchain network is usually independent.
  • the expansion and sub-chain construction of the blockchain network are usually limited to the same blockchain network, and the network scale is limited.
  • embodiments of the present application provide a management method for a blockchain network.
  • This method can be executed by the management platform.
  • the management platform may be a software system, which is deployed in a computer cluster.
  • the computer cluster executes the blockchain network management method of the embodiment of the present application by running the program code of the software system.
  • the management platform can also be a hardware system with blockchain network management functions, and the hardware system can be one or more computers in a computer cluster.
  • the management platform receives a cross-chain application submitted by the user, which is used to migrate the data stored in the first blockchain in the first blockchain network to the second block in the second blockchain network. chain, and then the management platform calls the blockchain platform management interface to install cross-chain contracts for the first blockchain network and the second blockchain network according to the cross-chain application.
  • the cross-chain contract is used for the first blockchain network and the second blockchain network to establish connections with the relay device respectively, and conduct cross-chain transactions through the relay device.
  • the management platform in the embodiment of this application uses a unified blockchain platform management interface to install different blockchain networks such as heterogeneous blockchain networks.
  • Cross-chain integration Contract thereby integrating cross-chain capabilities and truly opening up the business of the blockchain network.
  • Data can be migrated between different blockchain networks without adapting to heterogeneous kernels, saving transformation costs.
  • this method encapsulates cumbersome cross-chain processes into the management platform, greatly simplifying user operations, improving ease of use, and ensuring traceability management of the entire data life cycle.
  • the management method and management platform of the blockchain network in the embodiment of this application can be applied to different industries or fields.
  • the management platform can be a management platform for a blockchain network in the financial industry.
  • the blockchain network management method in the embodiment of this application By executing the blockchain network management method in the embodiment of this application, cross-chain transactions between blockchain networks of different financial institutions can be realized.
  • the management platform can be a management platform for a blockchain network for government affairs.
  • district management of different organizations or departments (such as different municipal tax bureaus) can be realized. Cross-chain transactions between blockchain networks.
  • the data management system 10 includes a management platform 100 and a relay device 200 .
  • the management platform 100 can be connected to the blockchain network 20 in different blockchain platforms through the blockchain platform management interface.
  • the blockchain network 20 can be established based on the blockchain platform.
  • the blockchain platform refers to a platform used to establish the blockchain network 20 and manage the blockchain network 20 and the blockchain copies (distributed ledgers) in the blockchain network 20 .
  • blockchain platforms can be divided into different types.
  • blockchain platforms can be divided into different types such as Fabric, Quorum, and Ethereum based on the core.
  • the above different types of blockchain platforms are also called heterogeneous blockchain platforms.
  • Blockchain networks established based on different types of blockchain platforms are called heterogeneous blockchain networks, which can be referred to as heterogeneous chains. It should be noted that each blockchain network 20 carries at least one business logic, therefore, the blockchain network 20 can also be called a business chain.
  • the blockchain platform management interface may include a heterogeneous blockchain platform management interface.
  • the management platform 100 can connect to the blockchain network 1 in the heterogeneous blockchain platform 1 and the blockchain network 2 in the heterogeneous blockchain platform 2 through the heterogeneous blockchain platform management interface, thereby realizing the management of blocks. Unified management of chain network 1 and blockchain network 2.
  • the management platform 100 When the management platform 100 is a software system or hardware system in a cloud platform, the management platform 100 may include a native blockchain platform management interface, and the management platform 100 may manage the native blockchain platform through the native blockchain platform management interface.
  • Blockchain networks such as Blockchain Network 3 and Blockchain Network 4 are connected to achieve unified management of Blockchain Network 3 and Blockchain Network 4.
  • the management platform 100 is used to receive a cross-chain application submitted by a user.
  • the cross-chain application is used to convert the first zone in the first blockchain network (for example, the blockchain network 1 in Figure 1)
  • the data stored in the blockchain is migrated to the second blockchain in the second blockchain network (for example, blockchain network 2 in Figure 1), and then according to the cross-chain application, the blockchain platform management interface (for example, The heterogeneous blockchain platform management interface in Figure 1 installs cross-chain (Inter-BlockChain) contracts for the first blockchain network and the second blockchain network respectively.
  • a cross-chain contract is a smart contract that transmits, transfers and exchanges digital assets and functional states on two or more different blockchains.
  • the cross-chain contract is used for the first blockchain network and the second blockchain network to establish connections with the relay device 200 respectively, and conduct cross-chain transactions through the relay device 200 .
  • the relay device 200 may be a software device or a hardware device.
  • relay device 200 can provide relay services to add a data structure to multiple blockchain networks so that two blockchain networks can interact with each other through the data structure.
  • the relay device 200 acts as a data collector and does not rely on a trusted third party for transaction verification. Specifically, the relay device 200 can verify itself after obtaining data sent by a blockchain network.
  • the self-verification method differs depending on the structure of the relay device 200 . For example, BTC-Relay relies on Simple Payment Verification (SPV) certification, and Cosmos also relies on the number of verification node signatures, etc.
  • SPV Simple Payment Verification
  • the relay device 200 completes the collaboration capabilities between the blockchain networks managed by the management platform 100 through the relay chain, expands the business scale and flexibility, improves the stability of the blockchain network, and prevents loss of data in the event of data loss or When the system is abandoned, cross-chain migration of data is supported.
  • the management platform 100 may include an intra-chain business module 102 and a cross-chain business module 104.
  • the intra-chain business module 102 is used to manage the interior of the blockchain network 20 (including but not limited to public chains and alliance chains).
  • the intra-chain business module 102 is used to create, join, exit, and delete an alliance
  • the intra-chain business module 102 is used to create, join, exit, and delete a business chain.
  • the cross-chain business module 104 is used for cross-chain management of different blockchain networks 20. This cross-chain management not only supports homogeneous cross-chain management, that is, cross-chain management between homogeneous blockchain networks, but also supports heterogeneous management, that is, cross-chain management between heterogeneous blockchain networks.
  • Cross-chain management includes data migration between different blockchain networks 20.
  • cross-chain management also includes interoperation between different blockchain networks 20, such as cross-chain reading, cross-chain writing, and cross-chain ledger query. etc.
  • the cross-chain business module 104 also supports configuring cross-chain rules, and determines whether the blockchain network 20 supports cross-chain based on the cross-chain rules, and then in the blockchain network 20 If cross-chain is supported, install a cross-chain contract for the blockchain network 20.
  • the management platform 100 also includes a database 106 .
  • the database 106 can store one or more of user data, chain information, management history processes or operation records.
  • the user data includes one or more of a user identifier (ID), identity certificate, and certificate key.
  • the user ID is unique and used to distinguish different users.
  • An identity certificate is a digital certificate that identifies an identity, and can usually be issued by a digital certificate authority (Certificate Authority, CA).
  • the identity certificate may be a Transport Layer Security (TLS) certificate.
  • the identity certificate may include a certificate key, and the certificate key may be a public key.
  • the sending end (such as the user's client) can use the public key for encryption
  • the receiving end (such as a service end such as a business server) can encrypt according to the
  • the private key corresponding to the public key is decrypted to ensure data security.
  • Chain information includes information stored in the blockchain, such as transaction information, etc.
  • the management history process includes the process of managing the blockchain network in a historical time period, and the operation records include records of operations performed through the management platform 100 .
  • the above management history process can provide reference for subsequent management, and the above operation records can facilitate traceability.
  • the management platform 100 also includes a business interface.
  • This business interface is a unified external interface.
  • the management platform 100 can connect to business servers of different services (not shown in Figure 1) through the above-mentioned business interfaces, and use the business interfaces to unify entry user requests, including user registration, chain change scheduling, chain information acquisition, monitoring and alarming, or node management, etc. ask.
  • chain change scheduling includes creating a business chain, joining a business chain, exiting a business chain, or deleting a business chain, etc.
  • Chain information acquisition includes obtaining transaction information stored in the blockchain, etc.
  • Monitoring alarms are included in the set monitoring indicators such as central Alarm prompts when the processor (central processing unit, CPU) utilization reaches the alarm threshold, node management package Including node addition or node deletion.
  • the management platform 100 may also include a process approval module 108, which is used to approve and authorize entry user requests received by the business interface, such as cross-chain applications.
  • a process approval module 108 which is used to approve and authorize entry user requests received by the business interface, such as cross-chain applications.
  • the intra-chain business module 102 or the cross-chain business module 104 can respond to the portal user request and execute the business logic corresponding to the portal user request.
  • the embodiment of this application builds the management platform 100 with a three-layer architecture of external business interface, internal business module, and underlying blockchain platform management interface.
  • the management platform 100 implements the management platform 100 and the underlying blocks based on the blockchain platform management interface.
  • Interaction between blockchain platforms enables cross-chain data migration, and general blockchain functions such as chain information, transactions, blocks, and configurations can be queried based on business interface specifications.
  • Standardized interfaces (such as business interfaces, blockchain platform management interfaces) help to automate processes, facilitate unified management of heterogeneous blockchain networks in heterogeneous blockchain platforms, and have high scalability.
  • the method includes:
  • S202 The management platform 100 receives the cross-chain application submitted by the user.
  • the cross-chain application is used to migrate data stored in the first blockchain in the first blockchain network to the second blockchain in the second blockchain network.
  • the cross-chain application may include the identifier of the first blockchain network and the identifier of the second blockchain network.
  • the identifier of the first blockchain network and the identifier of the second blockchain network are unique and can be used to distinguish this blockchain network from other blockchain networks.
  • the user can trigger the cross-chain application operation through the client, and the client can respond to the user's cross-chain application operation, generate a cross-chain application, and then submit the cross-chain application to the management platform 100 .
  • a business server is also included between the client and the management platform 100.
  • Cross-chain applications can be submitted to the management platform 100 through the business server. In this way, the management platform 100 can receive cross-chain applications submitted by users through clients and business servers.
  • S204 The management platform 100 performs process approval based on the cross-chain application.
  • S206 is executed.
  • S208 is executed.
  • the management platform 100 can trigger process approval.
  • the process approval may be automatically performed by the management platform 100.
  • the management platform 100 may automatically approve the cross-chain application based on the relevant information carried in the cross-chain application and obtain the approval result.
  • the management platform 100 can also generate an approval request and send it to the client corresponding to the approver, so that the approver can approve the cross-chain application through his client, and then the management platform 100 obtains the approval request from the approver through his client.
  • the approval result returned by the client can be generated an approval request and send it to the client corresponding to the approver, so that the approver can approve the cross-chain application through his client, and then the management platform 100 obtains the approval request from the approver through his client. The approval result returned by the client.
  • the management platform 100 can stop starting the cross-chain process.
  • the management platform 100 may execute S206, that is, return a cross-chain failure notification to the user, so that the user can perform subsequent work based on the notification.
  • the approval result is passed, it means that the current cross-chain application has been approved, and the management platform 100 executes S208 to start the cross-chain process.
  • S206 The management platform 100 returns a cross-chain failure notification to the user.
  • the cross-chain failure notification is a notification message that responds to the cross-chain application submitted by the user.
  • the notification message is used to communicate The user is informed that the cross-chain between the first blockchain network and the second blockchain network failed.
  • the cross-chain failure notification can also include the cause of the cross-chain failure, which can be characterized by a reason code.
  • the reason code can be a string, such as a string of numbers, a string of letters, or a mixed string of numbers and letters. The following is explained with an example.
  • the cross-chain failure notification carries reason code 001, where reason code 001 is used to indicate that the approval has not been passed.
  • S204 to S206 are optional steps in the embodiment of the present application, and the above-mentioned S204 to S206 may not be executed when executing the management method of the blockchain network.
  • the management platform 100 can also directly execute S208 to perform cross-chain after receiving the cross-chain application.
  • the management platform 100 authorizes the first blockchain network and the second blockchain network to cross-chain.
  • Cross-chaining between the first blockchain network and the second blockchain network includes sharing data between the first blockchain network and the second blockchain network, or interoperating, for example, the first blockchain network transmits data to the second blockchain network.
  • the blockchain network writes data, or the first blockchain network reads data from the second blockchain network.
  • the management platform 100 can authorize the access rights of the first blockchain network and the second blockchain network, thereby authorizing the first blockchain network and the second blockchain network to cross-chain.
  • the management method of the blockchain network may be executed without executing the above-mentioned S208.
  • the management platform 100 can set a white list in advance, so that there is no need to authorize the blockchain networks in the white list, such as the first blockchain network and the second blockchain network.
  • the management platform 100 obtains the chain information of the first blockchain network and the chain information of the second blockchain network in the database.
  • Chain information includes information about the blockchain copy maintained by each node in the blockchain network, such as the core of the blockchain copy.
  • the core includes but is not limited to different types such as fabric, Quorum or Ethereum. Further, the chain information may also include one or more of alliance member and sub-chain information.
  • the management platform 100 can obtain the chain information of the blockchain network managed by the management platform 100 from the database.
  • the blockchain network managed by the management platform 100 includes the above-mentioned first blockchain network and the second blockchain network, In this way, the chain information of the first blockchain network and the chain information of the second blockchain network can be obtained.
  • the database may be a private database of the management platform 100 or a third-party database accessed by the management platform 100, which is not limited in the embodiments of the present application.
  • S212 The management platform 100 verifies the first blockchain network and the second blockchain through cross-chain rules based on the chain information of the first blockchain network and the chain information of the second blockchain network.
  • the network s cross-chain capabilities.
  • execute S214 when the management platform 100 determines that the first blockchain network and the second blockchain network support cross-chain, execute S214; when the management platform 100 determines that the first blockchain network or the second blockchain The network does not support cross-chain, execute S206.
  • the management platform 100 can set cross-chain rules.
  • the cross-chain rules can be default settings or can be set according to the rule content configured by the user. Then the management platform 100 can match the chain information of the first blockchain network and the chain information of the second blockchain network with the cross-chain rules, thereby verifying the first blockchain network and the second blockchain network. cross-chain capabilities. When the match is successful, it means that the first blockchain network and the second blockchain network support cross-chain, otherwise the first blockchain network and the second blockchain network do not support cross-chain.
  • the management platform 100 can stop executing the cross-chain process and execute S206 to return a cross-chain failure notification to the user.
  • the cross-chain failure notification can carry the cross-chain failure reason.
  • the reason code of the cross-chain failure reason can be 002, which is used to identify the first zone.
  • the blockchain network and the second blockchain network do not support cross-chain, resulting in cross-chain failure.
  • the management platform 100 can execute S214 to start subsequent processes.
  • S210 to S212 is an implementation method for the management platform 100 to verify the cross-chain capabilities of the first blockchain network and the second blockchain network.
  • the management platform 100 can also set other verification rules, such as rules related to sub-chains or rules related to alliance members, and verify the first blockchain network and the second blockchain network based on the verification rules.
  • Cross-chain capabilities In some embodiments, the management platform 100 may not perform the above verification steps and directly perform subsequent cross-chain processes.
  • the management platform 100 purchases relay services from the relay device 200.
  • the management platform 100 can use a relay method to implement cross-chain.
  • the relay device 200 can provide relay services in the form of cloud services, and the management platform 100 can purchase the relay services from the relay device 200 as needed.
  • the relay service can be a service encapsulated by a container or a service encapsulated by a virtual machine.
  • the relay device 200 can start the container through the container engine, thereby starting the relay service.
  • the relay device 200 can start the virtual machine through the virtual machine deployment engine, thereby starting the relay service.
  • the management platform 100 obtains the configuration information of the first blockchain network and the configuration information of the second blockchain network in the database.
  • the configuration information includes the connection address of the blockchain network, the application name associated with the blockchain network, the type of the blockchain network, user identification, identity certificate, certificate key (such as TLS key) or one or more of the private keys.
  • the database of the management platform 100 stores the configuration information of the blockchain network managed by the management platform 100. Based on this, the management platform 100 can obtain the configuration information of the first blockchain network and the second blockchain network from the database. configuration information.
  • the management platform 100 registers the configuration information of the first blockchain network and the configuration information of the second blockchain network to the relay service of the relay device 200.
  • the management platform 100 can call the cross-chain gateway to register the configuration information of the first blockchain network and the configuration information of the second blockchain network to the relay service of the relay device 200 .
  • the relay service can maintain a registry, and the management platform 100 can write the configuration information into the registry of the relay service through the cross-chain gateway, thereby registering the configuration information to the relay service.
  • the above S218 to S220 are an implementation manner for the management platform 100 to register the configuration information of the first blockchain network and the configuration information of the second blockchain network to the relay device.
  • the management platform 100 can also directly register the configuration information to the relay device without registering to the relay service of the relay device.
  • the management platform 100 calls the blockchain platform management interface to install cross-chain contracts for the first blockchain network and the second blockchain network respectively.
  • the blockchain platform management interface can interact with different underlying blockchain platforms. Based on this, the management platform 100 determines that the blockchain network that needs to be cross-chained is the above-mentioned first blockchain network and the second area according to the cross-chain application. In the blockchain network, cross-chain contracts can be installed for the first blockchain network and the second blockchain network respectively through the blockchain platform management interface.
  • the management platform 100 can install cross-chain contracts for the first blockchain network and the second blockchain network through remote control.
  • Cross-chain contracts are decentralized applications that include multiple smart contracts deployed on different blockchain networks. These smart contracts can communicate with each other and together form a complete application.
  • the cross-chain contract is used for the first blockchain network and the second blockchain network to establish connections with the relay device respectively, and to conduct cross-chain transactions through the relay device.
  • the first blockchain network and the second blockchain network can initialize the cross-chain development framework (software development kit, SDK) and establish a link between the cross-chain SDK and the relay service to facilitate the subsequent execution of cross-chain transactions.
  • SDK software development kit
  • S224 The management platform 100 returns a cross-chain success notification.
  • the cross-chain success notification is a notification message in response to the cross-chain application submitted by the user.
  • the notification message is used to notify the user that the cross-chain between the first blockchain network and the second blockchain network is successful.
  • the above-mentioned S224 is an optional step in the embodiment of the present application, and the above-mentioned S224 may not be executed when performing the blockchain network management method in the embodiment of the present application.
  • embodiments of the present application provide a management method for a blockchain network.
  • the management platform 100 manages different blockchain networks such as heterogeneous blockchain networks through a unified blockchain platform management interface. Install cross-chain contracts to integrate cross-chain capabilities and truly open up the business of the blockchain network. Data can be migrated between different blockchain networks without adapting to heterogeneous kernels, saving transformation costs.
  • this method encapsulates cumbersome cross-chain processes into the management platform, greatly simplifying user operations, improving ease of use, and ensuring traceability management of the entire data life cycle.
  • the relay device 200 can realize cross-chain transactions between the first blockchain network and the second blockchain network.
  • the cross-chain transaction may be migrating data from the first blockchain network to data from the second blockchain network.
  • the cross-chain transaction may be to migrate the digital assets of the first blockchain network to the second blockchain network.
  • the cross-chain transaction may also include migrating the digital assets of the second blockchain network to the first blockchain network.
  • Blockchain network Taking the digital asset of the first blockchain network as Ethereum and the digital asset of the second blockchain network as Bitcoin, for example, the cross-chain transaction can be from account A of the first blockchain network to the second block.
  • Account B on the first blockchain network sends 50 ETH
  • account B on the second blockchain network sends 1 BTC to account A on the first blockchain network.
  • the user can submit a cross-chain transaction request to the management platform 100 through the client.
  • the management platform 100 can interact with the relay device 200 and instruct the relay device 200 to initiate the cross-chain transaction.
  • the cross-chain business module 104 of the management platform 100 can process the cross-chain transaction request, generate a cross-chain transaction initiation instruction, and then send the cross-chain transaction initiation instruction to the relay device 200, thereby instructing the relay device 200 to initiate the cross-chain transaction. trade.
  • the cross-chain transaction initiation instruction may carry transaction information of the cross-chain transaction.
  • the transaction information may include the identification of the sender and receiver of the cross-chain transaction and the transaction amount of the cross-chain transaction.
  • transaction information may include a source address (used to identify an account on one blockchain network), a destination address (used to identify an account on another blockchain network), and the amount of digital assets.
  • the relay device 200 can perform format conversion based on the transaction information of the cross-chain transaction to obtain the transaction information in the target format.
  • the target format includes the format supported by the first blockchain network.
  • the relay device 200 can generate a submission request according to the transaction information in the target format, and the first blockchain network executes the transaction submission according to the submission request and generates the first submission certificate.
  • the transaction hash may be included in this first proof of submission.
  • the first blockchain network may send the first submission proof and the transaction header of the cross-chain transaction to the relay device 200 .
  • the transaction header can include the sender and receiver of the cross-chain transaction The identification of the party and the transaction amount of the cross-chain transaction.
  • the relay device 200 can verify the cross-chain transaction based on the above-mentioned first submission certificate and transaction header. Specifically, it can verify whether the cross-chain transaction actually exists. Then, the relay device 200 can add the first transaction result to the consensus queue after passing the verification. Among them, the first transaction result is used to indicate the success or failure of the first blockchain network submission.
  • the first blockchain network can also send a submission request to the second blockchain network, and the second blockchain network performs transaction submission and generates a second submission certificate based on the submission request. Similarly, the transaction hash can be included in this second proof of submission. Then, the second blockchain network may send the second submission proof and the transaction header of the cross-chain transaction to the relay device 200.
  • the relay device 200 verifies the cross-chain transaction based on the above-mentioned second submission certificate and transaction header, and after passing the verification, adds the second transaction result to the consensus queue. Among them, the second transaction result is used to represent the success or failure of the second blockchain network submission.
  • the relay device 200 may add blocks to the relay chain according to the first transaction result and the second transaction result in the consensus queue to complete the cross-chain transaction.
  • a two-stage submission mechanism can also be used to complete cross-chain transactions between the relay device 200 and the blockchain network.
  • the relay device 200 may first send a pre-submit request to the first blockchain network, the first blockchain network performs the pre-submit and generates the corresponding first pre-submit certificate, and then sends the first pre-submit request to the relay device 200.
  • the relay device 200 After submitting the proof and the transaction header of the cross-chain transaction, the relay device 200 performs verification based on the first pre-submission proof and the transaction header of the cross-chain transaction. After passing the verification, the first pre-submission result is added to the consensus queue.
  • the first blockchain network sends a pre-commit request to the second blockchain network
  • the second blockchain network performs the pre-commit and generates the corresponding second pre-commit proof, and then sends the second pre-commit request to the relay device 200
  • the relay device 200 After submitting the proof and the transaction header of the cross-chain transaction, the relay device 200 performs verification based on the second pre-submission proof and the transaction header of the cross-chain transaction. After passing the verification, the second pre-submit result is added to the consensus queue.
  • the relay device 200 can add blocks to the relay chain based on the first pre-commit result, the second pre-commit result, the first transaction result and the second transaction result in the consensus queue, Thus completing the cross-chain transaction.
  • the management platform 100 can also support users to query transaction information, contract or block information through external business interfaces. Taking the query of transaction information as an example, the user can trigger the transaction query operation through the client, and the client can generate a transaction query request in response to the transaction query operation.
  • the transaction query request is generated according to the business interface provided by the management platform 100 .
  • the management platform 100 receives the transaction query request submitted by the user through the client, calls the blockchain platform management interface, and interacts with the blockchain network in the underlying blockchain platform to obtain transaction information.
  • the management platform 100 can then return the query results, which include the above transaction information.
  • Step 1 The user submits a cross-chain application to the management platform 100.
  • This cross-chain application is used to apply for cross-chain between blockchain network 1 and blockchain network 2.
  • the cross-chain application may include the identification of blockchain network 1 and blockchain network 2.
  • blockchain network 1 and blockchain network 2 can be networks in different alliances.
  • Step 2 The process approval module of the management platform 100 conducts process approval based on the cross-chain application. After the approval is passed, execute Step 3 to start the cross-chain process.
  • Step 3 The cross-chain business module of the management platform 100 obtains the chain information of the blockchain network managed in the database.
  • Step 4 The cross-chain business module of the management platform 100 verifies the cross-chain between blockchain network 1 and blockchain network 2 through cross-chain rules based on the chain information of blockchain network 1 and the chain information of blockchain network 2. chain ability. When the verification result is that blockchain network 1 and blockchain network 2 support cross-chain.
  • Step 5 The cross-chain business module of the management platform 100 purchases relay services from the relay device 200.
  • Step 6 The cross-chain business module of the management platform 100 obtains the configuration information of the blockchain network 1 and the configuration information of the blockchain network 2.
  • Step 7 The management platform 100 registers the configuration information with the relay service.
  • the management platform 100 may manage the relay device 200 in response to a management request for the relay device 200 . Specifically, the management platform 100 can respond to the management request for the relay device 200 by deploying, querying relay status, managing relay nodes, relay gateways, etc., thereby realizing a full life cycle management relay service.
  • Step 8 The management platform 100 calls the blockchain network management interface to install cross-chain contracts for blockchain network 1 and blockchain network 2.
  • Step 1 The user submits a cross-chain transaction request to the management platform 100.
  • the user can send a download request to the management platform 100 through the client to download the connection address, identity certificate, and certificate key of the blockchain network 1 and the connection address, identity certificate, and the blockchain network 2 from the management platform 100. Certificate key, etc., and then generate a cross-chain transaction request based on the connection address, identity certificate, and certificate key of the above-mentioned blockchain network 1 and blockchain network 2.
  • This cross-chain transaction request is used to request the execution of a transaction between blockchain network 1 and blockchain network 2.
  • account A on blockchain network 1 sends the Nth number to account B on blockchain network 2.
  • a digital asset receives M second digital assets sent by account B on the blockchain network 2, where N and M are positive numbers.
  • Step 2 The management platform 100 instructs the relay device 200 to initiate a cross-chain transaction according to the cross-chain transaction request.
  • the management platform 100 has launched the relay service on the relay device 200 and can interact with the relay device 200 (for example, the relay service on the device), thereby instructing the relay device 200 to start Cross-chain transactions.
  • Step 3 The relay device 200 sends a submission request to the blockchain network 1, receives the first submission certificate and transaction header sent by the blockchain network 1, and after passing the verification, adds the first transaction result to the consensus queue.
  • the relay device 200 may first perform format conversion on the transaction information of the cross-chain transaction, obtain the transaction information in the target format, generate a submission request based on the transaction information in the target format, and then send the submission request to the blockchain network 1 .
  • Blockchain network 1 executes transaction submission based on the above submission request and generates the first submission certificate. Then the blockchain network 1 can send the first submission proof and the transaction header of the cross-chain transaction to the relay device 200.
  • the relay device 200 verifies the cross-chain transaction based on the above-mentioned first submission proof and the transaction header of the cross-chain transaction. Verification After passing, the first transaction result is added to the consensus queue.
  • the relay device 200 can also first send a pre-submit request to the blockchain network 1, receive the first pre-submit certificate and transaction header sent by the blockchain network 1, and after passing the verification, send the first pre-submit request to the blockchain network 1. The results are added to the consensus queue.
  • Step 4 The relay device 200 receives the second submission certificate and transaction header sent by the blockchain network 2, and after passing the verification, adds the second transaction result to the consensus queue.
  • Blockchain network 2 may receive the submission request sent by blockchain network 1, perform transaction submission, and generate a second submission proof, and then send the second submission proof and transaction header to the relay device 200.
  • the relay device 200 verifies the cross-chain transaction based on the second submission certificate and the transaction header. After passing the verification, the second transaction result is added to the consensus queue.
  • blockchain network 1 When blockchain network 1 performs pre-commitment, blockchain network 1 can also send a pre-commit request to blockchain network 2, and blockchain network 2 performs pre-commitment and generates a second pre-commitment certificate. Then the blockchain network 2 can send the second pre-submit proof and transaction header to the relay device 200. After the verification is passed, the relay device 200 adds the second pre-submit result to the consensus queue.
  • Step 5 The relay device 200 adds a block to the relay chain based on the first transaction result and the second transaction result in the consensus queue.
  • the relay device 200 can generate a block with transaction information recorded and add the block to the relay chain to complete the cross-chain transaction.
  • Step 6 The user submits a transaction query request to the management platform 100.
  • Step 7 The management platform 100 obtains the chain information of the blockchain network managed by the management platform 100 in the database.
  • Step 8 The management platform 100 calls the blockchain platform management interface to interact with the blockchain network 1 and the blockchain network 2 according to the chain information, thereby obtaining transaction information.
  • management platform 100 can also interact with the blockchain network 1 and the blockchain network 2 to obtain the block list.
  • Step 9 The management platform 100 queries the transaction information through the relay chain.
  • the management platform 100 can interact with the relay device 200 to query the relay chain in the relay device 200 and obtain transaction information.
  • Step 10 The management platform 100 returns the query results.
  • the query results may include the transaction information obtained in steps 8 and 9.
  • This method achieves data sharing and information transfer between different single chains on the premise of ensuring trustworthiness, security, and privacy, opens up the blockchain network, and achieves unified cross-chain operation and maintenance monitoring to facilitate subsequent newly managed blocks. Application docking and business uploading to the chain network. In addition, this method does not require manual intervention and simplifies the cross-chain process.
  • the embodiment of the present application also provides a management platform 100 of the blockchain network as mentioned above.
  • the blockchain network management platform 100 provided by the embodiment of the present application will be introduced below with reference to the accompanying drawings.
  • the management platform 100 includes:
  • the interface module 101 is used to receive cross-chain applications submitted by users;
  • the cross-chain business module 104 is used to call the blockchain platform management interface to install cross-chain contracts for the first blockchain network and the second blockchain network according to the cross-chain application.
  • the cross-chain contract is used for all The first blockchain network and the second blockchain network establish connections with the relay device respectively, and perform cross-chain transactions through the relay device.
  • the interface module 101 (not shown in Figure 1) provides at least one interface for data exchange.
  • the interface module 101 may include a business interface through which cross-chain applications submitted by users can be received.
  • the interface module 101 is also used to:
  • the management platform 100 also includes:
  • the registration module 103 (not shown in Figure 1) is used to register the configuration information of the first blockchain network and the configuration information of the second blockchain network to the relay device.
  • the configuration information includes the connection address of the blockchain network, the application name associated with the blockchain network, the type of the blockchain network, user identification, identity certificate, certificate One or more of a key and a private key.
  • the interface module 101 is also used to:
  • the relay device 200 is used for:
  • Send a submission request to the first blockchain network receive the first submission certificate generated by the first blockchain network's transaction submission and the transaction header of the cross-chain transaction, and after passing the verification, send the first transaction result Join the consensus queue; receive the second submission certificate generated by the second blockchain network to execute the transaction submission and the transaction header of the cross-chain transaction, and after passing the verification, add the second transaction result to the consensus queue; according to The first transaction result and the second transaction result in the consensus queue are added to the relay chain to complete the cross-chain transaction.
  • the interface module 101 is also used to:
  • the management platform 100 also includes:
  • the query module 105 (not shown in Figure 1) is used to call the blockchain platform management interface to query the first blockchain in the first blockchain network and the second blockchain network.
  • the second blockchain obtains the transaction information and returns the transaction information to the user.
  • the transaction query request is generated according to a business interface provided by the management platform 100 .
  • the management platform 100 also includes:
  • Verification module 107 used to verify the cross-chain capabilities of the first blockchain network and the second blockchain network, and determine that the first blockchain network and the second blockchain network support Cross-chain.
  • the verification module 107 is specifically used to:
  • the management platform verifies the cross-chain capabilities of the first blockchain network and the second blockchain network according to the cross-chain rules, and determines the first blockchain network and the second blockchain network. Support cross-chain.
  • the management platform 100 also includes:
  • the relay management module 109 is configured to respond to a management request for the relay device 200 and manage the relay device.
  • the first blockchain network and the second blockchain network are networks in different alliances.
  • the management platform 100 of the blockchain network may correspond to performing the method described in the embodiment of the present application, and the above and other operations and/or functions of each module/unit of the management platform 100 of the blockchain network respectively In order to implement the corresponding processes of each method in the embodiment shown in Figure 2, for the sake of simplicity, they will not be described again here.
  • An embodiment of the present application also provides a computer cluster.
  • the computer cluster includes at least one computer, and any one of the at least one computer can be from a cloud environment or an edge environment, or can be a terminal device.
  • the computer cluster is specifically used to implement the functions of the management platform 100 of the blockchain network in the embodiment shown in Figure 5.
  • Figure 6 provides a schematic structural diagram of a computer cluster.
  • the computer cluster 60 includes multiple computers 600.
  • the computers 600 include a bus 601, a processor 602, a communication interface 603 and a memory 604.
  • the processor 602, the memory 604 and the communication interface 603 communicate through the bus 601.
  • the bus 601 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc.
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • the bus can be divided into address bus, data bus, control bus, etc. For ease of presentation, only one thick line is used in Figure 6, but it does not mean that there is only one bus or one type of bus.
  • the processor 602 can be a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP) or a digital signal processor (DSP). any one or more of them.
  • CPU central processing unit
  • GPU graphics processing unit
  • MP microprocessor
  • DSP digital signal processor
  • the communication interface 603 is used for communicating with the outside.
  • the communication interface 603 is used to receive cross-chain applications submitted by users, or receive cross-chain transaction requests.
  • Memory 604 may include volatile memory, such as random access memory (RAM). Memory 604 may also include non-volatile memory (non-volatile memory), such as read-only memory (ROM), flash memory, hard disk drive (HDD) or solid state drive (solid state drive) ,SSD).
  • RAM random access memory
  • ROM read-only memory
  • HDD hard disk drive
  • SSD solid state drive
  • Computer readable instructions are stored in the memory 604, and the processor 602 executes the computer readable instructions, so that the computer cluster 60 executes the aforementioned management method of the blockchain network (or implements the functions of the aforementioned management platform 100).
  • each module of the management platform 100 described in Figure 5 is such as the interface module 101, the cross-chain business module 104, or the registration module 103
  • the software or program code required to perform the functions of each module in Figure 5 can be stored in at least one memory in the computer cluster 60 604 in.
  • At least one processor 602 executes the program code stored in the memory 604, so that the computer cluster 60 executes the aforementioned management method of the blockchain network.
  • An embodiment of the present application also provides a computer-readable storage medium.
  • the computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a data center containing one or more available media.
  • the available media may be magnetic media (eg, floppy disk, hard disk, tape), optical media (eg, DVD), or semiconductor media (eg, solid state drive), etc.
  • the computer-readable storage medium includes instructions that instruct the computer or computer cluster to perform the above-mentioned management method of the blockchain network.
  • An embodiment of the present application also provides a computer program product.
  • the computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are generated in whole or in part.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another, for example, the computer instructions may be transmitted from a network A website, computer or data center transmits to another website, computer or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means.
  • the computer program product may be a software installation package. If it is necessary to use any of the aforementioned blockchain network management methods, the computer program product may be downloaded and executed on a computer or computer cluster.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • Power Engineering (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请提供了一种区块链网络的管理方法,包括:管理平台接收用户提交的跨链申请,然后根据跨链申请,调用区块链平台管理接口分别为第一区块链网络和第二区块链网络安装跨链合约。其中,跨链合约用于第一区块链网络、第二区块链网络分别与中继装置建立连接,并通过中继装置进行跨链交易。该方法中,管理平台通过统一的区块链平台管理接口对不同区块链网络如异构区块链网络安装跨链合约,从而实现融入跨链能力,真正打通区块链网络的业务,无需适配异构内核,即可在不同区块链网络之间进行数据迁移,节省了改造成本。

Description

一种区块链网络的管理方法及相关设备
本申请要求于2022年06月21日提交中国国家知识产权局、申请号为202210705932.0、发明名称为“一种区块链网络的管理方法及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及区块链技术领域,尤其涉及一种区块链网络的管理方法、平台、计算机集群、计算机可读存储介质、计算机程序产品。
背景技术
随着数据存储技术的不断发展,区块链网络应运而生。区块链网络是一种分布式存储数据的对等互联(peer to peer,P2P)网络,该对等互联网络中的节点为对等(peer)节点。每个peer节点维护至少一条区块链,利用区块链中的块链式数据结构来验证和存储数据。
区块链作为一种分布式的公开账本,具有去中心化、开放匿名、不可伪造篡改等特点,凭借其独特的信任机制和信息传递技术,在各个领域都有着广泛的应用,推动着科技领域的变革。
目前,相关技术采用服务端和区块链网络构建业务的服务系统。其中,区块链网络包括多个节点,区块链网络中的多个节点可以是不同部门管理的节点。具体地,服务端可以接收客户端(也可以称作用户端)的请求,根据该请求进行分类处理、审批,然后服务端可以将与客户端的交互数据,上传至区块链网络进行存储。基于不同业务的需求,企事业单位或组织等用户可以创建或加入多个区块链网络。针对每个区块链网络分别进行管理需要消耗大量的时间和精力。
并且,各区块链网络通常是独立的,区块链网络之间难以进行数据共享。例如,属于不同联盟的区块链网络难以进行数据共享,当某一区块链网络发生故障时,难以很好地迁移区块链中存储的数据。
发明内容
本申请提供了一种区块链网络的管理方法,该方法引入了管理平台,管理平台通过统一的区块链平台管理接口对不同区块链网络如异构区块链网络安装跨链合约,从而实现融入跨链能力,真正打通区块链网络的业务,无需适配异构内核,即可在不同区块链网络之间进行数据迁移,节省了改造成本。本申请还提供了与上述方法对应的区块链网络的管理平台、计算机集群、计算机可读存储介质以及计算机程序产品。
第一方面,本申请实施例提供了一种区块链网络的管理方法。该方法可以由区块链网络的管理平台(简称为管理平台)执行。该管理平台可以是软件系统,该软件系统部署在计算机集群中,计算机集群通过运行软件系统的程序代码,从而执行本申请实施例的区块链网络的管理方法。在一些实施例中,该管理平台也可以是具有区块链网络管理功能的硬件系统,该硬件系统可以是计算机集群中的一台或多台计算机。
具体地,管理平台接收用户提交的跨链申请,然后根据所述跨链申请,调用区块链平台管理接口分别为第一区块链网络和第二区块链网络安装跨链合约,所述跨链合约用于所述第一区块链网络、所述第二区块链网络分别与中继装置建立连接,并通过所述中继装置进行跨链交易。
本申请实施例的管理平台通过统一的区块链平台管理接口对不同区块链网络如异构区块链网络安装跨链合约,从而实现融入跨链能力,真正打通区块链网络的业务,无需适配异构内核,即可在不同区块链网络之间进行数据迁移,节省了改造成本。并且,该方法封装跨链的繁琐流程到管理平台内,大幅度简化用户的操作,提高易用性,保证数据全生命周期的追溯管理。
在一些可能的实现方式中,所述管理平台还可以获取所述第一区块链网络的配置信息和所述第二区块链网络的配置信息,然后将将所述第一区块链网络的配置信息和所述第二区块链网络的配置信息注册至所述中继装置。
如此,可以为后续第一区块链网络、第二区块链网络与中继装置建立连接提供帮助,进而为第一区块链网络和第二区块链网络通过该中继装置进行跨链交易提供帮助。
在一些可能的实现方式中,所述配置信息包括所述区块链网络的连接地址、所述区块链网络关联的应用名称、所述区块链网络的类型、用户标识、身份证书、证书密钥、私钥中的一种或多种。
其中,区块链网络的连接地址、所述区块链网络关联的应用名称、区块链网络的类型等配置信息可以辅助中继装置与区块链网络建立连接,用户标识、身份证书、证书密钥、私钥可以辅助中继装置进行身份验证,保证可靠性和安全性。
在一些可能的实现方式中,所述管理平台可以接收所述用户提交的跨链交易请求,根据所述跨链交易请求指示所述中继装置启动跨链交易,然后所述中继装置向第一区块链网络发送提交请求,接收所述第一区块链网络执行交易提交生成的第一提交证明以及所述跨链交易的交易头,并在验证通过后,将第一交易结果加入共识队列;所述中继装置接收所述第二区块链网络执行交易提交生成的第二提交证明以及所述跨链交易的交易头,并在验证通过后,将第二交易结果加入共识队列;所述中继装置根据所述共识队列中的所述第一交易结果和所述第二交易结果,向中继链添加区块,以完成所述跨链交易。
如此,管理平台统一纳管的不同区块链网络之间通过中继跨链方式实现跨链交易,为区块链网络融入跨链能力,真正打通区块链网络的业务,无需适配异构内核,即可在不同区块链网络之间进行数据迁移,节省了改造成本。
在一些可能的实现方式中,所述管理平台还可以接收用户发送的交易查询请求,然后所述管理平台调用所述区块链平台管理接口,查询所述第一区块链网络中的第一区块链和所述第二区块链网络中的第二区块链,获得所述交易信息。接着管理平台向用户返回所述交易信息。
在该方法中,该方法基于区块链平台管理接口实现管理平台与底层的区块链平台的交互,规范查询链信息、交易、区块、配置等区块链通用功能。
在一些可能的实现方式中,所述交易查询请求根据所述管理平台提供的业务接口生成。如此可以实现统一的跨链运维监控,方便后续新纳管链的应用对接、业务上链。
在一些可能的实现方式中,所述管理平台还可以校验所述第一区块链网络和所述第二区块链网络的跨链能力,确定所述第一区块链网络和所述第二区块链网络支持跨链。
该方法通过先进行跨链能力校验,提前检出不具备跨链能力的区块链网络,并针对不具备跨链能力的区块链网络,终止后续跨链流程,如此可以避免因区块链网络不具备跨链能力导致跨链失败。
在一些可能的实现方式中,所述管理平台可以根据跨链规则校验所述第一区块链网络和所述第二区块链网络的跨链能力,确定所述第一区块链网络和所述第二区块链网络支持跨链。
其中,跨链规则可以为通用的跨链规则,或者是用户自定义的跨链规则。基于上述跨链规则可以实现自动化的跨链能力校验,提高校验效率。此外,基于用户自定义的跨链规则进行跨链能力校验,可以满足不同业务的需求。
在一些可能的实现方式中,所述管理平台还可以响应于对所述中继装置的管理请求,对所述中继装置进行管理。如此,管理平台可以实现全生命周期的管理中继服务,与中继装置交互,包括部署、查询中继状态、管理中继节点、中继网关等。
在一些可能的实现方式中,所述第一区块链网络和所述第二区块链网络为不同联盟中的网络。如此可以实现不同联盟间共享数据,提高区块链网络的可用性。
第二方面,本申请提供一种区块链网络的管理平台。所述管理平台包括:
接口模块,用于接收用户提交的跨链申请;
跨链业务模块,用于根据所述跨链申请,调用区块链平台管理接口分别为第一区块链网络和第二区块链网络安装跨链合约,所述跨链合约用于所述第一区块链网络、所述第二区块链网络分别与中继装置建立连接,并通过所述中继装置进行跨链交易。
在一些可能的实现方式中,所述接口模块还用于:
获取所述第一区块链网络的配置信息和所述第二区块链网络的配置信息;
所述管理平台还包括:
注册模块,用于将所述第一区块链网络的配置信息和所述第二区块链网络的配置信息注册至所述中继装置。
在一些可能的实现方式中,所述配置信息包括所述区块链网络的连接地址、所述区块链网络关联的应用名称、所述区块链网络的类型、用户标识、身份证书、证书密钥、私钥中的一种或多种。
在一些可能的实现方式中,所述接口模块还用于:
接收所述用户提交的跨链交易请求,根据所述跨链交易请求指示所述中继装置启动跨链交易;
其中,所述中继装置用于:
向第一区块链网络发送提交请求,接收所述第一区块链网络执行交易提交生成的第一提交证明以及所述跨链交易的交易头,并在验证通过后,将第一交易结果加入共识队列;接收所述第二区块链网络执行交易提交生成的第二提交证明以及所述跨链交易的交易头,并在验证通过后,将第二交易结果加入共识队列;根据所述共识队列中的所述第一交易结果和所述第二交易结果,向中继链添加区块,以完成所述跨链交易。
在一些可能的实现方式中,所述接口模块还用于:
接收用户发送的交易查询请求;
所述管理平台还包括:
查询模块,用于调用所述区块链平台管理接口,查询所述第一区块链网络中的第一区块链和所述第二区块链网络中的第二区块链,获得所述交易信息,向用户返回所述交易信息。
在一些可能的实现方式中,所述交易查询请求根据所述管理平台提供的业务接口生成。
在一些可能的实现方式中,所述管理平台还包括:
校验模块,用于校验所述第一区块链网络和所述第二区块链网络的跨链能力,确定所述第一区块链网络和所述第二区块链网络支持跨链。
在一些可能的实现方式中,所述校验模块具体用于:
所述管理平台根据跨链规则校验所述第一区块链网络和所述第二区块链网络的跨链能力,确定所述第一区块链网络和所述第二区块链网络支持跨链。
在一些可能的实现方式中,所述管理平台还包括:
中继管理模块,用于响应于对所述中继装置的管理请求,对所述中继装置进行管理。
在一些可能的实现方式中,所述第一区块链网络和所述第二区块链网络为不同联盟中的网络。
第三方面,本申请提供一种计算机集群。所述计算机集群包括至少一台计算机,所述至少一台计算机包括至少一个处理器和至少一个存储器。所述至少一个处理器、所述至少一个存储器进行相互的通信。所述至少一个处理器用于执行所述至少一个存储器中存储的指令,以使得计算机或计算机集群执行如第一方面或第一方面的任一种实现方式所述的区块链网络的管理方法。
第四方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,所述指令指示计算机或计算机集群执行上述第一方面或第一方面的任一种实现方式所述的区块链网络的管理方法。
第五方面,本申请提供了一种包含指令的计算机程序产品,当其在计算机或计算机集群上运行时,使得计算机或计算机集群执行上述第一方面或第一方面的任一种实现方式所述的区块链网络的管理方法。
本申请在上述各方面提供的实现方式的基础上,还可以进行进一步组合以提供更多实现方式。
附图说明
为了更清楚地说明本申请实施例的技术方法,下面将对实施例中所需使用的附图作以简单地介绍。
图1为本申请实施例提供的一种数据管理系统的架构示意图;
图2为本申请实施例提供的一种区块链网络的管理方法的流程图;
图3为本申请实施例提供的一种跨链申请的流程图;
图4为本申请实施例提供的一种跨链交易的流程图;
图5为本申请实施例提供的一种区块链网络的管理平台的结构示意图;
图6为本申请实施例提供的一种计算机集群的结构示意图。
具体实施方式
本申请实施例中的术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。
首先对本申请实施例中所涉及到的一些技术术语进行介绍。
区块链网络是一种由多个节点形成的去中心化网络。区块链网络中的节点通过点对点连接,形成对等互联(Peer-to-Peer,P2P)网络。在该对等互联网络中,节点不存在中央化的服务和层级结构,各节点是对等的,因此该网络中的节点也称作对等节点,即peer节点。
区块链网络用于为应用程序(可简称为应用)提供分布式账本及智能合约(smart contract)服务。其中,智能合约中定义有交易逻辑。智能合约被用来生成交易,这些交易会被分发至区块链网络中的每个peer节点,每个peer节点在各自的账本副本上记录这些交易,并且账本副本不可篡改。交易通常可以以区块的形式记录,不同交易可以记录在不同区块中,不同区块可以连接形成区块链,因此,账本副本可以是区块链。
区块链网络的管理平台,也称作链管平台、管理平台,是集中式运营或运维区块链网络的系统。该系统可以通过提供开放的平台接口协议标准,允许用户平滑接入名下的各类区块链网络,实现统一的管理监控。
目前,管理平台通常搭建在业务服务器和后端的区块链网络的中间层,通过提供开放接口实现区块链网络的管控。该方法通过对用户名下的区块链网络进行一站式管理,可以节省运营或运维的成本。
然而,各区块链网络通常是独立的,区块链网络的扩张、子链构建通常局限在同一区块链网络,网络规模有限。而且,不同区块链网络之间难以进行数据共享。例如,属于不同联盟的区块链网络难以进行数据共享,当某一区块链网络发生故障时,难以很好地迁移区块链中存储的数据。
有鉴于此,本申请实施例提供了一种区块链网络的管理方法。该方法可以由管理平台执行。其中,管理平台可以是软件系统,该软件系统部署在计算机集群中,计算机集群通过运行软件系统的程序代码,从而执行本申请实施例的区块链网络的管理方法。在一些实施例中,该管理平台也可以是具有区块链网络管理功能的硬件系统,该硬件系统可以是计算机集群中的一台或多台计算机。
具体地,管理平台接收用户提交的跨链申请,该跨链申请用于将第一区块链网络中的第一区块链存储的数据迁移至第二区块链网络中的第二区块链,然后管理平台根据所述跨链申请,调用区块链平台管理接口分别为所述第一区块链网络和所述第二区块链网络安装跨链合约。其中,跨链合约用于所述第一区块链网络、所述第二区块链网络分别与中继装置建立连接,并通过所述中继装置进行跨链交易。
区别于传统管理平台对纳管的区块链网络进行简单罗列、单一管理,本申请实施例的管理平台通过统一的区块链平台管理接口对不同区块链网络如异构区块链网络安装跨链合 约,从而实现融入跨链能力,真正打通区块链网络的业务,无需适配异构内核,即可在不同区块链网络之间进行数据迁移,节省了改造成本。并且,该方法封装跨链的繁琐流程到管理平台内,大幅度简化用户的操作,提高易用性,保证数据全生命周期的追溯管理。
本申请实施例的区块链网络的管理方法以及管理平台可以应用于不同行业或领域。例如,该管理平台可以是针对金融行业的区块链网络的管理平台,通过执行本申请实施例的区块链网络的管理方法,可以实现不同金融机构的区块链网络之间的跨链交易。又例如,该管理平台可以是针对政务的区块链网络的管理平台,通过执行本申请实施例的区块链网络的管理方法,可以实现不同组织或部门(如不同地市税务局)的区块链网络之间的跨链交易。
为了使得本申请的技术方案更加清楚和易于理解,下面结合附图对本申请实施例的系统架构进行介绍。
参见图1所示的数据管理系统的系统架构图,该数据管理系统10包括管理平台100和中继装置200。其中,管理平台100可以通过区块链平台管理接口与不同区块链平台中的区块链网络20连接。
其中,区块链网络20可以依托于区块链平台建立。区块链平台是指用于建立区块链网络20,并对区块链网络20以及区块链网络20中的区块链副本(分布式账本)进行管理的平台。根据区块链平台内核不同,可以将区块链平台分为不同类型。例如,区块链平台可以基于内核分为Fabric、Quorum、以太坊等不同类型,上述不同类型的区块链平台也称为异构区块链平台。基于不同类型的区块链平台建立的区块链网络称为异构区块链网络,可以简称为异构链。需要说明的是,每个区块链网络20承载有至少一种业务逻辑,因此,该区块链网络20也可以称作业务链。
在图1的示例中,区块链平台管理接口可以包括异构区块链平台管理接口。管理平台100可以通过异构区块链平台管理接口连接异构区块链平台1中的区块链网络1、异构区块链平台2中的区块链网络2连接,从而实现对区块链网络1和区块链网络2的统一管理。
管理平台100为云平台中的软件系统或硬件系统时,该管理平台100可以包括原生区块链平台管理接口,管理平台100可以通过该原生区块链平台管理接口对原生区块链平台中的区块链网络,如区块链网络3和区块链网络4连接,从而实现对区块链网络3和区块链网络4的统一管理。
在本实施例中,管理平台100用于接收用户提交的跨链申请,该跨链申请用于将第一区块链网络(例如是图1中的区块链网络1)中的第一区块链存储的数据迁移至第二区块链网络(例如是图1中的区块链网络2)中的第二区块链,接着根据跨链申请,调用区块链平台管理接口(例如是图1中的异构区块链平台管理接口)分别为第一区块链网络和第二区块链网络安装跨链(Inter-BlockChain)合约。
跨链合约是一种两个或多个不同区块链上的数字资产以及功能状态互相传递、转移和交换的智能合约。在本实施例中,跨链合约用于所述第一区块链网络、所述第二区块链网络分别与中继装置200建立连接,并通过所述中继装置200进行跨链交易。
与管理平台100类似,中继装置200可以是软件装置,也可以是硬件装置。中继装置 200可以提供中继服务,从而实现在多个区块联网络中加入一个数据结构,使得两个区块链网络可以通过该数据结构进行数据交互。
其中,中继装置200充当数据收集者的角色,不依赖于可信的第三方进行交易验证。具体地,中继装置200可以在获得一个区块链网络发送的数据后自行验证。自行验证的方式依据中继装置200的结构不同而不同。例如BTC-Relay依赖于简单支付验证(Simple Payment Verification,SPV)证明,Cosmos还依赖验证节点签名数量等。
如此,中继装置200通过中继链补全了管理平台100纳管的区块链网络间的协作能力,扩大了业务规模和灵活性,提高了区块链网络的稳定性,在数据丢失或系统废弃的情况下,支持对数据进行跨链迁移。
以上对管理平台100和中继装置200的交互进行了介绍,下面对管理平台100的内部结构进行介绍。如图1所示,从业务逻辑的角度,管理平台100可以包括链内业务模块102和跨链业务模块104。
其中,链内业务模块102用于对区块链网络20(包括但不限于公有链、联盟链)内部进行管理。例如,链内业务模块102用于创建、加入、退出、删除联盟,又例如链内业务模块102用于创建、加入、退出、删除业务链。跨链业务模块104用于对不同区块链网络20进行跨链管理。该跨链管理不仅支持同构跨链管理,即同构区块链网络之间的跨链管理,还可以支持异构管理,即异构区块链网络之间的跨链管理。跨链管理包括不同区块链网络20之间的数据迁移,进一步地,跨链管理还以包括不同区块链网络20之间的互操作,如跨链读、跨链写、跨链查询账本等等。考虑到一些区块链网络20不具备跨链能力,跨链业务模块104还支持配置跨链规则,并基于该跨链规则判断区块链网络20是否支持跨链,然后在区块链网络20支持跨链的情况下,为区块链网络20安装跨链合约。
在一些可能的实现方式中,管理平台100还包括数据库106。该数据库106可以保存用户数据、链信息、管理历史流程或操作记录中的一种或多种。其中,用户数据包括用户标识(identifer,ID)、身份证书、证书密钥中的一种或多种。用户标识具有唯一性,用于区分不同用户。身份证书为标识身份的数字证书,通常可以是数位凭证认证机构(Certificate Authority,CA)发放。在一些实施例中,身份证书可以是传输层安全(Transport Layer Security,TLS)证书。该身份证书中可以包括证书密钥,该证书密钥可以为公钥,如此,发送端(如用户的客户端)可以采用公钥进行加密,接收端(如业务服务器等服务端)可以根据与该公钥对应的私钥进行解密,从而保障数据安全性。链信息包括存储在区块链中的信息,例如是交易信息等等。管理历史流程包括在历史时间段对区块链网络进行管理的流程,操作记录包括通过管理平台100执行的操作的记录。上述管理历史流程可以为后续管理提供参考,上述操作记录可以便于追溯。
需要说明的是,管理平台100还包括业务接口。该业务接口为对外统一的接口。管理平台100可以通过上述业务接口对接不同业务的业务服务器(图1中未示出),以业务接口统一入口用户请求,包括用户注册、链的变更调度、链信息获取、监控告警或节点管理等请求。其中,链的变更调度包括创建业务链、加入业务链、退出业务链或删除业务链等,链信息获取包括获取区块链中存储的交易信息等等,监控告警包括在设置的监控指标如中央处理器(central processing unit,CPU)利用率达到告警阈值时进行告警提示,节点管理包 括节点增加或节点删除。
进一步地,管理平台100还可以包括流程审批模块108,流程审批模块108用于对业务接口接收的入口用户请求如跨链申请等进行审批授权。当审批结果为通过时,链内业务模块102或跨链业务模块104可以响应于入口用户请求,执行该入口用户请求对应的业务逻辑。
本申请实施例以对外的业务接口、内部的业务模块、底层的区块链平台管理接口的三层架构搭建管理平台100,管理平台100基于区块链平台管理接口实现管理平台100与底层区块链平台的交互,实现跨链迁移数据,并基于业务接口规范查询链信息、交易、区块、配置等区块链通用功能。规范化的接口(如业务接口、区块链平台管理接口)有助于实现流程的自动化,方便异构区块链平台中异构区块链网络的统一管理,并且具有较高的可扩展性。
为了使得本申请的技术方案更加清楚、易于理解,下面将结合附图对本申请实施例的区块链网络的管理方法进行介绍。
参见图2所示的区块链网络的管理方法的流程图,该方法包括:
S202:管理平台100接收用户提交的跨链申请。
跨链申请用于将第一区块链网络中的第一区块链存储的数据迁移至第二区块链网络中的第二区块链。基于此,跨链申请可以包括第一区块链网络的标识和第二区块链网络的标识。其中,第一区块链网络的标识、第二区块链网络的标识具有唯一性,可以用于区分该区块链网络和其他区块链网络。
具体地,用户可以通过客户端触发跨链申请操作,客户端可以响应于用户的跨链申请操作,生成跨链申请,然后向管理平台100提交跨链申请。进一步地,客户端与管理平台100之间还包括业务服务器,跨链申请可以经过业务服务器,通过业务服务器提交至管理平台100。如此,管理平台100可以接收用户通过客户端、业务服务器提交的跨链申请。
S204:管理平台100根据跨链申请进行流程审批,当审批结果为不通过时,执行S206,当审批结果为通过时,执行S208。
针对重要性较高或敏感度较高的业务,当用户触发与上述业务相关的跨链申请时,管理平台100可以触发流程审批。其中,流程审批可以是管理平台100自动地进行流程审批,例如,管理平台100可以根据跨链申请中携带的相关信息,自动审批该跨链申请,获得审批结果。在一些实施例中,管理平台100也可以生成审批请求,并发送至审批人对应的客户端,以便于审批人通过其客户端对跨链申请进行审批,然后管理平台100获得审批人通过其客户端返回的审批结果。
审批结果为不通过时,表征当前跨链申请未通过审批,管理平台100可以停止启动跨链流程。管理平台100可以执行S206,即向用户返回跨链失败通知,以便于用户根据该通知执行后续工作。审批结果为通过时,表征当前跨链申请通过审批,管理平台100执行S208,以启动跨链流程。
S206:管理平台100向用户返回跨链失败通知。
跨链失败通知是对用户提交的跨链申请进行响应的一种通知消息,该通知消息用于通 知用户第一区块链网络和第二区块链网络跨链失败。
在一些可能的实现方式中,跨链失败通知还可以包括跨链失败原因,该原因可以通过原因码reason code表征。原因码可以是字符串,例如是数字串、字母串或者是数字和字母的混合字符串。下面结合一个示例进行说明。在该示例中,跨链失败通知携带有原因码001,其中,原因码001用于表示审批不通过。
需要说明的是,上述S204至S206为本申请实施例的可选步骤,执行区块链网络的管理方法也可以不执行上述S204至S206。例如,管理平台100也可以在接收到跨链申请,直接执行S208进行跨链。
S208:管理平台100授权第一区块链网络和第二区块链网络进行跨链。
第一区块链网络和第二区块链网络跨链包括第一区块链网络和第二区块链网络之间共享数据,或者进行互操作,例如,第一区块链网络向第二区块链网络写数据,或者第一区块链网络从第二区块链网络读数据。为此,管理平台100可以对第一区块链网络和第二区块链网络的访问权限进行授权,从而实现授权第一区块链网络和第二区块链网络进行跨链。
执行区块链网络的管理方法也可以不执行上述S208。例如,管理平台100可以预先设置白名单,如此无需对白名单内的区块链网络如第一区块链网络和第二区块链网络进行授权。
S210:管理平台100获取数据库中第一区块链网络的链信息和第二区块链网络的链信息。
链信息包括区块链网络中各节点维护的区块链副本的信息,例如是区块链副本的内核。该内核包括但不限于fabric、Quorum或以太坊等不同类型。进一步地,链信息还可以包括联盟成员、子链信息中的一种或多种。
管理平台100可以从数据库中获取该管理平台100纳管的区块链网络的链信息,该管理平台100纳管的区块链网络包括上述第一区块链网络和第二区块链网络,由此可以获得第一区块链网络的链信息以及第二区块链网络的链信息。
其中,数据库可以是管理平台100的私有数据库,也可以是管理平台100接入的第三方数据库,本申请实施例对此不作限制。
S212:管理平台100根据所述第一区块链网络的链信息和第二区块链网络的链信息,通过跨链规则校验所述第一区块链网络和所述第二区块链网络的跨链能力。当管理平台100确定所述第一区块链网络和所述第二区块链网络支持跨链,执行S214;当管理平台100确定所述第一区块链网络或所述第二区块链网络不支持跨链,执行S206。
管理平台100可以设置跨链规则,该跨链规则可以是默认设置,也可以根据用户配置的规则内容而设置。然后管理平台100可以将第一区块链网络的链信息和第二区块链网络的链信息,与跨链规则进行匹配,从而实现校验第一区块链网络和第二区块链网络的跨链能力。当匹配成功,则表明第一区块链网络和第二区块链网络支持跨链,否则第一区块链网络和第二区块链网络不支持跨链。
其中,第一区块链网络或第二区块链网络不支持跨链时,管理平台100可以停止执行跨链流程,并执行S206,向用户返回跨链失败通知。需要说明的是,跨链失败通知可以携带跨链失败原因,在一些实施例中,跨链失败原因的原因码可以为002,用于标识第一区 块链网络和第二区块链网络因不支持跨链,从而导致跨链失败。第一区块链网络和第二区块链网络支持跨链时,管理平台100可以执行S214,以启动后续流程。
需要说明的是,上述S210至S212为管理平台100校验第一区块链网络和第二区块链网络的跨链能力的一种实现方式,在本申请实施例其他可能的实现方式中,管理平台100也可以设置其他校验规则,例如是与子链相关的规则,或者与联盟成员相关的规则,并基于该校验规则校验第一区块链网络和第二区块链网络的跨链能力。在一些实施例中,管理平台100也可以不执行上述校验步骤,直接执行后续的跨链流程。
S214:管理平台100向中继装置200购买中继服务。
在本实施例中,管理平台100可以采用中继方式实现跨链。具体地,中继装置200可以以云服务的形式提供中继服务,管理平台100可以根据需求向中继装置200购买中继服务。
S216:中继装置200启动所述中继服务。
中继服务可以是容器封装的服务,也可以是虚拟机封装的服务。相应地,中继装置200可以通过容器引擎启动容器,从而启动中继服务。或者中继装置200可以通过虚拟机部署引擎启动虚拟机,从而启动中继服务。
S218:管理平台100获取数据库中第一区块链网络的配置信息和第二区块链网络的配置信息。
所述配置信息包括所述区块链网络的连接地址、所述区块链网络关联的应用名称、所述区块链网络的类型、用户标识、身份证书、证书密钥(如TLS密钥)或私钥中的一种或多种。在一些实施例中,该配置信息可以表示为:
ConfigData={Address,Name,Type,UserID,Certificate,TLS,priKey     (1)
管理平台100的数据库中存储有该管理平台100纳管的区块链网络的配置信息,基于此,管理平台100可以从数据库中获取第一区块链网络的配置信息和第二区块链网络的配置信息。
S220:管理平台100将所述第一区块链网络的配置信息和第二区块链网络的配置信息注册至所述中继装置200的中继服务。
具体地,管理平台100可以调用跨链网关将第一区块链网络的配置信息和第二区块链网络的配置信息注册至所述中继装置200的中继服务。其中,中继服务可以维护注册表,管理平台100可以通过跨链网关,将配置信息写入中继服务的注册表,从而实现将配置信息注册至中继服务。
上述S218至S220为管理平台100将所述第一区块链网络的配置信息和所述第二区块链网络的配置信息注册至所述中继装置的一种实现方式,在一些可能的实现方式中,管理平台100也可以将配置信息直接注册至中继装置,而无需注册至中继装置的中继服务。
S222:管理平台100根据跨链申请,调用区块链平台管理接口分别为所述第一区块链网络和所述第二区块链网络安装跨链合约。
区块链平台管理接口可以实现与底层的不同区块链平台进行交互,基于此,管理平台100根据跨链申请确定需要跨链的区块链网络为上述第一区块链网络和第二区块链网络,可以通过区块链平台管理接口分别为第一区块链网络和第二区块链网络安装跨链合约。
其中,管理平台100可以通过远程控制方式为第一区块链网络和第二区块链网络安装跨链合约。跨链合约是去中心化的应用,包括多个部署在不同区块链网络的智能合约,这些智能合约之间可以互相通信,并共同构成一个完整的应用。
该跨链合约用于所述第一区块链网络、所述第二区块链网络分别与中继装置建立连接,并通过所述中继装置进行跨链交易。具体地,第一区块链网络和第二区块链网络可以初始化跨链开发框架(software development kit,SDK),建立跨链SDK与中继服务的链接,以便于后续执行跨链交易。
S224:管理平台100返回跨链成功通知。
跨链成功通知是对用户提交的跨链申请进行响应的一种通知消息,该通知消息用于通知用户第一区块链网络和第二区块链网络跨链成功。
上述S224为本申请实施例的可选步骤,执行本申请实施例的区块链网络的管理方法也可以不执行上述S224。
基于上述内容描述,本申请实施例提供了一种区块链网络的管理方法,该方法中,管理平台100通过统一的区块链平台管理接口对不同区块链网络如异构区块链网络安装跨链合约,从而实现融入跨链能力,真正打通区块链网络的业务,无需适配异构内核,即可在不同区块链网络之间进行数据迁移,节省了改造成本。并且,该方法封装跨链的繁琐流程到管理平台内,大幅度简化用户的操作,提高易用性,保证数据全生命周期的追溯管理。
在图2所示实施例基础上,中继装置200可以实现第一区块链网络和第二区块链网络之间的跨链交易。在一些实施例中,该跨链交易可以是将第一区块链网络的数据迁移至第二区块链网络的数据。例如,该跨链交易可以是将第一区块链网络的数字资产迁移至第二区块链网络,进一步地,跨链交易还可以包括将第二区块链网络的数字资产迁移至第一区块链网络。以第一区块链网络的数字资产为以太币ETH,第二区块链网络的数字资产为比特币BTC为例,跨链交易可以为第一区块链网络的账户A向第二区块链网络的账户B发送50个ETH,第二区块链网络的账户B向第一区块链网络的账户A发送1个BTC。
具体地,用户可以通过客户端向管理平台100提交跨链交易请求,管理平台100接收到该跨链交易请求,可以与中继装置200交互,指示中继装置200启动跨链交易。其中,管理平台100的跨链业务模块104可以对跨链交易请求进行处理,生成跨链交易启动指示,然后向中继装置200发送跨链交易启动指示,从而实现指示中继装置200启动跨链交易。
具体地,跨链交易启动指示可以携带跨链交易的交易信息。该交易信息可以包括跨链交易的发送方和接收方的标识和跨链交易的交易额。例如,交易信息可以包括源地址(用于标识一个区块链网络上的账户)、目的地址(用于标识另一个区块链网络上的账户)和数字资产的数量。
中继装置200可以根据跨链交易的交易信息进行格式转换,得到目标格式的交易信息。其中,目标格式包括第一区块链网络支持的格式。然后中继装置200可以根据目标格式的交易信息生成提交请求,第一区块链网络根据该提交请求,执行交易提交,并生成第一提交证明。该第一提交证明中可以包括交易哈希。然后,第一区块链网络可以向中继装置200发送第一提交证明以及跨链交易的交易头。该交易头中可以包括跨链交易的发送方和接收 方的标识和跨链交易的交易额。中继装置200可以根据上述第一提交证明和交易头,对跨链交易进行验证,具体可以验证跨链交易是否真实存在。接着,中继装置200可以在验证通过后,将第一交易结果加入共识队列。其中,第一交易结果用于表征第一区块链网络提交成功或提交失败。
第一区块链网络还可以向第二区块链网络发送提交请求,第二区块链网络根据该提交请求,执行交易提交,并生成第二提交证明。类似地,该第二提交证明中可以包括交易哈希。然后,第二区块链网络可以向中继装置200发送第二提交证明以及跨链交易的交易头。中继装置200根据上述第二提交证明和交易头,对跨链交易进行验证,并在验证通过后,将第二交易结果加入共识队列。其中,第二交易结果用于表征第二区块链网络提交成功或提交失败。
中继装置200可以根据所述共识队列中的所述第一交易结果和所述第二交易结果,向中继链添加区块,以完成所述跨链交易。
在一些可能的实现方式中,中继装置200以及区块链网络之间还可以采用两阶段提交机制完成跨链交易。具体地,中继装置200可以先向第一区块链网络发送预提交请求,第一区链网络执行预提交,并生成相应的第一预提交证明,然后向中继装置200发送第一预提交证明和跨链交易的交易头,中继装置200根据第一预提交证明和跨链交易的交易头进行验证,在验证通过后,将第一预提交结果加入共识队列。此外,第一区块链网络向第二区块链网络发送预提交请求,第二区块链网络执行预提交,并生成相应的第二预提交证明,然后向中继装置200发送第二预提交证明和跨链交易的交易头,中继装置200根据第二预提交证明和跨链交易的交易头进行验证,在验证通过后,将第二预提交结果加入共识队列。
如此,中继装置200可以根据所述共识队列中的所述第一预提交结果、第二预提交结果以及所述第一交易结果和所述第二交易结果,向中继链添加区块,从而完成所述跨链交易。
在一些可能的实现方式中,管理平台100还可以通过对外的业务接口,支持用户查询交易信息、合约或区块信息。以查询交易信息为例,用户可以通过客户端触发交易查询操作,客户端可以响应于交易查询操作,生成交易查询请求。该交易查询请求根据所述管理平台100提供的业务接口生成。管理平台100接收用户通过客户端提交的交易查询请求,调用区块链平台管理接口,与底层的区块链平台中的区块链网络交互,从而获得交易信息。然后管理平台100可以返回查询结果,该查询结果包括上述交易信息。
下面结合具体场景对区块链网络的管理方法中跨链申请以及跨链交易的流程进行详细说明。
参见图3所示的跨链申请的流程图,具体包括如下步骤:
步骤1:用户向管理平台100提交跨链申请。
该跨链申请用于申请区块链网络1和区块链网络2之间进行跨链。该跨链申请中可以包括区块链网络1和区块链网络2的标识。其中,区块链网络1和区块链网络2可以是不同联盟中的网络。
步骤2:管理平台100的流程审批模块根据跨链申请进行流程审批,审批通过后,执 行步骤3以启动跨链流程。
步骤3:管理平台100的跨链业务模块获取数据库中纳管的区块链网络的链信息。
步骤4:管理平台100的跨链业务模块根据区块链网络1的链信息和区块链网络2的链信息,通过跨链规则,校验区块链网络1和区块链网络2的跨链能力。当校验结果为区块链网络1和区块链网络2支持跨链。
步骤5:管理平台100的跨链业务模块向中继装置200购买中继服务。
步骤6:管理平台100的跨链业务模块获取区块链网络1的配置信息和区块链网络2的配置信息。
步骤7:管理平台100将配置信息注册至中继服务。
其中,管理平台100可以响应于对所述中继装置200的管理请求,对所述中继装置200进行管理。具体地,管理平台100可以响应于对所述中继装置200的管理请求,部署、查询中继状态、管理中继节点、中继网关等,由此实现全生命周期的管理中继服务。
步骤8:管理平台100调用区块链网络管理接口,为区块链网络1和区块链网络2安装跨链合约。
如此,可以数据孤岛问题,提供跨链数据迁移能力,实现高容灾,提高稳定性,保证信息的真实可信。
接着参见图4所示的跨链交易的流程图,包括如下步骤:
步骤1:用户向管理平台100提交跨链交易请求。
具体地,用户可以通过客户端向管理平台100发送下载请求,以从管理平台100下载区块链网络1的连接地址、身份证书、证书密钥以及区块链网络2的连接地址、身份证书、证书密钥等,然后根据上述区块链网络1和区块链网络2的连接地址、身份证书、证书密钥生成跨链交易请求。该跨链交易请求用于请求执行区块链网络1和区块链网络2之间的交易,例如是区块链网络1上的账户A向区块链网络2上的账户B发送N个第一数字资产接收区块链网络2上的账户B发送的M个第二数字资产,其中,N和M为正数。
步骤2:管理平台100根据跨链交易请求,指示中继装置200启动跨链交易。
如图3所示实施例,管理平台100已拉起中继装置200上的中继服务,可以与中继装置200(例如是该装置上的中继服务)交互,从而指示中继装置200启动跨链交易。
步骤3:中继装置200向区块链网络1发送提交请求,接收区块链网络1发送的第一提交证明和交易头,并在验证通过后,将第一交易结果加入共识队列。
具体地,中继装置200可以先对跨链交易的交易信息进行格式转换,获得目标格式的交易信息,并根据该目标格式的交易信息生成提交请求,然后向区块链网络1发送提交请求。区块链网络1根据上述提交请求,执行交易提交,并生成第一提交证明。然后区块链网络1可以向中继装置200发送第一提交证明和跨链交易的交易头,中继装置200根据上述第一提交证明和跨链交易的交易头对跨链交易进行验证,验证通过后,将第一交易结果加入共识队列。
需要说明的是,中继装置200也可以先向区块链网络1发送预提交请求,接收区块链网络1发送的第一预提交证明和交易头,在验证通过后,将第一预提交结果加入共识队列。
步骤4:中继装置200接收区块链网络2发送的第二提交证明和交易头,并在验证通过后,将第二交易结果加入共识队列。
区块链网络2可以接收区块链网络1发送的提交请求,执行交易提交,并生成第二提交证明,然后向中继装置200发送第二提交证明和交易头。中继装置200根据第二提交证明和交易头对跨链交易进行验证,验证通过后,将第二交易结果加入共识队列。
当区块链网络1执行预提交时,区块链网络1还可以向区块链网络2发送预提交请求,区块链网络2执行预提交,并生成第二预提交证明。然后区块链网络2可以向中继装置200发送第二预提交证明和交易头,中继装置200在验证通过后,将第二预提交结果加入共识队列。
步骤5:中继装置200根据共识队列中的第一交易结果和第二交易结果,添加区块至中继链。
具体地,第一交易结果表征提交成功,第二交易结果表征提交成功时,中继装置200可以生成记录有交易信息的区块,并添加该区块至中继链,从而完成跨链交易。
步骤6:用户向管理平台100提交交易查询请求。
步骤7:管理平台100获取数据库中该管理平台100纳管的区块链网络的链信息。
步骤8:管理平台100根据链信息,调用区块链平台管理接口与区块链网络1和区块链网络2进行交互,从而获得交易信息。
进一步地,管理平台100还可以与区块链网络1和区块链网络2进行交互,获得区块列表。
步骤9:管理平台100通过中继链查询交易信息。
具体地,管理平台100可以与中继装置200交互,从而实现查询中继装置200中的中继链,获得交易信息。
步骤10:管理平台100返回查询结果。
该查询结果可以包括步骤8和步骤9中获得的交易信息。
该方法在保证可信、安全、隐私的前提下,达成不同单链间的数据共享、信息转移,打通区块链网络,并实现统一的跨链运维监控,方便后续新纳管的区块链网络的应用对接、业务上链。此外,该方法无需人工干预,简化了跨链流程。
基于本申请实施例提供的区块链网络的管理方法,本申请实施例还提供了一种如前述的区块链网络的管理平台100。下面将结合附图对本申请实施例提供的区块链网络的管理平台100进行介绍。
参见图5所示的区块链网络的管理平台100的结构示意图,该管理平台100包括:
接口模块101,用于接收用户提交的跨链申请;
跨链业务模块104,用于根据所述跨链申请,调用区块链平台管理接口分别为第一区块链网络和第二区块链网络安装跨链合约,所述跨链合约用于所述第一区块链网络、所述第二区块链网络分别与中继装置建立连接,并通过所述中继装置进行跨链交易。
其中,接口模块101(在图1中未示出)提供至少一种接口,用于进行数据交换。例如接口模块101可以包括业务接口,通过该业务接口可以接收用户提交的跨链申请。
在一些可能的实现方式中,所述接口模块101还用于:
获取所述第一区块链网络的配置信息和所述第二区块链网络的配置信息;
所述管理平台100还包括:
注册模块103(图1中未示出),用于将所述第一区块链网络的配置信息和所述第二区块链网络的配置信息注册至所述中继装置。
在一些可能的实现方式中,所述配置信息包括所述区块链网络的连接地址、所述区块链网络关联的应用名称、所述区块链网络的类型、用户标识、身份证书、证书密钥、私钥中的一种或多种。
在一些可能的实现方式中,所述接口模块101还用于:
接收所述用户提交的跨链交易请求,根据所述跨链交易请求指示所述中继装置启动跨链交易;
其中,所述中继装置200用于:
向第一区块链网络发送提交请求,接收所述第一区块链网络执行交易提交生成的第一提交证明以及所述跨链交易的交易头,并在验证通过后,将第一交易结果加入共识队列;接收所述第二区块链网络执行交易提交生成的第二提交证明以及所述跨链交易的交易头,并在验证通过后,将第二交易结果加入共识队列;根据所述共识队列中的所述第一交易结果和所述第二交易结果,向中继链添加区块,以完成所述跨链交易。
在一些可能的实现方式中,所述接口模块101还用于:
接收用户发送的交易查询请求;
所述管理平台100还包括:
查询模块105(图1中未示出),用于调用所述区块链平台管理接口,查询所述第一区块链网络中的第一区块链和所述第二区块链网络中的第二区块链,获得所述交易信息,向用户返回所述交易信息。
在一些可能的实现方式中,所述交易查询请求根据所述管理平台100提供的业务接口生成。
在一些可能的实现方式中,所述管理平台100还包括:
校验模块107,用于校验所述第一区块链网络和所述第二区块链网络的跨链能力,确定所述第一区块链网络和所述第二区块链网络支持跨链。
在一些可能的实现方式中,所述校验模块107具体用于:
所述管理平台根据跨链规则校验所述第一区块链网络和所述第二区块链网络的跨链能力,确定所述第一区块链网络和所述第二区块链网络支持跨链。
在一些可能的实现方式中,所述管理平台100还包括:
中继管理模块109,用于响应于对所述中继装置200的管理请求,对所述中继装置进行管理。
在一些可能的实现方式中,所述第一区块链网络和所述第二区块链网络为不同联盟中的网络。
根据本申请实施例的区块链网络的管理平台100可对应于执行本申请实施例中描述的方法,并且区块链网络的管理平台100的各个模块/单元的上述和其它操作和/或功能分别为 了实现图2所示实施例中的各个方法的相应流程,为了简洁,在此不再赘述。
本申请实施例还提供一种计算机集群。该计算机集群包括至少一台计算机,该至少一台计算机中的任一台计算机可以来自云环境或者边缘环境,也可以是终端设备。该计算机集群具体用于实现如图5所示实施例中区块链网络的管理平台100的功能。
图6提供了一种计算机集群的结构示意图,如图6所示,计算机集群60包括多台计算机600,计算机600包括总线601、处理器602、通信接口603和存储器604。处理器602、存储器604和通信接口603之间通过总线601通信。
总线601可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图6中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
处理器602可以为中央处理器(central processing unit,CPU)、图形处理器(graphics processing unit,GPU)、微处理器(micro processor,MP)或者数字信号处理器(digital signal processor,DSP)等处理器中的任意一种或多种。
通信接口603用于与外部通信。例如,通信接口603用于接收用户提交的跨链申请,或者接收跨链交易请求。
存储器604可以包括易失性存储器(volatile memory),例如随机存取存储器(random access memory,RAM)。存储器604还可以包括非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器,硬盘驱动器(hard disk drive,HDD)或固态驱动器(solid state drive,SSD)。
存储器604中存储有计算机可读指令,处理器602执行该计算机可读指令,以使得计算机集群60执行前述区块链网络的管理方法(或实现前述管理平台100的功能)。
具体地,在实现图5所示的管理平台100的实施例的情况下,且图5中所描述的管理平台100的各模块如接口模块101、跨链业务模块104、或者是注册模块103、查询模块105、校验模块107、中继管理模块109的功能为通过软件实现的情况下,执行图5中各模块的功能所需的软件或程序代码可以存储在计算机集群60中的至少一个存储器604中。至少一个处理器602执行存储器604中存储的程序代码,以使得计算机集群60执行前述区块链网络的管理方法。
本申请实施例还提供了一种计算机可读存储介质。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质的数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘)等。该计算机可读存储介质包括指令,所述指令指示计算机或计算机集群执行上述区块链网络的管理方法。
本申请实施例还提供了一种计算机程序产品。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网 站站点、计算机或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机或数据中心进行传输。所述计算机程序产品可以为一个软件安装包,在需要使用前述区块链网络的管理方法的任一方法的情况下,可以下载该计算机程序产品并在计算机或计算机集群上执行该计算机程序产品。
上述各个附图对应的流程或结构的描述各有侧重,某个流程或结构中没有详述的部分,可以参见其他流程或结构的相关描述。

Claims (23)

  1. 一种区块链网络的管理方法,其特征在于,所述方法包括:
    区块链网络的管理平台接收用户提交的跨链申请;
    所述管理平台根据所述跨链申请,调用区块链平台管理接口分别为第一区块链网络和第二区块链网络安装跨链合约,所述跨链合约用于所述第一区块链网络、所述第二区块链网络分别与中继装置建立连接,并通过所述中继装置进行跨链交易。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    所述管理平台获取所述第一区块链网络的配置信息和所述第二区块链网络的配置信息;
    所述管理平台将所述第一区块链网络的配置信息和所述第二区块链网络的配置信息注册至所述中继装置。
  3. 根据权利要求2所述的方法,其特征在于,所述配置信息包括所述区块链网络的连接地址、所述区块链网络关联的应用名称、所述区块链网络的类型、用户标识、身份证书、证书密钥、私钥中的一种或多种。
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述方法还包括:
    所述管理平台接收所述用户提交的跨链交易请求,根据所述跨链交易请求指示所述中继装置启动跨链交易;
    所述中继装置向第一区块链网络发送提交请求,接收所述第一区块链网络执行交易提交生成的第一提交证明以及所述跨链交易的交易头,并在验证通过后,将第一交易结果加入共识队列;
    所述中继装置接收所述第二区块链网络执行交易提交生成的第二提交证明以及所述跨链交易的交易头,并在验证通过后,将第二交易结果加入共识队列;
    所述中继装置根据所述共识队列中的所述第一交易结果和所述第二交易结果,向中继链添加区块,以完成所述跨链交易。
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:
    所述管理平台接收用户发送的交易查询请求;
    所述管理平台调用所述区块链平台管理接口,查询所述第一区块链网络中的第一区块链和所述第二区块链网络中的第二区块链,获得所述交易信息;
    所述管理平台向用户返回所述交易信息。
  6. 根据权利要求5所述的方法,其特征在于,所述交易查询请求根据所述管理平台提供的业务接口生成。
  7. 根据权利要求1至6任一项所述的方法,其特征在于,所述方法还包括:
    所述管理平台校验所述第一区块链网络和所述第二区块链网络的跨链能力,确定所述第一区块链网络和所述第二区块链网络支持跨链。
  8. 根据权利要求7所述的方法,其特征在于,所述管理平台校验所述第一区块链网络和所述第二区块链网络的跨链能力,确定所述第一区块链网络和所述第二区块链网络支持跨链,包括:
    所述管理平台根据跨链规则校验所述第一区块链网络和所述第二区块链网络的跨链能力,确定所述第一区块链网络和所述第二区块链网络支持跨链。
  9. 根据权利要求1至8任一项所述的方法,其特征在于,所述方法还包括:
    所述管理平台响应于对所述中继装置的管理请求,对所述中继装置进行管理。
  10. 根据权利要求1至9任一项所述的方法,其特征在于,所述第一区块链网络和所述第二区块链网络为不同联盟中的网络。
  11. 一种区块链网络的管理平台,其特征在于,所述管理平台包括:
    接口模块,用于接收用户提交的跨链申请;
    跨链业务模块,用于根据所述跨链申请,调用区块链平台管理接口分别为第一区块链网络和第二区块链网络安装跨链合约,所述跨链合约用于所述第一区块链网络、所述第二区块链网络分别与中继装置建立连接,并通过所述中继装置进行跨链交易。
  12. 根据权利要求11所述的管理平台,其特征在于,所述接口模块还用于:
    获取所述第一区块链网络的配置信息和所述第二区块链网络的配置信息;
    所述管理平台还包括:
    注册模块,用于将所述第一区块链网络的配置信息和所述第二区块链网络的配置信息注册至所述中继装置。
  13. 根据权利要求12所述的管理平台,其特征在于,所述配置信息包括所述区块链网络的连接地址、所述区块链网络关联的应用名称、所述区块链网络的类型、用户标识、身份证书、证书密钥、私钥中的一种或多种。
  14. 根据权利要求11至13任一项所述的管理平台,其特征在于,所述接口模块还用于:
    接收所述用户提交的跨链交易请求,根据所述跨链交易请求指示所述中继装置启动跨链交易;
    其中,所述中继装置用于:
    向第一区块链网络发送提交请求,接收所述第一区块链网络执行交易提交生成的第一提交证明以及所述跨链交易的交易头,并在验证通过后,将第一交易结果加入共识队列;接收所述第二区块链网络执行交易提交生成的第二提交证明以及所述跨链交易的交易头,并在验证通过后,将第二交易结果加入共识队列;根据所述共识队列中的所述第一交易结果和所述第二交易结果,向中继链添加区块,以完成所述跨链交易。
  15. 根据权利要求14所述的管理平台,其特征在于,所述接口模块还用于:
    接收用户发送的交易查询请求;
    所述管理平台还包括:
    查询模块,用于调用所述区块链平台管理接口,查询所述第一区块链网络中的第一区块链和所述第二区块链网络中的第二区块链,获得所述交易信息,向用户返回所述交易信息。
  16. 根据权利要求15所述的管理平台,其特征在于,所述交易查询请求根据所述管理平台提供的业务接口生成。
  17. 根据权利要求11至16任一项所述的管理平台,其特征在于,所述管理平台还包括:
    校验模块,用于校验所述第一区块链网络和所述第二区块链网络的跨链能力,确定所述第一区块链网络和所述第二区块链网络支持跨链。
  18. 根据权利要求17所述的管理平台,其特征在于,所述校验模块具体用于:
    所述管理平台根据跨链规则校验所述第一区块链网络和所述第二区块链网络的跨链能力,确定所述第一区块链网络和所述第二区块链网络支持跨链。
  19. 根据权利要求11至18任一项所述的管理平台,其特征在于,所述管理平台还包括:
    中继管理模块,用于响应于对所述中继装置的管理请求,对所述中继装置进行管理。
  20. 根据权利要求11至19任一项所述的管理平台,其特征在于,所述第一区块链网络和所述第二区块链网络为不同联盟中的网络。
  21. 一种计算机集群,其特征在于,所述计算机集群包括至少一台计算机,所述至少一台计算机包括至少一个处理器和至少一个存储器,所述至少一个存储器中存储有计算机可读指令;所述至少一个处理器执行所述计算机可读指令,以使得所述计算机集群执行如权利要求1至10中任一项所述的方法。
  22. 一种计算机可读存储介质,其特征在于,包括计算机可读指令;所述计算机可读指令用于实现权利要求1至10任一项所述的方法。
  23. 一种计算机程序产品,其特征在于,包括计算机可读指令;所述计算机可读指令用于实现权利要求1至10任一项所述的方法。
PCT/CN2023/081316 2022-06-21 2023-03-14 一种区块链网络的管理方法及相关设备 WO2023246187A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210705932.0 2022-06-21
CN202210705932.0A CN117319412A (zh) 2022-06-21 2022-06-21 一种区块链网络的管理方法及相关设备

Publications (1)

Publication Number Publication Date
WO2023246187A1 true WO2023246187A1 (zh) 2023-12-28

Family

ID=89279850

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/081316 WO2023246187A1 (zh) 2022-06-21 2023-03-14 一种区块链网络的管理方法及相关设备

Country Status (2)

Country Link
CN (1) CN117319412A (zh)
WO (1) WO2023246187A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117708181A (zh) * 2024-02-05 2024-03-15 人民法院信息技术服务中心 一种私有链的异构数据跨链查询方法、装置、系统及设备
CN118153018A (zh) * 2024-05-13 2024-06-07 杭州律途科技有限公司 基于身份验证的多业务系统功能集成方法及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108269190A (zh) * 2018-01-17 2018-07-10 深圳四方精创资讯股份有限公司 基于跨链中继平台的跨链方法及其系统
US20190251199A1 (en) * 2018-02-14 2019-08-15 Ivan Klianev Transactions Across Blockchain Networks
US20190340267A1 (en) * 2018-05-01 2019-11-07 International Business Machines Corporation Blockchain implementing cross-chain transactions
CN112488679A (zh) * 2020-12-03 2021-03-12 陈鹏 一种区块链的跨链合约解析方法、中继链及跨链系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108269190A (zh) * 2018-01-17 2018-07-10 深圳四方精创资讯股份有限公司 基于跨链中继平台的跨链方法及其系统
US20190251199A1 (en) * 2018-02-14 2019-08-15 Ivan Klianev Transactions Across Blockchain Networks
US20190340267A1 (en) * 2018-05-01 2019-11-07 International Business Machines Corporation Blockchain implementing cross-chain transactions
CN112488679A (zh) * 2020-12-03 2021-03-12 陈鹏 一种区块链的跨链合约解析方法、中继链及跨链系统

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117708181A (zh) * 2024-02-05 2024-03-15 人民法院信息技术服务中心 一种私有链的异构数据跨链查询方法、装置、系统及设备
CN117708181B (zh) * 2024-02-05 2024-04-30 人民法院信息技术服务中心 一种私有链的异构数据跨链查询方法、装置、系统及设备
CN118153018A (zh) * 2024-05-13 2024-06-07 杭州律途科技有限公司 基于身份验证的多业务系统功能集成方法及系统

Also Published As

Publication number Publication date
CN117319412A (zh) 2023-12-29

Similar Documents

Publication Publication Date Title
US11563557B2 (en) Document transfer processing for blockchains
WO2023246187A1 (zh) 一种区块链网络的管理方法及相关设备
CN108665372B (zh) 基于区块链的信息处理、查询、储存方法和装置
JP7228322B2 (ja) ブロックチェーン・ネットワークにおける自動コミット・トランザクション管理
CN112005264A (zh) 实施跨链事务的区块链
CN111327613B (zh) 分布式服务的权限控制方法、装置及计算机可读存储介质
WO2020173500A1 (zh) 一种基于公链的子链业务系统
TW202030656A (zh) 跨鏈用權系統及方法、裝置、電子設備、儲存媒體
CN112702402A (zh) 基于区块链技术实现政务信息资源共享和交换的系统、方法、装置、处理器及其存储介质
US20230079672A1 (en) Cross-chain data transmission method and apparatus, computer device, storage medium, and computer program product
JP2024505692A (ja) ブロックチェーンネットワークに基づくデータ処理方法、装置及びコンピュータ機器
WO2023207085A1 (zh) 用于跨区块链交互的系统及方法
CN111950019A (zh) 一种基于区块链的物联网访问控制系统及方法
WO2023040502A1 (zh) 用户服务注册
US20200311053A1 (en) Information management in a decentralized database including a fast path service
WO2023207083A1 (zh) 用于跨区块链交互的系统及方法
WO2021217928A1 (zh) 基于区块链网络的资源请求交易验证方法、装置、电子设备及计算机可读存储介质
WO2023216532A1 (zh) 一种数字资产的管理方法及相关装置
CN115328645A (zh) 计算任务调度方法、计算任务调度装置及电子设备
WO2023000967A1 (zh) 一种设备管理方法、系统以及装置
WO2023056713A1 (zh) 物联网卡的云平台绑定方法、系统、设备及介质
JPH10177548A (ja) セッション管理システム
WO2020042929A1 (zh) 一种区块链系统
WO2023207529A1 (zh) 数据处理方法、装置及设备、介质、产品
CN117252701A (zh) 一种基于区块链的跨链互通平台

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23825845

Country of ref document: EP

Kind code of ref document: A1