Unified SDK configuration center for multi-chain environment and implementation method thereof

By establishing a unified SDK configuration center and dynamically managing system configurations, SDK decoupling and automatic adaptation in multi-chain environments are achieved, solving the problems of development complexity and resource waste in multi-chain environments and improving the system's flexibility and scalability.

CN120353510BActive Publication Date: 2026-04-28WUHAN TIANYAO HONGTU TECHNOLOGY CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
WUHAN TIANYAO HONGTU TECHNOLOGY CO LTD
Filing Date
2025-02-26
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

In a multi-chain environment, existing technologies require the development of separate SDKs for each blockchain platform, resulting in high adaptation costs, complex maintenance, insufficient flexibility, and wasted resources. Furthermore, system upgrades are inefficient, and developers need to master various underlying technical details.

Method used

A unified SDK configuration center is introduced to dynamically manage system configurations, load blockchain platform configuration files, initialize and connect blockchain clients, decouple business systems from ChainSDK, unify the calling of interface methods, automatically load the corresponding implementation methods, and integrate all necessary SDK dependency packages.

Benefits of technology

It reduces development and maintenance costs, improves system flexibility and scalability, simplifies application development in multi-chain environments, and supports rapid switching and functional expansion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120353510B_ABST
    Figure CN120353510B_ABST
Patent Text Reader

Abstract

The embodiment of the specification provides a unified SDK configuration center for a multi-chain environment and an implementation method thereof, wherein the method comprises the following steps: dynamically managing system configuration through the configuration center, based on the system configuration, adjusting a blockchain platform accessed by the system according to corresponding chain information selected according to user demand; when the system starts, loading a configuration file of the blockchain platform through the configuration center, and initializing and connecting a blockchain client through chain authentication information; when a business system operates, decoupling the business system from the ChainSDK through the configuration center according to specific configuration of the configuration center, loading the same interface method through the ChainSDK, and performing a blockchain operation, and the system automatically loads a corresponding implementation method according to a current chain environment, wherein all necessary blockchain SDK dependent packages are integrated in the ChainSDK.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This document relates to the field of blockchain technology, and in particular to a unified SDK configuration center for multi-chain environments and its implementation method. Background Technology

[0002] As the core of distributed ledger technology, blockchain technology has been widely applied in finance, supply chain, IoT, and digital identity in recent years. However, with the rapid development of blockchain technology, a large number of blockchain platforms with different underlying technical architectures (such as Ethereum, Fabric, and BCOS) have emerged in the market. In blockchain application development, different application scenarios need to interface with different blockchain platforms. For example, enterprises may need to interact with the privacy-preserving Fabric chain, the BCOS chain suitable for financial scenarios, and the general-purpose Ethereum chain simultaneously. The differences between different blockchains mean that developers need to develop adaptation components separately for each target chain, increasing the workload of system development and maintenance.

[0003] Currently, the development of application systems in a multi-chain environment faces the following core challenges:

[0004] High adaptation costs: Each underlying chain requires separate development and deployment of a dedicated SDK. Developers need to have a deep understanding of the underlying implementation of the target chain, such as programming languages, smart contract structures and calling methods.

[0005] Complex maintenance: As the blockchain platform is updated or its functions change, the existing SDK adaptation modules need to be frequently adjusted, which increases the difficulty of maintenance.

[0006] Insufficient flexibility: When an application needs to switch underlying blockchain platforms, it often needs to redesign the adaptation logic, making it impossible to switch quickly and affecting the system's flexibility and scalability.

[0007] Resource waste: Developing an independent SDK for each chain leads to the repeated consumption of resources, which is particularly inefficient in scenarios with multiple chains running in parallel.

[0008] Figure 1 This is a schematic diagram of the original model of application systems in a multi-chain environment in existing technologies, such as... Figure 1 As shown, the shortcomings of existing technical solutions are:

[0009] Redundant development: Each new target chain requires a new set of SDK logic to be designed and implemented, which leads to a longer development cycle;

[0010] Inefficient system upgrades: Existing SDK solutions are often tightly coupled to specific chains, and as the underlying blockchain technology is upgraded, the adaptation modules also need to be updated in sync.

[0011] High technical barriers: Developers need to master the technical details of multiple underlying blockchains, including different smart contract languages ​​(such as Solidity, Go, C++, etc.), which increases the difficulty of development and debugging. Summary of the Invention

[0012] The purpose of this invention is to provide a unified SDK configuration center and its implementation method for multi-chain environments, aiming to solve the above-mentioned problems in the prior art.

[0013] This invention provides a unified SDK configuration center for multi-chain environments and its implementation method, including:

[0014] The configuration is managed dynamically through the configuration center. Based on the system configuration, the corresponding chain information is selected and the blockchain platform accessed by the system is adjusted according to user needs.

[0015] When the system starts up, the configuration center loads the configuration file of the blockchain platform and initializes and connects the blockchain client using chain authentication information.

[0016] When the business system is in operation, it is decoupled from ChainSDK through the configuration center according to the specific configuration of the configuration center. By loading ChainSDK, the same interface methods are called to perform blockchain operations. The system automatically loads the corresponding implementation methods according to the current chain environment. ChainSDK integrates all the necessary blockchain SDK dependency packages.

[0017] This invention provides a unified SDK configuration center for multi-chain environments, comprising:

[0018] The management module is used to dynamically manage system configurations and, based on the system configurations, select the appropriate chain information according to user needs to adjust the blockchain platform to which the system is connected.

[0019] The processing module is used to load the configuration file of the blockchain platform through the configuration center when the system starts up, and initialize and connect the blockchain client through the chain authentication information. When the business system is operating, it decouples itself from ChainSDK through the configuration center according to the specific configuration of the configuration center. It loads ChainSDK to call the same interface methods to perform blockchain operations. The system automatically loads the corresponding implementation methods according to the current chain environment. ChainSDK integrates all the necessary blockchain SDK dependency packages.

[0020] This invention also provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the above-described unified SDK configuration center for multi-chain environments and its implementation method.

[0021] This invention also provides a computer-readable storage medium storing an information transmission implementation program, which, when executed by a processor, implements the steps of the above-described unified SDK configuration center and its implementation method for multi-chain environments.

[0022] By introducing a configuration center in this embodiment of the invention, developers can easily interface with different underlying blockchains within a unified SDK framework through simple configuration, achieving complete decoupling between the application system and the SDK. The configuration center manages the underlying blockchain adaptation logic in a multi-chain environment, freeing developers from the need to concern themselves with underlying implementation details; they can focus solely on writing smart contracts and making API calls. This approach not only reduces development and maintenance costs but also significantly enhances the system's flexibility and scalability, providing an efficient solution for application development in multi-chain environments. Attached Figure Description

[0023] To more clearly illustrate the technical solutions in one or more embodiments of this specification or in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 This is a schematic diagram of the original mode of application systems in a multi-chain environment in existing technology;

[0025] Figure 2 This is a flowchart of a unified SDK configuration center implementation method for multi-chain environments according to an embodiment of the present invention;

[0026] Figure 3 This is a system schematic diagram of the new mode after the introduction of a configuration center in an embodiment of the present invention;

[0027] Figure 4 This is a schematic diagram of a unified SDK configuration center for multi-chain environments according to an embodiment of the present invention;

[0028] Figure 5 This is a schematic diagram of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0029] To enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this specification, and not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by those skilled in the art without creative effort should fall within the protection scope of this document.

[0030] Method Implementation Examples

[0031] According to embodiments of the present invention, a method for implementing a unified SDK configuration center for multi-chain environments is provided. Figure 2 This is a flowchart of a unified SDK configuration center implementation method for a multi-chain environment according to an embodiment of the present invention, such as... Figure 2 As shown, a method for implementing a unified SDK configuration center for a multi-chain environment according to an embodiment of the present invention specifically includes:

[0032] Step S201: Configure the system through the configuration center dynamic management system. Based on the system configuration, select the corresponding chain information according to user needs and adjust the blockchain platform accessed by the system. The blockchain platforms specifically include: AntChain, Unicom Chain, Fabric, BCOS Chain and Chang'an Chain.

[0033] Step S202: When the system starts up, the configuration file of the blockchain platform is loaded through the configuration center, and the blockchain client is initialized and connected through the chain authentication information.

[0034] In this embodiment of the invention, when it is necessary to extend support for new blockchain platforms, a new blockchain SDK dependency package is introduced into ChainSDK, a corresponding configuration file is added in the configuration center, a new client is registered, and specific business interface methods are implemented.

[0035] In step S203, when the business system is operating, it decouples itself from ChainSDK through the configuration center according to the specific configuration of the configuration center. By loading ChainSDK, it calls the same interface methods to perform blockchain operations. The system automatically loads the corresponding implementation methods according to the current chain environment. ChainSDK integrates all the necessary blockchain SDK dependency packages.

[0036] In this embodiment of the invention, after the system starts, the configuration center dynamically switches the blockchain SDK dependency package and the blockchain platform accessed by the system according to the system configuration.

[0037] Figure 3 This is a system diagram illustrating the new mode introduced by the configuration center in an embodiment of the present invention, as shown below. Figure 3 As shown, the specific processing includes the following:

[0038] Preparations were made to ensure the system runs in a Java environment and is developed based on the Spring Boot architecture. The configuration center uses Nacos to dynamically manage system configurations, ensuring the system can flexibly adjust chain selections as needed during runtime.

[0039] When the system starts, the configuration center loads the blockchain platform's configuration file and initializes the corresponding blockchain client. All necessary blockchain SDK dependencies have been pre-loaded, so no additional dependencies are needed. Client initialization and connection can be completed simply by configuring the chain authentication information in the configuration center.

[0040] The chain information in the configuration center determines the underlying chain platform that the system connects to. For example, if AntChain is selected, the system initializes the AntChain connection and automatically loads the corresponding chain client according to the configuration to enable interaction with the chain.

[0041] The business system and ChainSDK are decoupled through a configuration center, and the business logic does not depend on the specific chain implementation. During operation, the business system uniformly calls the same interface methods for chain entry, querying, and other operations. The system automatically loads the corresponding implementation methods based on the current chain environment. Switching chains only requires modifying the configuration center and restarting the service; no changes are needed for the business systems.

[0042] Currently, the system supports multiple blockchain platforms, including AntChain, UnicomChain, Fabric, BCOS Chain, and Chang'an Chain. To expand support to new blockchain platforms, simply import the new SDK dependency package, register a new client, and implement the specific business interface methods. No modification to the existing business system code is required, ensuring the flexibility and scalability of the business system.

[0043] In summary, the embodiments of the present invention enable a single codebase to adapt to multiple blockchain environments, simplifying the complexity of blockchain access and improving system maintainability and scalability. The business system can be deployed in multiple field environments, supporting rapid iteration and functional expansion.

[0044] Device Example 1

[0045] According to embodiments of the present invention, a unified SDK configuration center for multi-chain environments is provided. Figure 4 This is a schematic diagram of a unified SDK configuration center for multi-chain environments according to an embodiment of the present invention, as shown below. Figure 4 As shown, the unified SDK configuration center for multi-chain environments according to an embodiment of the present invention specifically includes:

[0046] Management module 40 is used to dynamically manage system configurations. Based on the system configurations, it selects appropriate chain information according to user needs and adjusts the blockchain platforms the system accesses. The specific blockchain platforms include: AntChain, UnicomChain, Fabric, BCOS Chain, and Chang'an Chain. Management module 40 is further used for:

[0047] When it is necessary to expand support for new blockchain platforms, a new SDK dependency package is introduced, new clients are registered, and specific business interface methods are implemented. After system startup, the blockchain SDK dependency package is dynamically switched according to the system configuration, and the blockchain platform connected to the system is changed accordingly.

[0048] Processing module 42 is used to load the blockchain platform's configuration file through the configuration center during system startup, and to initialize and connect the blockchain client using chain authentication information. During operation, the business system, based on the specific configuration in the configuration center, decouples itself from the ChainSDK through the configuration center. It loads the ChainSDK to uniformly call the same interface methods for blockchain operations. The system automatically loads the corresponding implementation methods based on the current chain environment. The ChainSDK integrates all necessary blockchain SDK dependency packages.

[0049] The embodiments of the present invention are device embodiments corresponding to the method embodiments described above. The specific operation of each module can be understood with reference to the description of the method embodiments, and will not be repeated here.

[0050] Device Example 2

[0051] This invention provides an electronic device, such as... Figure 5 As shown, it includes: a memory 50, a processor 52, and a computer program stored in the memory 50 and executable on the processor 52, wherein the computer program, when executed by the processor 52, performs the steps as described in the method embodiment.

[0052] Device Example 3

[0053] This invention provides a computer-readable storage medium storing an information transmission implementation program, which, when executed by a processor 52, performs the steps described in the method embodiment.

[0054] The computer-readable storage media described in this embodiment include, but are not limited to, ROM, RAM, disk, or optical disk.

[0055] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for implementing a unified SDK configuration center for multi-chain environments, characterized in that, include: The configuration is managed dynamically through the configuration center. Based on the system configuration, the corresponding chain information is selected and the blockchain platform accessed by the system is adjusted according to user needs. When the system starts up, the configuration center loads the configuration file of the blockchain platform and initializes and connects the blockchain client using chain authentication information. When the business system is in operation, it is decoupled from ChainSDK through the configuration center according to the specific configuration of the configuration center. By loading ChainSDK, the same interface methods are called to perform blockchain operations. The system automatically loads the corresponding implementation methods according to the current chain environment. ChainSDK integrates all the necessary blockchain SDK dependency packages. When it is necessary to expand support for new blockchain platforms, a new blockchain SDK dependency package is introduced into ChainSDK, a corresponding configuration file is added in the configuration center, a new client is registered and specific business interface methods are implemented; after the system starts, the configuration center dynamically switches the blockchain SDK dependency package and switches the blockchain platform accessed by the system according to the system configuration.

2. The method according to claim 1, characterized in that, The blockchain platforms specifically include: AntChain, UnicomChain, Fabric, BCOS Chain, and Chang'an Chain.

3. A unified SDK configuration center for multi-chain environments, characterized in that, include: The management module is used to dynamically manage system configurations, and based on these configurations, to select the appropriate blockchain platform to which the system connects according to user needs; the management module is further used for: When it is necessary to expand support for new blockchain platforms, introduce new blockchain SDK dependency packages into ChainSDK, add corresponding configuration files in the configuration center, register new clients and implement specific business interface methods; after the system starts, dynamically switch the blockchain SDK dependency packages and switch the blockchain platforms accessed by the system according to the system configuration. The processing module is used to load the configuration file of the blockchain platform through the configuration center when the system starts up, and initialize and connect the blockchain client through the chain authentication information. When the business system is operating, it decouples itself from ChainSDK through the configuration center according to the specific configuration of the configuration center. It loads ChainSDK to call the same interface methods to perform blockchain operations. The system automatically loads the corresponding implementation methods according to the current chain environment. ChainSDK integrates all the necessary blockchain SDK dependency packages.

4. The unified SDK configuration center for multi-chain environments according to claim 3, characterized in that, The blockchain platforms specifically include: AntChain, UnicomChain, Fabric, BCOS Chain, and Chang'an Chain.

5. An electronic device, characterized in that, include: The memory, the processor, and the computer program stored on the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the unified SDK configuration center implementation method for a multi-chain environment as described in any one of claims 1 to 2.

6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores an implementation program for information transmission, which, when executed by a processor, implements the steps of the unified SDK configuration center implementation method for a multi-chain environment as described in any one of claims 1 to 2.

Citation Information

Patent Citations

  • Block chain system, and data storage method and apparatus

    CN107018125A

  • A multi-block chain underlying unified scheduling solution

    CN109739485A

  • Multi-block-chain and cross-platform SDK generation method and device

    CN112988148A