CN-121984850-A - Method and device for creating target independent domain of blockchain system
Abstract
The embodiment of the disclosure provides a method, a device, electronic equipment and a readable medium for creating a target independent domain of a blockchain system. The target independent domain creation method specifically comprises the steps of receiving metadata of a target independent domain by a domain management tool, generating an creation block of the target independent domain based on the metadata, packaging the metadata and the creation block as registration data, storing the registration data into a system domain in a uplink mode to finish registration of the target independent domain, acquiring the registration data from the system domain and generating module configuration information by the domain management tool in response to receiving a node starting instruction of the target independent domain, and carrying out local initialization and function module configuration by the node of the target independent domain to finish creation of the target independent domain. According to the embodiment of the disclosure, the standardized creation and on-chain registration of the independent domain are realized by setting the system domain and the domain management tool, so that the safety and the expandability of the system are improved.
Inventors
- Mu changchun
- DI GANG
- LV YUAN
- CHEN QINGJIE
- WANG WENBO
- TAN QIWEN
Assignees
- 中国人民银行数字货币研究所
Dates
- Publication Date
- 20260505
- Application Date
- 20251212
Claims (11)
- 1. A method for creating a target independent domain of a blockchain system, the method comprising: The domain management tool receives metadata of a target independent domain, generates an creation block of the target independent domain based on the metadata, packages the metadata and the creation block as registration data, and stores the registration data in a system domain in a uplink manner so as to finish registration of the target independent domain, wherein the system domain is used as a global registration center and is used for storing and managing registration data of all independent domains; the domain management tool responds to the received node starting instruction of the target independent domain, acquires the registration data from the system domain and generates module configuration information; and the node of the target independent domain acquires the registration data and the module configuration information, and performs local initialization and function module configuration to complete the creation of the target independent domain.
- 2. The method of claim 1, wherein packaging the metadata and the creation block as registration data is stored in a system domain, comprising: and calculating a block head hash value of the created block, and storing the block head hash value as a part of the registration data in a system domain in a uplink manner.
- 3. The method of claim 2, wherein the domain management tool signs the registration data with its private key and stores the signed registration data up to the system domain.
- 4. A method according to claim 3, further comprising, after the node of the target independent domain obtains the registration data: The node of the target independent domain verifies the acquired registration data by using a pre-stored public key corresponding to the domain management tool, and verifies the validity of the signature, and verifies whether the hash value of the block header of the creation block contained in the registration data is consistent with a local calculation result.
- 5. The method of claim 4, wherein the locally initializing the node of the target independent domain comprises: creating an independent data directory for the target independent domain and loading the passed creation block to initialize an independent world state database.
- 6. The method according to claim 1 or 5, wherein the node of the target independent domain performs a local function module configuration, comprising: analyzing the module configuration information, and loading the functional module required by the target independent domain, wherein: the network communication module and the API interface module of the target independent domain are shared with the system domain and other independent domains, and other functional modules of the target independent domain are instantiated and operated independently of the system domain and other independent domains so as to realize state and performance isolation among services; And the network communication module and the API interface module execute logic routing operation according to the corresponding relation between the predefined independent domain identifier and the message queue.
- 7. The method of claim 6, wherein the node of the target independent domain continually listens to a particular message queue according to a correspondence between predefined independent domain identifiers and message queues, obtains transactions therefrom, and performs business logic in the transactions.
- 8. The method of claim 1, wherein the metadata comprises at least one of a target independent domain identifier, a target independent domain name, an initial list of consensus node addresses, an initial list of participating node addresses, a node admission rule, and a governance policy.
- 9. A creation device of a target independent domain of a blockchain system is characterized in that the device comprises a domain management tool and a node of the target independent domain, wherein: The domain management tool is configured to receive metadata of a target independent domain, generate an creation block of the target independent domain based on the metadata, package the metadata and the creation block as registration data, and store the registration data to a system domain in a uplink manner so as to finish registration of the target independent domain, wherein the system domain is used as a global registration center and is used for storing and managing the registration data of all independent domains; the domain management tool is further configured to obtain the registration data from the system domain and generate module configuration information in response to receiving a node start instruction of the target independent domain; the node of the target independent domain is configured to acquire the registration data and the module configuration information, and perform local initialization and function module configuration so as to complete the creation of the target independent domain.
- 10. An electronic device, comprising: One or more processors; a storage device communicatively coupled to the one or more processors for storing one or more programs, The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the methods of claims 1-8.
- 11. A computer readable medium on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to claims 1-8.
Description
Method and device for creating target independent domain of blockchain system Technical Field The disclosure relates to the technical field of blockchains, in particular to a creation method, a device, electronic equipment and a readable medium of a target independent domain of a blockchain system. Background With the development of blockchain technology, more and more enterprises and organizations begin to build federated chain platforms to support trusted collaboration across organizations. However, in practical applications, it is difficult for a single chain structure to satisfy diversified service requirements. For example, banks may be involved in multiple business scenarios such as credit, supply chain finance, cross-border payments, etc. if all businesses are deployed on the same chain, this can lead to (1) resource contention and performance bottlenecks. The multiple services share the same consensus engine, storage space and network bandwidth, which is easy to cause resource contention and influence the overall performance. (2) data isolation is difficult. The data between different businesses may have sensitivity difference, and if there is no effective isolation mechanism, sharing the same account book may cause data leakage or illegal access. (3) the complexity of treatment increases. All services share a set of governance rules, and it is difficult to formulate flexible admission policies and entitlement control mechanisms for specific services. (4) extensibility is limited. As the number of services grows, the single-chain architecture is difficult to laterally expand, limiting the flexibility and maintainability of the system. Therefore, it is needed to provide an independent domain which can divide the whole blockchain network into a plurality of independent domains which are logically isolated from each other but can be interacted with each other in a limited way, and each independent domain has own consensus mechanism, account book state and governance rule, so that effective allocation of resources, sensitive data isolation and flexible setting of governance rules are realized. Disclosure of Invention The embodiment of the disclosure provides a method, a device, electronic equipment and a readable medium for creating a target independent domain of a blockchain system, which realize standardized creation and on-chain registration of the independent domain by setting a system domain and a domain management tool, solve the problems of insufficient isolation, difficult management, resource competition and the like of a traditional blockchain platform in a multi-service supporting scene, and improve the safety, maintainability and expandability of the system. In order to achieve the technical purpose, the embodiment of the disclosure adopts the following technical scheme: In a first aspect, an embodiment of the present disclosure provides a method for creating a target independent domain of a blockchain system, the method including: The domain management tool receives metadata of the target independent domain, generates an creation block of the target independent domain based on the metadata, packages the metadata and the creation block as registration data, and stores the registration data in a system domain in a uplink manner so as to finish registration of the target independent domain, wherein the system domain is used as a global registration center and is used for storing and managing the registration data of all the independent domains; the domain management tool responds to the received node starting instruction of the target independent domain, acquires registration data from the system domain and generates module configuration information; the node of the target independent domain acquires the registration data and the module configuration information, and performs local initialization and function module configuration to complete the creation of the target independent domain. In some possible implementations, packaging metadata and the creation block as registration data, up-link storage to a system domain, includes: and calculating a block head hash value of the created block, and storing the block head hash value as a part of registration data in a system domain in a uplink manner. In some possible implementations, the domain management tool signs the registration data with its private key and stores the signed registration data up to the system domain. In some possible embodiments, after the node of the target independent domain obtains the registration data, the method further includes: the node of the target independent domain verifies the acquired registration data by using a pre-stored public key corresponding to the domain management tool to verify the validity of the signature, and verifies whether the hash value of the block header of the creation block contained in the registration data is consistent with a local calculation result. In some possible embodiments, the node