A simplified method for blockchain interaction interface
By deploying blockchain interactive interface services on the underlying blockchain platform, providing a common interface and encapsulating node interfaces, the problems of complex configuration and low throughput of the blockchain system are solved, and ease of use is improved and transaction throughput is increased.
Patent Information
- Application Number
- CN202011591558.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-29
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2040-12-29
AI Technical Summary
In the blockchain system, the diversity of configuration parameters of blockchain nodes causes developers or users to understand blockchain-related knowledge to correctly write access configuration files, which increases the threshold for users and blockchain transaction throughput The quantity is limited, and the application-side development work is large.
By deploying blockchain interactive interface services on the underlying blockchain platform, it provides common interface services, encapsulates all interfaces of blockchain nodes, supports REST API and gRPC communication methods, blocks complex configuration files, and realizes load balancing, elastic expansion, Scaling requirements such as permission control reduce the application's dependence on the underlying blockchain system.
It lowers the access threshold for application developers, improves the ease of use of blockchain systems, improves transaction throughput, and reduces the workload of application-side development.
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of blockchain, and specifically relates to a method based on a simplified method of a blockchain interaction interface. Background Art
[0002] In the blockchain system, since there are relatively many configuration parameters of blockchain nodes, as a blockchain application developer or a third-party blockchain user, in order to quickly access the blockchain system, you often need to first understand the relevant knowledge of the blockchain system before you can correctly write the application-side configuration file for accessing the blockchain, which is equivalent to raising the threshold for users. However, the application-side developers do not need to understand the knowledge of the underlying blockchain system at all. Through a simplified method of the blockchain interactive interface, that is, through a universal interface service to simplify the threshold for users to access the blockchain system, the interface technology based on blockchain interaction can greatly reduce the requirements for users. The application side does not even need to understand the blockchain to easily access the blockchain system and use the services provided by the blockchain, and it can also reduce the workload of application-side development while increasing the throughput of blockchain transactions. This interface technology can greatly improve the ease of use of the blockchain system. Summary of the invention
[0003] In order to overcome the shortcomings of the prior art and solve the above-mentioned problems, the present invention proposes a software protection extension technology based on the software protection extension technology released by the present invention as a trusted computing base, as a means to achieve secure multi-party computing. To achieve this purpose, the present invention adopts the following technical solutions: A simplified method for a blockchain interaction interface, comprising the following steps: Step 1, deploying the service of the blockchain interaction interface on the blockchain underlying platform side, the blockchain underlying platform side includes a cloud platform-based blockchain service provider; Step 2, deploying on the organization side to which the blockchain node belongs as needed; Step 3, the application end of the blockchain is connected to the service of the blockchain interaction interface, and starts to use the service provided by the underlying system of the blockchain; Step 4, the service of the blockchain interaction interface encapsulates all interfaces of blockchain node interaction; Step 5, the service of the blockchain interaction interface provides a set of universal first interaction interfaces for upper-level applications, and different business requirements are realized by inputting different parameters in the first interaction interface; Step 6, the service of the blockchain interaction interface encapsulates all interfaces of blockchain node interaction without perceiving specific business, and only packages the request parameters of the application end and sends them to the blockchain node; Step 7, the interface provided to the outside by the service of the blockchain interaction interface supports REST at the same time There are two communication modes: API and gRPC; Step 8. Service shielding of the blockchain interaction interface and complex configuration files for blockchain node docking; Step 9. Expand the service of the blockchain interaction interface, and request the scalability requirements of load balancing, elastic expansion, request flow control, and permission control on the service of the blockchain interaction interface; Step 10. The application side calls the interface provided in the blockchain interface service to initiate a transaction request; Step 11. The external interface service needs to find the corresponding execution interface in the blockchain interaction interface management module according to the parameters; Step 12. Obtain the first working blockchain node in the blockchain node management module, and the transaction will be sent to the first blockchain node; Step 13. Convert the interface request parameters of the application side into parameters of the blockchain transaction, and package the parameters according to the blockchain transaction interface specification; Step 14. Call the blockchain transaction interface and send the packaged transaction parameters to the blockchain node for execution. DETAILED DESCRIPTION
[0004] The technical solution of the present invention is further described below in conjunction with specific implementation methods.
[0005] The simplified method process of the blockchain interaction interface of the technical solution of the present invention is as follows: 1: deploying the service of the blockchain interaction interface on the blockchain underlying platform side, and the blockchain underlying platform side includes a cloud platform-based blockchain service provider;
[0006] 2: Based on the organization to which the blockchain node is deployed;
[0007] 3: The application end of the blockchain is connected to the service of the blockchain interaction interface and starts to use the services provided by the underlying blockchain system;
[0008] 4: The blockchain interaction interface service encapsulates all interfaces for blockchain node interaction;
[0009] 5: The blockchain interactive interface service provides a set of universal first interactive interfaces for upper-layer applications, in which different business requirements can be realized by inputting different parameters;
[0010] 6: The service encapsulation of the blockchain interaction interface is not aware of the specific business, and only packages the request parameters of the application side and sends them to the blockchain node;
[0011] 7: The interface provided by the blockchain interactive interface service can support both REST API and gRPC communication methods;
[0012] 8: Service shielding of blockchain interaction interface and complex configuration files for blockchain node docking;
[0013] 9: The services of the blockchain interaction interface can be expanded. You can request to implement load balancing, elastic expansion, request flow control, and permission control on the services of the blockchain interaction interface;
[0014] 10: The application calls the interface provided in the blockchain interface service to initiate a transaction request;
[0015] 11: The external interface service needs to find the corresponding execution interface in the blockchain interactive interface management module according to the parameters;
[0016] 12: Obtain a first blockchain node in the blockchain node management module, and the transaction will be sent to the first blockchain node;
[0017] 13: Convert the interface request parameters of the application side into the parameters of the blockchain transaction, and package the parameters according to the blockchain transaction interface specification;
[0018] 14: Call the blockchain transaction interface and send the packaged transaction parameters to the blockchain node for execution.
[0019] The above is only a preferred specific implementation of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by anyone familiar with the technology within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0020] Beneficial effects: First, it can lower the threshold for blockchain application developers to access the blockchain and shield the complex configuration files that connect to the blockchain; second, the interface service has strong scalability, and can easily realize a series of scalability requirements such as request load balancing, elastic expansion, request flow control, and permission control on the interface service, while improving the throughput of blockchain transactions and reducing the workload of application development. This interface technology can greatly improve the usability of the blockchain system.
Claims
1. A simplified method for blockchain interactive interface, characterized in that: It includes: step 1, deploying the service of the blockchain interaction interface on the blockchain underlying platform side, and the blockchain underlying platform side includes a cloud platform-based blockchain service provider; step 2, deploying it on the organization side to which the blockchain node belongs as needed; step 3, the application side of the blockchain is connected to the service of the blockchain interaction interface, and starts to use the services provided by the blockchain underlying system; step 4, the service of the blockchain interaction interface encapsulates all interfaces for blockchain node interaction; step 5, the service of the blockchain interaction interface provides a set of general first interaction interfaces for upper-level applications, and realizes different business requirements by entering different parameters in the first interaction interface; step 6, the service of the blockchain interaction interface encapsulates all interfaces for blockchain node interaction without perceiving specific business, and only packages the request parameters of the application side and sends them to the blockchain node; step 7, the interface provided to the outside by the service of the blockchain interaction interface also supports RESTAPI and gRPC; Step 8, the service shielding of the blockchain interaction interface and the complex configuration file for the blockchain node docking; Step 9, the service of the blockchain interaction interface is expanded, and the scalability requirements of load balancing, elastic expansion, request flow control, and permission control are requested on the service of the blockchain interaction interface; Step 10, the application side calls the interface provided in the blockchain interface service to initiate a transaction request; Step 11, the external interface service needs to find the corresponding execution interface in the blockchain interaction interface management module according to the parameters; Step 12, obtain the first working blockchain node in the blockchain node management module, and the transaction will be sent to the first blockchain node; Step 13, convert the interface request parameters of the application side into the parameters of the blockchain transaction, and package the parameters according to the blockchain transaction interface specification; Step 14, call the blockchain transaction interface, and send the packaged transaction parameters to the blockchain node for execution.