Management method, device, equipment and storage medium for decentralized application organization

By deploying smart contracts on the blockchain, using public key encryption to transmit message content and conducting node voting, the subjectivity and dependency issues of node management in decentralized applications are resolved, achieving higher data transmission security and reliability.

CN117240854BActive Publication Date: 2025-09-19SHENZHEN DIANKUAN NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311096213.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-28
Publication Date
2025-09-19
Estimated Expiration
2043-08-28

AI Technical Summary

Technical Problem

In existing decentralized application management, service discovery and permission control between nodes rely on administrators, which are highly subjective and dependent, resulting in insufficient data transmission security.

Method used

By deploying smart contracts on the blockchain, decentralized management between nodes is achieved, public key encryption is used to transmit message content, and node joining and exit voting is carried out through smart contracts, reducing subjectivity and dependence.

Benefits of technology

It improves the security of data transmission between data nodes, reduces subjectivity and dependence, and ensures the reliability and security of decentralized application organizations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117240854B_ABST
    Figure CN117240854B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of blockchain technology, and discloses a management method, apparatus, device, and storage medium for a decentralized application organization. The management method includes: when transmitting messages between nodes within a decentralized application organization, obtaining a message transmission request issued by the message-sending node, the message transmission request including at least the message content and the name of the target node; querying the nodes that have been successfully registered in the smart contract based on the message transmission request to obtain the target node corresponding to the message transmission request and the public key and IP address of the target node; establishing a connection between the message-sending node and the target node, encrypting the message content using the public key, and transmitting the encrypted message content to the target node in response to the message transmission request. In this way, the present invention can achieve decentralized management between data nodes, reduce subjectivity and dependence, and thus improve the security of data transmission between data nodes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a management method, apparatus, device, and storage medium for a decentralized application organization. Background Art

[0002] Decentralization is a phenomenon or structure that can only emerge or exist within a system with numerous nodes or within a group of individuals. The influence between nodes forms nonlinear causal relationships through the network. We call this open, flat, and egalitarian system phenomenon or structure decentralized. From the perspective of internet development, decentralization is the social relationship and content production model formed during the internet's development. It is a new type of online content production process compared to "centralization."

[0003] Current decentralized applications are developed based on centralized application frameworks. Service discovery between nodes is achieved through dedicated service registration and discovery nodes. Node joining, exiting, and permissions are controlled by administrators, essentially maintaining centralized management with high levels of subjectivity and dependency. Summary of the Invention

[0004] The present invention provides a management method, apparatus, device and storage medium for a decentralized application organization, which can realize decentralized management between data nodes, reduce subjectivity and dependence, and thus improve the security of data transmission between data nodes.

[0005] To solve the above technical problems, the present invention adopts a technical solution: providing a management method for a decentralized application organization, which is applied to a blockchain deployed with smart contracts. The management method includes:

[0006] When transmitting messages between nodes within the decentralized application organization, obtaining a message transmission request sent by the message-sending node, wherein the message transmission request includes at least the message content and the name of the target node;

[0007] Querying the successfully registered nodes in the smart contract according to the message delivery request to obtain the target node corresponding to the message delivery request and the public key and IP address of the target node;

[0008] A connection is established between the message sending node and the target node, and the message content is encrypted using the public key, and the encrypted message content is transmitted to the target node in response to the message delivery request.

[0009] According to one embodiment of the present invention, before transmitting messages between nodes in the decentralized application organization, the method further includes:

[0010] When a node to be registered applies to join an organization, obtaining the application request of the node to be registered;

[0011] Writing the application to join into the smart contract, so that the smart contract writes the application to join into the blockchain as an application to join event;

[0012] Broadcasting the application-to-join event to each node in the decentralized application organization so that each node votes on the application-to-join event in the smart contract;

[0013] When the number of nodes that pass the vote is greater than a first preset threshold, the name, identity, IP address and public key of the node to be registered are written into the smart contract in response to the application request.

[0014] According to one embodiment of the present invention, querying the successfully registered nodes in the smart contract according to the message delivery request to obtain the target node corresponding to the message delivery request and the public key of the target node further includes:

[0015] Extracting the name of the target node in the message delivery request;

[0016] The IP address and public key of the target node are obtained from the smart contract according to the name of the target node.

[0017] According to one embodiment of the present invention, after establishing a connection between the message sending node and the target node, encrypting the message content using the public key, and transmitting the encrypted message content to the target node in response to the message delivery request, the method further includes:

[0018] Obtaining the identity of the node sending the message obtained by the target node decrypting the message content using the private key;

[0019] Querying the successfully registered nodes in the smart contract based on the identity identifier to determine whether the node corresponding to the identity identifier has been registered in the decentralized application organization where the target node is located;

[0020] If so, maintaining the connection between the message sending node and the target node;

[0021] If not, the connection between the message sending node and the target node is disconnected.

[0022] According to one embodiment of the present invention, the management method further includes:

[0023] When a node within the decentralized application organization initiates a withdrawal request, obtaining the withdrawal request;

[0024] The exit request is written into the smart contract, so that the smart contract writes the exit request as an exit event into the blockchain and deletes the registration information of the corresponding node.

[0025] According to one embodiment of the present invention, the exit request includes a forced node exit request, and writing the exit request into the smart contract so that the smart contract writes the exit request as an exit event into the blockchain and deletes the registration information of the corresponding node further includes:

[0026] Writing the forced node exit request into a smart contract, so that the smart contract writes the forced node exit request as a forced node exit event into the blockchain;

[0027] Broadcasting the forced node exit event to each node in the decentralized application organization so that each node votes on the forced node exit event in the smart contract;

[0028] When the number of nodes that have passed the vote is greater than a second preset threshold, the registration information of the corresponding node is deleted from the smart contract in response to the forced node exit request.

[0029] According to one embodiment of the present invention, the exit request includes an active exit request, and writing the exit request into the smart contract so that the smart contract writes the exit request as an exit event into the blockchain and deletes the registration information of the corresponding node further includes:

[0030] Writing the active exit request into the smart contract, so that the smart contract writes the active exit request into the blockchain as an active exit event and deletes the registration information of the corresponding node;

[0031] The active exit event is broadcasted to each node in the decentralized application organization.

[0032] To solve the above technical problems, another technical solution adopted by the present invention is to provide a management device for a decentralized application organization, which is applied to a blockchain deployed with a smart contract. The management device includes:

[0033] an acquisition module, which, when transmitting messages between nodes within the decentralized application organization, obtains a message transmission request issued by a message-sending node, wherein the message transmission request includes at least message content and a name of a target node;

[0034] A query module, configured to query the successfully registered nodes in the smart contract according to the message delivery request to obtain the target node corresponding to the message delivery request and the public key and IP address of the target node;

[0035] The encryption and transmission module is used to establish a connection between the message sending node and the target node, encrypt the message content using the public key, and transmit the encrypted message content to the target node in response to the message delivery request.

[0036] In order to solve the above technical problems, another technical solution adopted by the present invention is: to provide a computer device, including: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the management method of the decentralized application organization is implemented.

[0037] In order to solve the above technical problems, another technical solution adopted by the present invention is: providing a computer storage medium on which a computer program is stored, and when the computer program is executed by a processor, it implements the above-mentioned management method of the decentralized application organization.

[0038] The beneficial effects of the present invention are: when transmitting messages between nodes in a decentralized application organization, a message transmission request issued by the message sending node is obtained, and the message transmission request at least includes the message content and the name of the target node; according to the message transmission request, the nodes that have been successfully registered in the smart contract are queried to obtain the target node corresponding to the message transmission request and the public key and IP address of the target node; a connection is established between the message sending node and the target node, and the message content is encrypted using the public key, and the encrypted message content is transmitted to the target node in response to the message transmission request, which can realize decentralized management between data nodes, reduce subjectivity and dependence, and thus improve the data transmission security between data nodes. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 1 is a flow chart of a method for managing a decentralized application organization according to an embodiment of the present invention;

[0040] Figure 2 1 is a flow chart of a method for managing a decentralized application organization according to an embodiment of the present invention;

[0041] Figure 3 1 is a flow chart of a method for managing a decentralized application organization according to an embodiment of the present invention;

[0042] Figure 4 1 is a flow chart of a method for managing a decentralized application organization according to an embodiment of the present invention;

[0043] Figure 5 1 is a schematic diagram of the structure of a management device for a decentralized application organization according to an embodiment of the present invention;

[0044] Figure 6is a schematic structural diagram of a computer device according to an embodiment of the present invention;

[0045] Figure 7 It is a schematic diagram of the structure of a computer storage medium according to an embodiment of the present invention. DETAILED DESCRIPTION

[0046] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0047] The terms "first", "second" and "third" in the present invention are used only for descriptive purposes and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, a feature defined as "first", "second" and "third" may explicitly or implicitly include at least one of such features. In the description of the present invention, "multiple" means at least two, for example, two, three, etc., unless otherwise clearly and specifically defined. All directional indications in the embodiments of the present invention (such as up, down, left, right, front, back...) are only used to explain the relative positional relationship, movement, etc. between the components under a specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.

[0048] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present invention. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute a separate or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0049] Figure 1 This is a flow chart of a method for managing a decentralized application organization according to an embodiment of the present invention. It should be noted that the method of the present invention is not limited to the method of the present invention if the results are substantially the same. Figure 1The process sequence shown is limited. This decentralized application organization management method is applied to blockchains deployed with smart contracts. The blockchain referred to in this example is a new application model for computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. A blockchain is essentially a decentralized database, a series of data blocks generated using cryptographic methods. Each data block contains information about a batch of network transactions, which is used to verify the validity of the information (to prevent counterfeiting) and generate the next block. A blockchain can include the underlying blockchain platform, the platform product service layer, and the application service layer.

[0050] like Figure 1 As shown, the method includes the steps of:

[0051] Step S101: When transmitting messages between nodes within a decentralized application organization, a message transmission request sent by the message sending node is obtained.

[0052] In step S101, a decentralized application organization can include multiple nodes distributed across different locations. Each node can be an individual, organization, or device, and manages and operates the application by sharing and maintaining the same data and rules. Within a decentralized application organization, each node can interact with the blockchain, connecting and interacting with each other through protocols and communication networks. Each node can maintain its own local copy or partial data and update and synchronize data through interaction with other nodes. When a node performs an operation, such as creating a new transaction or modifying status, it broadcasts the operation to other nodes. After verification and approval, the other nodes update their local data.

[0053] The message delivery request of this embodiment is initiated by the node sending the message and includes at least the message content and the name of the target node to which the message content is delivered.

[0054] Step S102: query the successfully registered nodes in the smart contract according to the message delivery request to obtain the target node corresponding to the message delivery request and the public key and IP address of the target node.

[0055] In step S102, a smart contract for node registration is deployed on the blockchain. This smart contract supports the creation of multiple organizations, eliminating the need to deploy multiple smart contracts when multiple organizations exist. This smart contract is used to write the name, identity, IP address, and public key of a registered node, enabling node information query. In one feasible embodiment, the name of the target node in the message transmission request is extracted; based on the target node's name, the target node's IP address and public key are retrieved from the smart contract.

[0056] Step S103: Establish a connection between the message sending node and the target node, encrypt the message content using the public key, and transmit the encrypted message content to the target node in response to the message delivery request.

[0057] In step S103, this embodiment establishes a connection through the IP address of the target node and the IP address of the message sending node, encrypts the message content using the public key, and transmits the encrypted message content to the target node in response to the message delivery request, which can ensure the reliable transmission of information between nodes within the organization and reduce the risk of tampering during the message delivery process, causing the entire organization to be unable to work normally.

[0058] The management method of a decentralized application organization according to an embodiment of the present invention transmits messages between nodes within a decentralized application organization by obtaining a message transmission request issued by a message-sending node, where the message transmission request includes at least the message content and the name of the target node; queries the nodes that have been successfully registered in the smart contract according to the message transmission request to obtain the target node corresponding to the message transmission request and the public key and IP address of the target node; establishes a connection between the message-sending node and the target node, encrypts the message content using the public key, and transmits the encrypted message content to the target node in response to the message transmission request. This method can achieve decentralized management between data nodes, reduce subjectivity and dependence, and thus improve the security of data transmission between data nodes.

[0059] Based on the above embodiment, in a feasible embodiment, before transmitting messages between nodes in a decentralized application organization, that is, before step S101, node registration is required, such as Figure 2 As shown, the method includes the steps of:

[0060] Step S201: When a node to be registered applies to join an organization, the application request of the node to be registered is obtained.

[0061] In this step, the application request includes the name, identity, IP address and public key of the node to be registered.

[0062] Step S202: Write the application to join into the smart contract, so that the smart contract writes the application to join into the blockchain as an application to join event.

[0063] Step S203: Broadcast the application to join event to each node in the decentralized application organization so that each node can vote on the application to join event in the smart contract.

[0064] In this step, a new node joining the organization requires a joint vote of all nodes, rather than relying solely on a certain node registration / discovery service. Once the node fails to operate, the entire decentralized application organization will not be able to operate normally.

[0065] Step S204: When the number of nodes that have passed the vote is greater than the first preset threshold, the name, identity, IP address and public key of the node to be registered are written into the smart contract in response to the application request.

[0066] In this step, the first preset threshold can be adjusted. It can be a computer default value or a user-set value, for example, 51%. That is, when the number of nodes that vote in favor is greater than 51%, the node to be registered is allowed to join the organization, and the name, identity, IP address and public key of the node to be registered are written into the smart contract.

[0067] The management method for a decentralized application organization in an embodiment of the present invention is based on the first embodiment and realizes the authority to control node joining through decentralized management. Compared with centralized management, it not only relies on a certain node registration / discovery service, but also reduces subjectivity and dependence and has higher reliability.

[0068] Based on the above embodiment, in a feasible embodiment, after step S103, node identity authentication is required, such as Figure 3 As shown, the method includes the steps of:

[0069] Step S301: Obtain the identity of the node sending the message obtained by the target node decrypting the message content using the private key.

[0070] In this step, when a node joins an organization and creates a node, a unique private key is generated for that node using the blockchain's private key generation tool. After decrypting the message using the private key, the message content and information about the sending node, such as its identity, node name, and IP address, are obtained.

[0071] Step S302: Query the successfully registered nodes in the smart contract based on the identity identifier to determine whether the node corresponding to the identity identifier has been registered in the decentralized application organization where the target node is located.

[0072] In this step, the nodes that have been successfully registered in the smart contract are queried based on the identity identifier, and based on the query result, it is determined whether the message sending node and the target node corresponding to the identity identifier are in the same decentralized application organization. If so, step S303 is executed, otherwise, step S304 is executed.

[0073] Step S303: If yes, maintain the connection between the message sending node and the target node.

[0074] Step S304: If not, disconnect the connection between the message sending node and the target node.

[0075] The management method for a decentralized application organization according to an embodiment of the present invention is based on the first embodiment. By authenticating the message-sending node through identity identification, the method can ensure communication between nodes within the organization and reliable message delivery.

[0076] Based on the above embodiment, in a feasible embodiment, in a node exit application scenario, such as Figure 4 As shown, the method further comprises the steps of:

[0077] Step S401: When a node within a decentralized application organization initiates an exit request, the exit request is obtained.

[0078] In this step, the exit request includes at least the node's identity. Exit requests can include forced node exit requests and voluntary exit requests. A forced node exit request is initiated by any node within an organization requesting another node within the organization to exit the organization. An voluntary exit request is initiated by any node within the organization requesting itself to exit the organization.

[0079] Step S402: Write the exit request into the smart contract, so that the smart contract will write the exit request as an exit event into the blockchain and delete the registration information of the corresponding node.

[0080] In this step, the node registration information includes the node name, identity, IP address and public key.

[0081] When the exit request is a forced node exit request, a vote is required from each node within the organization. Specifically, the forced node exit request is written into the smart contract, so that the smart contract registers the forced node exit request as a forced node exit event and writes it into the blockchain. The forced node exit event is broadcast to each node within the decentralized application organization, so that each node votes on the forced node exit event in the smart contract. When the number of nodes that vote in favor exceeds a second preset threshold, the registration information of the corresponding node is deleted from the smart contract in response to the forced node exit request. The second preset threshold in this embodiment is adjustable and can be a computer default value or a user-set value, such as 51%.

[0082] When the exit request is a forced node exit request, there is no need for the nodes in the organization to vote. That is, the active exit request is written into the smart contract, so that the smart contract will write the active exit request as an active exit event into the blockchain and delete the registration information of the corresponding node; the active exit event is broadcast to each node in the decentralized application organization.

[0083] The management method for a decentralized application organization in an embodiment of the present invention is based on the first embodiment. It implements the authority to control node exit through decentralized management, reduces subjectivity and dependence, and only nodes within the organization can communicate with each other to prevent malicious nodes from disrupting the operation of the entire organization, thereby improving reliability and security.

[0084] Figure 5 Schematic diagram of the structure of the management device of the decentralized application organization according to the embodiment of the present invention. Figure 5 As shown, the device 50 includes an acquisition module 51 , a query module 52 and an encryption and transmission module 53 .

[0085] When the acquisition module 51 transmits a message between nodes in the decentralized application organization, it obtains a message transmission request sent by the message-sending node, where the message transmission request includes at least the message content and the name of the target node;

[0086] The query module 52 is used to query the successfully registered nodes in the smart contract according to the message transmission request to obtain the target node corresponding to the message transmission request and the public key and IP address of the target node;

[0087] The encryption and transmission module 53 is used to establish a connection between the message sending node and the target node, encrypt the message content using the public key, and transmit the encrypted message content to the target node in response to the message delivery request.

[0088] See also Figure 6 , Figure 6 FIG. 1 is a schematic diagram of the structure of a computer device according to an embodiment of the present invention. Figure 6 As shown, the computer device 60 includes a processor 61 and a memory 62 coupled to the processor 61 .

[0089] The memory 62 stores program instructions for implementing the management method of the decentralized application organization described in any of the above embodiments.

[0090] The processor 61 is configured to execute program instructions stored in the memory 62 to manage a decentralized application organization.

[0091] The processor 61 may also be referred to as a CPU (Central Processing Unit). The processor 61 may be an integrated circuit chip having signal processing capabilities. The processor 61 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The general-purpose processor may be a microprocessor or any conventional processor.

[0092] See Figure 7 , Figure 7 Schematic diagram of the structure of the computer storage medium of the embodiment of the present invention. The computer storage medium of the embodiment of the present invention stores a program file 71 that can implement all the above methods, wherein the program file 71 can be stored in the above computer storage medium in the form of a software product, including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned computer storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or terminal devices such as a computer, a server, a mobile phone, and a tablet.

[0093] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interface, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0094] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0095] The above are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A management method for a decentralized application organization, characterized in that: Applied to a blockchain deployed with smart contracts, the management method includes: When a node to be registered applies to join an organization, obtaining the application request of the node to be registered; Writing the application to join into the smart contract, so that the smart contract writes the application to join into the blockchain as an application to join event; Broadcasting the application-to-join event to each node in the decentralized application organization so that each node votes on the application-to-join event in the smart contract; When the number of nodes that have passed the vote is greater than a first preset threshold, the name, identity, IP address, and public key of the node to be registered are written into the smart contract in response to the application for joining; When transmitting messages between nodes within the decentralized application organization, obtaining a message transmission request sent by the message-sending node, wherein the message transmission request includes at least the message content and the name of the target node; Querying the successfully registered nodes in the smart contract according to the message delivery request to obtain the target node corresponding to the message delivery request and the public key and IP address of the target node; Establishing a connection between the message sending node and the target node, encrypting the message content using the public key, and transmitting the encrypted message content to the target node in response to the message delivery request; When a node within the decentralized application organization initiates a withdrawal request, obtaining the withdrawal request; Writing the exit request into the smart contract, so that the smart contract writes the exit request as an exit event into the blockchain and deletes the registration information of the corresponding node; After establishing a connection between the message sending node and the target node, encrypting the message content using the public key, and transmitting the encrypted message content to the target node in response to the message delivery request, the method further includes: Obtaining the identity of the node sending the message obtained by the target node decrypting the message content using the private key; Querying the successfully registered nodes in the smart contract based on the identity identifier to determine whether the node corresponding to the identity identifier has been registered in the decentralized application organization where the target node is located; If so, maintaining the connection between the message sending node and the target node; If not, the connection between the message sending node and the target node is disconnected.

2. The management method according to claim 1, characterized in that: The querying of the successfully registered nodes in the smart contract according to the message delivery request to obtain a target node corresponding to the message delivery request and a public key of the target node further includes: Extracting the name of the target node in the message delivery request; The IP address and public key of the target node are obtained from the smart contract according to the name of the target node.

3. The management method according to claim 1, characterized in that: The exit request includes a forced node exit request, and writing the exit request into the smart contract so that the smart contract writes the exit request into the blockchain as an exit event and deletes the registration information of the corresponding node further includes: Writing the forced node exit request into a smart contract, so that the smart contract writes the forced node exit request as a forced node exit event into the blockchain; Broadcasting the forced node exit event to each node in the decentralized application organization so that each node votes on the forced node exit event in the smart contract; When the number of nodes that have passed the vote is greater than a second preset threshold, the registration information of the corresponding node is deleted from the smart contract in response to the forced node exit request.

4. The management method according to claim 1, characterized in that: The exit request includes an active exit request, and the step of writing the exit request into the smart contract so that the smart contract writes the exit request into the blockchain as an exit event and deletes the registration information of the corresponding node further includes: Writing the active exit request into the smart contract, so that the smart contract writes the active exit request into the blockchain as an active exit event and deletes the registration information of the corresponding node; The active exit event is broadcasted to each node in the decentralized application organization.

5. A management device for a decentralized application organization, characterized in that: Applied to a blockchain deployed with smart contracts, the management device includes: The joining node module is used to obtain the application request of the node to be registered when the node to be registered applies to join the organization; Writing the application to join into the smart contract, so that the smart contract writes the application to join into the blockchain as an application to join event; Broadcasting the application-to-join event to each node in the decentralized application organization so that each node votes on the application-to-join event in the smart contract; When the number of nodes that have passed the vote is greater than a first preset threshold, the name, identity, IP address, and public key of the node to be registered are written into the smart contract in response to the application for joining; an acquisition module, which, when transmitting messages between nodes within the decentralized application organization, obtains a message transmission request issued by a message-sending node, wherein the message transmission request includes at least message content and a name of a target node; A query module, configured to query the successfully registered nodes in the smart contract according to the message delivery request to obtain the target node corresponding to the message delivery request and the public key and IP address of the target node; an encryption and transmission module, configured to establish a connection between the message sending node and the target node, encrypt the message content using the public key, and transmit the encrypted message content to the target node in response to the message delivery request; Deleting a node module, and obtaining a withdrawal request when a node in the decentralized application organization initiates a withdrawal request; Writing the exit request into the smart contract, so that the smart contract writes the exit request as an exit event into the blockchain and deletes the registration information of the corresponding node; After establishing a connection between the message sending node and the target node, encrypting the message content using the public key, and transmitting the encrypted message content to the target node in response to the message delivery request, the method further includes: Obtaining the identity of the node sending the message obtained by the target node decrypting the message content using the private key; Querying the successfully registered nodes in the smart contract based on the identity identifier to determine whether the node corresponding to the identity identifier has been registered in the decentralized application organization where the target node is located; If so, maintaining the connection between the message sending node and the target node; If not, the connection between the message sending node and the target node is disconnected.

6. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for managing a decentralized application organization according to any one of claims 1 to 4 is implemented.

7. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the management method of a decentralized application organization as described in any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Instant messaging implementation method, terminal equipment and storage medium

    CN110035002A

  • Method and device for block chain node to exit node set

    CN113347050A