Visual block chain cross-chain control system based on JAVA

Through the visual blockchain cross-chain control system based on JAVA, the blockchain network is integrated and account management, single-chain query and cross-chain transaction modules are provided, which solves the problem of poor interoperability between blockchain networks and realizes user-friendliness Cross-chain transactions and information exchange have improved the scalability and interoperability of the cross-chain ecosystem.

CN118897853APending Publication Date: 2024-11-05TIANJIN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410963166.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

The standards and protocols between different blockchain networks have not been unified, resulting in complex and difficult cross-chain interactions. The existing cross-chain platform lacks performance and scalability when handling large-scale cross-chain transactions and data transmissions, and is not easy to integrate, develop and deploy. Difficult, high user operation threshold.

Method used

Design a visual blockchain cross-chain control system based on JAVA, including account management module, single-chain query module and cross-chain transaction module. The complex cross-chain mechanism is displayed through graphical tools, lowering the threshold for user operation, and integrating different blocks The chain system realizes cross-blockchain information exchange, improving interoperability and scalability.

Benefits of technology

It realizes account management, transaction management and user-friendly interfaces, simplifies the cross-chain transaction process, improves the interoperability and scalability of the cross-chain ecosystem, and reduces the complexity of user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897853A_ABST
    Figure CN118897853A_ABST
Patent Text Reader

Abstract

The invention relates to a visual block chain cross-chain control system based on JAVA. The visual block chain cross-chain control system comprises an account management module, a single-chain query module, a cross-chain transaction module and a data interaction module, the account management module is used for verifying client information login; the single-chain query module is used for querying single-chain information and uploading a block chain; the cross-chain transaction module is used for carrying out cross-chain operation and presenting a cross-chain progress; and the data interaction module is used for storage and interaction of system data. Visual processing is carried out on cross-chain operation, a management platform integrating a single-chain query function and a cross-chain operation function is designed, and the transformation and improvement method based on the method also belongs to the protection range of the invention.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer science and technology, and in particular to a JAVA-based visualized blockchain cross-chain control system. Background Art

[0002] Blockchain technology has attracted the attention of many scholars in the computer field due to its characteristics of decentralization, immutability, transparency, traceability, and eventual consistency. At the same time, the introduction of smart contract technology has expanded the application scope of blockchain technology and prompted the emergence of on-chain applications. However, in the development of blockchain technology, multiple independent blockchain networks have emerged, each with its own characteristics, protocols, and assets. This has led to the problem that different networks cannot directly interact across chains, which has brought challenges to the widespread application of blockchain technology. People realize the need to build a unified bridge to connect different blockchain networks, so as to achieve cross-chain asset transfer, data sharing, and interoperability of smart contracts. This interconnection capability is of great significance for realizing distributed applications, improving the scalability of blockchain, and promoting the flow of digital assets.

[0003] However, the current cross-chain platform still has some shortcomings. First, the standards and protocols between different blockchain networks have not yet been unified, making cross-chain interactions complex and difficult. Second, the performance and scalability of the cross-chain platform remain a challenge when dealing with large-scale cross-chain transactions and data transmission. At the same time, existing blockchain platforms (such as Cosmos, Polkadot, etc.) have problems such as difficulty in integration, difficulty in development and deployment, difficulty for users to get started, and lack of intuitive display. Summary of the invention

[0004] The purpose of this invention is to propose a JAVA-based visual blockchain cross-chain control system, which aims to reduce the complexity of the cross-chain mechanism through cross-chain visual management and display it prominently. The present invention integrates different blockchain systems to realize cross-blockchain information exchange, thereby improving the interoperability and scalability of the blockchain cross-chain ecology. Through graphical tools, complex cross-chain mechanisms and technical difficulties are displayed in an easy-to-understand and monitor manner, enhancing users' understanding of cross-chain and lowering the user's operating threshold.

[0005] To achieve the above object, the present invention provides the following solutions:

[0006] A JAVA-based visual blockchain cross-chain control system, including: account management module, single-chain query module, cross-chain transaction module and data interaction module;

[0007] The account management module is used to verify customer information login;

[0008] The single chain query module is used to query single chain information and upload blockchain;

[0009] The cross-chain transaction module is used to perform cross-chain operations and present cross-chain progress;

[0010] The data interaction module is used for storage and interaction of system data.

[0011] Optionally, the account management module includes: a user information sending unit and a matching unit;

[0012] The user information sending unit is used to send the user information to the matching unit in the form of a post request;

[0013] The matching unit is used to compare the user information with the preset user information in the data interaction module. If they match, the login is successful and the corresponding permissions are allocated. If they do not match, a login information error is prompted.

[0014] Optionally, the single-chain query module includes: a first display unit, a second display unit and a first operation unit;

[0015] The first display unit is used to display the total number of chains graphically;

[0016] The second display unit is used to display the chain ID and chain status;

[0017] The first operating unit is used to query blockchain blocks and transaction information and upload blockchain.

[0018] Optionally, the single-chain query module further includes: a first information display interface and a first calling unit;

[0019] The first information display interface is used to define chain information overview data and design a blockchain table to store blockchain ID and status;

[0020] The first calling unit is used to call the corresponding SDK to query and obtain the new block height according to the user request, and retrieve the data interaction module to obtain the blockchain ID, chain status and total number of chains of the currently connected platform, and send them to the first display unit and the second display unit.

[0021] Optionally, the single-chain query module further includes: a first query interface and a second calling unit;

[0022] The first query interface is used to define the data types of different chains, allowing users to query block information by entering block height or block hash, and query transaction information by transaction ID;

[0023] The second calling unit is used to connect the chain that the user wants to query and call the corresponding library to complete the query request initiated by the user.

[0024] Optionally, the single-chain query module further includes: a first upload interface and a first transmission unit;

[0025] The first upload interface is used to define the data type of the chain configuration information and design the chain ID table to store the subordinate information of the blockchain.

[0026] The first transmission unit is used to generate a config / yml file based on a preset user request and store the chain ID and the corresponding user ID in the data interaction module; wherein the preset user request is: the chain configuration information that needs to be input after the user clicks the add chain function.

[0027] Optionally, the cross-chain transaction module includes: a third display unit, a second operation unit and a third operation unit;

[0028] The third display unit is used to display the cross-chain event table and the total number of cross-chain events;

[0029] The second operation unit is used to query cross-chain events;

[0030] The third operation unit is used to initiate a cross-chain behavior; wherein the cross-chain behavior includes: selecting a starting chain, a destination chain, a connection method, a contract and parameters.

[0031] Optionally, the cross-chain transaction module further includes: a second query interface and a retrieval unit;

[0032] The second query interface is used to define the query data type and design a cross-chain event table to store event information;

[0033] The retrieval unit is used to receive the user's cross-chain event query request, and will search in the data interaction module. If the event exists, it will return event-related information; if not, it will return no search results.

[0034] Optionally, the cross-chain transaction module further includes: a cross-chain operation interface and a third calling unit;

[0035] The cross-chain operation interface is used to design the function of calling server instructions and define the data type of the cross-chain configuration;

[0036] The third calling unit is used to receive the user's cross-chain behavior request, call the external program instruction to perform the cross-chain operation, and return the operation result; at the same time, record the cross-chain event related information in the event table of the data interaction module.

[0037] The beneficial effects of the present invention are:

[0038] Account management is implemented and user permissions are designed to facilitate platform operation and maintenance.

[0039] It realizes transaction management, provides transaction query, cross-chain transaction and other functions, and helps users conduct cross-chain transactions more efficiently.

[0040] A user-friendly interface was designed to achieve multi-dimensional operation, and a detailed design plan was developed. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0042] Figure 1 A schematic diagram of a single-chain system model according to an embodiment of the present invention;

[0043] Figure 2 This is a schematic diagram of a cross-chain system model according to an embodiment of the present invention;

[0044] Figure 3 Schematic diagram of the system structure of an embodiment of the present invention. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0047] The design requirements of this embodiment are:

[0048] 1. Login function: Users log in to the platform using their account and password, and the platform assigns users corresponding permissions for their accounts.

[0049] 2. Single chain function: The total number of chains, chain ID and chain status can be graphically presented on the main interface; blockchain blocks and transaction information can be queried, and blockchains can be uploaded.

[0050] 3. Cross-chain function: The total number of transactions and event list can be displayed in the cross-chain event list; click the event jump page to view detailed information such as transaction hash and transaction amount; in the event list, you can select the source chain, destination chain, and relay method to initiate cross-chain operations, and present the cross-chain progress in the form of a graphical interface.

[0051] Backend design: Implemented through java sdk, first you need to obtain the Changan Chain open source sdk, encapsulate it as a jar, and reference it in the project. Write the initclient module to initialize the blockchain; implement chain information query and cross-chain operations by writing interfaces; need to construct a structure as api input; and use mapper to query the content of the data interaction module.

[0052] Front-end design: It is implemented through vue and typescript. The platform is divided into homepage, user login page, single-chain query page, and cross-chain event page. You can choose to click in the upper right corner of the homepage to enter the user login interface or the cross-chain event page.

[0053] Data interaction module design: Using MySQL to store data requires designing user tables, cross-chain event tables, chain ID tables, and address tables.

[0054] Blockchain design: The platform can support access to Ethereum and Changan Chain.

[0055] The backend of this embodiment is based on JAVA language, and the frontend is based on vue3 and Typescript framework. Java sdk and api are used to implement basic functions such as blockchain information query, as well as cross-chain operations between different blockchains. The front-end visualization page is built using vue and typescript, and pnpm is used for package management. The specific implementation method is as follows:

[0056] This embodiment proposes a JAVA-based visual blockchain cross-chain control system, including: an account management module, a single-chain query module, a cross-chain transaction module, and a data interaction module;

[0057] Account management module, used to verify customer information login;

[0058] The single chain query module is used to query the single chain information and upload the blockchain; the single chain information includes: the total number of chains, chain ID and chain status presented in a graphical manner;

[0059] Cross-chain transaction module, used to perform cross-chain operations and present cross-chain progress;

[0060] Data interaction module, used for storage and interaction of system data.

[0061] Further, the account management module includes: a user information sending unit and a matching unit;

[0062] A user information sending unit, used to send user information to the matching unit in the form of a post request;

[0063] The matching unit is used to compare the user information with the preset user information in the data interaction module. If they match, the login is successful and the corresponding permissions are assigned. If they do not match, a login information error is prompted.

[0064] Specifically, in this embodiment, the login logic 1-1 is implemented: according to the user login requirements, the front end needs to design a login page, the back end needs to design a login interface, and the user class data needs to be defined. A user table needs to be designed to store user information.

[0065] Implement login logic 1-2: The front end sends the user information to the back end in the form of a post request. The back end compares the user information with the data interaction module information. If they match, the login is successful and the corresponding permissions are assigned. If they do not match, the login information error is prompted.

[0066] Furthermore, if Figure 1 As shown, the single-chain query module includes: a first display unit, a second display unit and a first operation unit;

[0067] A first display unit is used to display the total number of chains graphically;

[0068] The second display unit is used to display the chain ID and chain status;

[0069] The first operating unit is used to query blockchain blocks and transaction information and upload blockchain.

[0070] Furthermore, the single-chain query module further includes: a first information display interface and a first calling unit;

[0071] The first information display interface is used to define chain information overview data and design blockchain tables to store blockchain IDs and states;

[0072] The first calling unit is used to call the corresponding SDK to query and obtain the new block height according to the user's request, and retrieve the data interaction module to obtain the blockchain ID, chain status and total number of chains of the currently connected platform, and send them to the first display unit and the second display unit.

[0073] Specifically, in the homepage information display logic 1-1 of the single-chain query module in this embodiment: according to user information requirements, the front end needs to design a chain information display module, the back end needs to design an information display interface, define chain information overview data, and design a blockchain table to store blockchain ID and status.

[0074] Home page information display logic 1-2: The front end sends a get request to the back end to obtain the number of chains of the connected platform, the current total block height and the total number of transactions. The back end calls the corresponding SDK to query and obtain the new block height, and retrieves the data interaction module to obtain the blockchain ID, chain status and total number of transactions of the currently connected platform. The home page generates a corresponding number of rectangular icons on the front end according to the number of chains in the back end data interaction module, and displays the corresponding chain ID and chain status. At the same time, the total number of transactions is displayed in other areas.

[0075] Further, the single-chain query module further includes: a first query interface and a second calling unit;

[0076] The first query interface is used to define the data types of different chains, allowing users to query block information by entering block height or block hash, and query transaction information by transaction ID;

[0077] The second calling unit is used to connect the chain that the user wants to query and call the corresponding library to complete the query request initiated by the user.

[0078] Specifically, in this embodiment, the single chain query module implements the query chain logic 1-1: According to the query requirements, the front end needs to design the chain details page, and the back end needs to design the chain query interface to define the data types of different chains such as Ethereum and Changan Chain. Users can enter the block height or block hash to query block information, or they can query transaction information by transaction ID. The front end sends the data to the back end in the format of a post request.

[0079] Implement query chain logic 1-2: The user clicks on the chain he wants to query, the backend connects to the blockchain, and calls the corresponding library to complete the query request initiated by the user.

[0080] Further, the single-chain query module further includes: a first upload interface and a first transmission unit;

[0081] The first upload interface is used to define the data type of the chain configuration information and design the chain ID table to store the subordinate information of the blockchain.

[0082] The first transmission unit is used to generate a config / yml file based on a preset user request and store the chain ID and the corresponding user ID in a data interaction module; wherein the preset user request is: the chain configuration information that needs to be input after the user clicks the add chain function.

[0083] Specifically, in this embodiment, the implementation of the single-chain query module adds chain logic 1-1: according to the upload requirements, the front end needs to design a chain upload module, the back end needs to design an upload interface, define the data type of the chain configuration information, and design a chain ID table to store the subordinate information of the blockchain.

[0084] Implementing the logic of adding a chain 1-2: After the user clicks the add chain function, he needs to enter the chain configuration information, such as node IP, chain ID, etc. The front end sends the data to the back end in the post request format. After the user uploads the chain information, the back end generates the config / yml file and stores the chain ID and the corresponding user ID in the data interaction module.

[0085] Furthermore, if Figure 2 As shown, the cross-chain transaction module includes: a third display unit, a second operation unit and a third operation unit;

[0086] The third display unit is used to display the cross-chain event table and the total number of cross-chain events;

[0087] The second operation unit is used to query cross-chain events;

[0088] The third operation unit is used to initiate cross-chain behavior; the cross-chain behavior includes: selecting the starting chain, the destination chain, the connection method, the contract and the parameters.

[0089] Furthermore, the cross-chain transaction module further includes: a second query interface and a retrieval unit;

[0090] The second query interface is used to define the query data type and design a cross-chain event table to store event information;

[0091] The retrieval unit is used to receive the user's cross-chain event query request and search in the data interaction module. If the event exists, it returns the event-related information. If not, it returns no search results.

[0092] Specifically, in this embodiment, the cross-chain transaction module implements the cross-chain event query logic 1-1: According to the query requirements, the front end needs to design a query page, the back end needs to design multiple query interfaces, define the query data type, and design a cross-chain event table to store event information.

[0093] Implement cross-chain event query logic 1-2: The user first needs to enter the cross-chain event page and click the search bar to enter the cross-chain event ID. The front end sends the data to the back end in the post request format. After the back end accepts the front end request, it will search in the data interaction module. If the event exists, it will return event-related information. If not, it will return no search results.

[0094] Furthermore, the cross-chain transaction module also includes: a cross-chain operation interface and a third calling unit;

[0095] Cross-chain operation interface, used to design the function of calling server instructions and define the data type of cross-chain configuration;

[0096] The third calling unit is used to receive the user's cross-chain behavior request, call the external program instruction to perform the cross-chain operation, and return the operation result; at the same time, the cross-chain event related information is recorded in the event table of the data interaction module.

[0097] Specifically, in this embodiment, the cross-chain transaction module implements the cross-chain operation logic 1-1: According to the cross-chain operation requirements, the front-end needs to design a cross-chain operation page, the back-end needs to design a cross-chain operation interface, and the server instruction function needs to be designed. Define the data type of the cross-chain configuration.

[0098] Implement cross-chain operation logic 1-2: After the user clicks to initiate a cross-chain event on the front-end page, he can select the starting chain, destination chain, connection method, contract and parameters in the drop-down list. The front-end sends the data to the back-end in the post request format. When performing a cross-chain operation, the front-end will monitor the cross-chain progress information of the back-end and display it on the front-end page in the form of a dynamic image. After accepting the front-end request, the back-end calls the external program instruction to perform the cross-chain operation and returns the operation result. At the same time, the cross-chain event related information is recorded in the event table of the data interaction module.

[0099] The entire system structure of this embodiment can be divided into a blockchain system and a front-end and back-end system. Figure 3 As shown in the figure, the blockchain system is the core, which needs to be used as the basis to realize the basic functions such as blockchain operation startup and cross-chain operation, and support developers to interact with the chain and obtain information on the chain. The blockchain system includes a blockchain deployment module and a cross-chain interaction module, which can build a blockchain operating environment and realize cross-chain operations and logic. In the front-end and back-end systems, the internal processing module unit of the front-end system is responsible for sending query and operation requests to the blockchain system on behalf of the user, receiving and displaying the feedback results of the blockchain system, and the internal module unit of the back-end system is responsible for receiving the request sent by the internal processing module unit of the front-end system, linking the blockchain platform to initiate operations, and storing some blockchain information for user queries; the front-end system includes a blockchain single-chain query module, a cross-chain transaction module and a data interaction module. It can realize the query of single-chain information, the initiation of cross-chain transactions and the interaction of data interaction modules.

[0100] This embodiment implements a JAVA-based visual blockchain cross-chain control tool design. The main innovation is to visualize cross-chain operations and design a management platform that integrates single-chain query functions and cross-chain operation functions.

[0101] The above embodiments are only descriptions of the preferred embodiments of the present invention, and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should fall within the protection scope determined by the claims of the present invention.

Claims

1. A JAVA-based visual blockchain cross-chain control system, characterized in that: include: Account management module, single-chain query module, cross-chain transaction module and data interaction module; The account management module is used to verify customer information login; The single chain query module is used to query single chain information and upload blockchain; The cross-chain transaction module is used to perform cross-chain operations and present cross-chain progress; The data interaction module is used for storage and interaction of system data.

2. The JAVA-based visual blockchain cross-chain control system according to claim 1 is characterized in that: The account management module includes: a user information sending unit and a matching unit; The user information sending unit is used to send the user information to the matching unit in the form of a post request; The matching unit is used to compare the user information with the preset user information in the data interaction module. If they match, the login is successful and the corresponding permissions are allocated. If they do not match, a login information error is prompted.

3. The JAVA-based visual blockchain cross-chain control system according to claim 1 is characterized in that: The single-chain query module includes: a first display unit, a second display unit and a first operation unit; The first display unit is used to display the total number of chains graphically; The second display unit is used to display the chain ID and chain status; The first operating unit is used to query blockchain blocks and transaction information and upload blockchain.

4. The JAVA-based visual blockchain cross-chain control system according to claim 3 is characterized in that: The single-chain query module also includes: a first information display interface and a first calling unit; The first information display interface is used to define chain information overview data and design a blockchain table to store blockchain ID and status; The first calling unit is used to call the corresponding SDK to query and obtain the new block height according to the user request, and retrieve the data interaction module to obtain the blockchain ID, chain status and total number of chains of the currently connected platform, and send them to the first display unit and the second display unit.

5. The JAVA-based visual blockchain cross-chain control system according to claim 3 is characterized in that: The single-chain query module also includes: a first query interface and a second calling unit; The first query interface is used to define the data types of different chains, allowing users to query block information by entering block height or block hash, and query transaction information by transaction ID; The second calling unit is used to connect the chain that the user wants to query and call the corresponding library to complete the query request initiated by the user.

6. The JAVA-based visual blockchain cross-chain control system according to claim 3 is characterized in that: The single-chain query module further includes: a first upload interface and a first transmission unit; The first upload interface is used to define the data type of the chain configuration information and design the chain ID table to store the subordinate information of the blockchain; The first transmission unit is used to generate a config / yml file based on a preset user request and store the chain ID and the corresponding user ID in the data interaction module; wherein the preset user request is: the chain configuration information that needs to be input after the user clicks the add chain function.

7. The JAVA-based visual blockchain cross-chain control system according to claim 1 is characterized in that: The cross-chain transaction module includes: a third display unit, a second operation unit and a third operation unit; The third display unit is used to display the cross-chain event table and the total number of cross-chain events; The second operation unit is used to query cross-chain events; The third operation unit is used to initiate a cross-chain behavior; wherein the cross-chain behavior includes: selecting a starting chain, a destination chain, a connection method, a contract and parameters.

8. The JAVA-based visual blockchain cross-chain control system according to claim 7 is characterized in that: The cross-chain transaction module also includes: a second query interface and a retrieval unit; The second query interface is used to define the query data type and design a cross-chain event table to store event information; The retrieval unit is used to receive the user's cross-chain event query request, and will search in the data interaction module. If the event exists, it will return event-related information; if not, it will return no search results.

9. The JAVA-based visual blockchain cross-chain control system according to claim 7 is characterized in that: The cross-chain transaction module also includes: a cross-chain operation interface and a third calling unit; The cross-chain operation interface is used to design the function of calling server instructions and define the data type of the cross-chain configuration; The third calling unit is used to receive the user's cross-chain behavior request, call the external program instruction to perform the cross-chain operation, and return the operation result; at the same time, record the cross-chain event related information in the event table of the data interaction module.