CN113852655A - Information management method and device and block chain service system - Google Patents

Information management method and device and block chain service system Download PDF

Info

Publication number
CN113852655A
CN113852655A CN202010602207.1A CN202010602207A CN113852655A CN 113852655 A CN113852655 A CN 113852655A CN 202010602207 A CN202010602207 A CN 202010602207A CN 113852655 A CN113852655 A CN 113852655A
Authority
CN
China
Prior art keywords
node
target
application server
blockchain
block chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010602207.1A
Other languages
Chinese (zh)
Inventor
朱江
高波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202010602207.1A priority Critical patent/CN113852655A/en
Publication of CN113852655A publication Critical patent/CN113852655A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Abstract

The invention provides an information management method, an information management device and a block chain service system, and relates to the technical field of data processing. The method is applied to a blockchain service system, the blockchain service system is used for managing the blockchain, the blockchain service system comprises a plurality of application servers, the blockchain comprises a plurality of nodes, and each application server is associated with at least one node. The method comprises the following steps: if a data operation instruction sent by a user is received, determining a target node from nodes contained in the block chain according to the data operation instruction; judging whether the target node is associated with a target application server or not; determining the cooperative operation authority of the target application server relative to the target node according to the association judgment result, and operating the information data of the target node based on the cooperative operation authority; the invention can better realize multi-party cooperation on the block chain and relieve the problem of over centralized block chain management.

Description

Information management method and device and block chain service system
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to an information management method, an information management apparatus, and a block chain service system.
Background
As the technology of the block chain advances, the products and services related to the block chain are increasing. A Blockchain as a Service (BaaS) is a new cloud Service that is combined with a Blockchain technology and is used for helping a user to create, manage and maintain a Blockchain network and an application. Compared with common nodes and transaction nodes, the BaaS node mainly has the following purposes: the development environment required by the developer is quickly established, a series of operation services such as search query, transaction submission, data analysis and the like based on the block chain are provided, and the developer is helped to check the concept and the model of the developer more quickly.
Currently, a mainstream blockchain BaaS system performs centralized management on a blockchain, and service logic and data processing need to be uniformly processed at a centralized application layer. As the blockchain technology enters into an application scenario with multi-party participation, the deployment manner is contrary to the advantages of multi-party collaboration and uplink consensus of the blockchain, so that the decentralized technology is difficult to exert the technical value.
Disclosure of Invention
The invention aims to provide an information management method, an information management device and a block chain service system, which can better realize multi-party cooperation on a block chain so as to relieve the problem of over-centralized management of the existing block chain.
In a first aspect, an embodiment of the present invention provides an information management method, which is applied to a target application server in a blockchain service system, where the blockchain service system is configured to manage a blockchain, and the blockchain service system includes a plurality of application servers, the blockchain includes a plurality of nodes, and each application server is associated with at least one node; the method comprises the following steps: if a data operation instruction sent by a user is received, determining a target node from the nodes contained in the block chain according to the data operation instruction; the data operation instruction carries a target node identifier; judging whether the target node is associated with the target application server; determining the cooperative operation authority of the target application server relative to the target node according to the association judgment result, and operating the information data of the target node based on the cooperative operation authority; wherein the cooperative operation authority comprises management authority and/or access authority.
In a second aspect, an embodiment of the present invention further provides an information management method applied to a blockchain service system, where the blockchain service system is configured to manage a blockchain, and the blockchain service system includes a plurality of application servers, where the blockchain includes a plurality of nodes, and each application server is associated with at least one node; the method comprises the following steps: if a data operation instruction sent by a user aiming at a target application server is received, determining a target node from nodes contained in the block chain according to the data operation instruction; the data operation instruction carries a target node identifier; if the target node is associated with the target application server, performing management operation and/or access operation on the information data of the target node through the target application server; and if the target node is not associated with the target application server, performing access operation on the information data of the target node through the target application server, and/or performing management operation on the target node through other application servers associated with the target node.
In a third aspect, an embodiment of the present invention further provides a block chain service system, configured to manage a block chain; the block chain service system comprises a plurality of application servers, the block chain comprises a plurality of nodes, and different nodes mutually synchronize information through a consensus mechanism; each of the application servers is associated with at least one of the nodes, and the application server has administrative rights to the node with which it is associated.
In a fourth aspect, an embodiment of the present invention further provides an information management apparatus, which is applied to a target application server in a blockchain service system, where the blockchain service system is configured to manage a blockchain, and the blockchain service system includes a plurality of application servers, the blockchain includes a plurality of nodes, and each application server is associated with at least one of the nodes; the device comprises: the first node determining module is used for determining a target node from the nodes contained in the block chain according to a data operation instruction if the data operation instruction sent by a user is received; the data operation instruction carries a target node identifier; the judging module is used for judging whether the target node is associated with the target application server; the first operation module is used for determining the cooperative operation authority of the target application server relative to the target node according to the association judgment result and operating the information data of the target node based on the cooperative operation authority; wherein the cooperative operation authority comprises management authority and/or access authority.
In a fifth aspect, an embodiment of the present invention further provides an information management apparatus, which is applied to a blockchain service system, where the blockchain service system is configured to manage a blockchain, and the blockchain service system includes a plurality of application servers, where the blockchain includes a plurality of nodes, and each application server is associated with at least one of the nodes; the device comprises: the second node determining module is used for determining a target node from the nodes contained in the block chain according to a data operation instruction if the data operation instruction sent by a user aiming at a target application server is received; the data operation instruction carries a target node identifier; the second operation module is used for executing management operation and/or access operation on the information data of the target node through the target application server if the target node is associated with the target application server; a third operation module, configured to, if the target node is not associated with the target application server, perform, by the target application server, an access operation on information data of the target node, and/or perform, by another application server associated with the target node, a management operation on the target node.
In a sixth aspect, an embodiment of the present invention further provides an application server, including a memory and a processor, where the memory stores a computer program operable on the processor, and the processor implements the steps of the method provided in any one of the above first aspects when executing the computer program, or implements the steps of the method provided in the above second aspect when executing the computer program.
In a seventh aspect, the present invention also provides a computer-readable storage medium storing machine executable instructions, which when invoked and executed by a processor, cause the processor to execute the method provided in any one of the first aspect, or cause the processor to execute the method provided in the second aspect.
The information management method, device and block chain service system provided by the embodiment of the invention are applied to a target application server in the block chain service system, the blockchain service system is used for managing a blockchain and comprises a plurality of application servers, wherein the blockchain comprises a plurality of nodes, each application server is associated with at least one node, if a data operation instruction (carrying a target node identification) sent by a user is received, determining a target node from nodes contained in the block chain according to the data operation instruction, then judging whether the target node is associated with the target application server or not, thereby determining the cooperative operation authority of the target application server relative to the target node according to the association judgment result, and operating the information data of the target node based on the cooperative operation authority, wherein the cooperative operation authority comprises management authority and/or access authority. The method manages the block chain by providing a novel block chain service system, the block chain service system comprises a plurality of application servers, each server is associated with at least one node in the block chain, and a target application server in the block chain service system determines a target node according to a received data operation instruction, so that information data in the target node is operated according to the association relationship between the target node and the target application server, and further the block chain network is managed and used. The embodiment of the invention can utilize the target application server to manage and/or access the information data of the nodes in the block chain, namely, the multi-party cooperative operation of the block chain is realized through a plurality of application servers in the block chain service system, thereby realizing decentralized deployment and management and relieving the problem of over-centralized management of the existing block chain.
The information management method, the device and the block chain service system provided by the embodiment of the invention are applied to a block chain service system, the block chain service system (comprising a plurality of application servers) is used for managing a block chain (comprising a plurality of nodes), each application server is associated with at least one node, if a data operation instruction (carrying a target node identifier) sent by a user aiming at a target application server is received, a target node is determined from the nodes contained in the block chain according to the data operation instruction, if the target node is associated with the target application server, management operation and/or access operation are executed on the information data of the target node through the target application server, if the target node is not associated with the target application server, access operation is executed on the information data of the target node through the target application server, and/or, and performing management operation on the target node through other application servers associated with the target node. The method provides a novel block chain service system, and the block chain is subjected to multi-party cooperative work through a plurality of application servers in the block chain service system, so that decentralized deployment and management are realized, and the problem of over-centralized management of the existing block chain is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flowchart of an information management method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a block chain service system according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a PKI product according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating another information management method according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating another information management method according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating another information management method according to an embodiment of the present invention;
fig. 7 is a flowchart illustrating another information management method according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another block chain service system according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an information management apparatus according to an embodiment of the present invention;
FIG. 10 is a schematic structural diagram of another information management apparatus according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of an application server according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the present application will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "comprising" and "having," and any variations thereof, as referred to in the embodiments of the present application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Currently, a mainstream blockchain BaaS system performs centralized management on a blockchain, and service logic and data processing need to be uniformly processed at a centralized application layer. As the blockchain technology enters into an application scenario with multi-party participation, the deployment manner is contrary to the advantages of multi-party collaboration and uplink consensus of the blockchain, so that the decentralized technology is difficult to exert the technical value. Therefore, the current technical solutions mainly have the following problems: (1) the existing centralized BaaS system is centralized and runs counter to the decentralized advantages of multi-party cooperation and chain consensus of a block chain; (2) the centralized BaaS system has higher failure risk, the technical scheme of the centralized BaaS system is tightly coupled with the service, the same BaaS server needs to be configured complicatedly aiming at different services, a new function is added, once the centralized BaaS makes mistakes, other nodes and the service can be influenced, and the expandability of the service is poor; (3) for a centralized BaaS system, a perfect data management and security isolation mechanism is lacked, and for the condition that a single node is broken down, a clear broken fault-tolerant security boundary is not existed, and the risk of data leakage exists; (4) the existing centralized BaaS system is relatively blocked, the scheme is difficult to rapidly meet the self requirements of more enterprises in the future, the ecological construction of a block chain is not facilitated, and larger value and development space are difficult to bring to the industry. In order to solve the above problem, embodiments of the present invention provide an information management method, an information management apparatus, and a block chain service system, which can better implement multi-party cooperation on a block chain, so as to alleviate the problem of too centralized management of an existing block chain.
To facilitate understanding of the present embodiment, first, a detailed description is given of an information management method disclosed in the embodiment of the present invention, where the method is mainly applied to a target application server in a blockchain service system, where the blockchain service system is used to manage a blockchain, and the blockchain service system includes a plurality of application servers, the blockchain includes a plurality of nodes, each application server is associated with at least one node, in an embodiment, the application server may be a BaaS server, that is, the blockchain service system may include a plurality of BaaS servers, and each BaaS server is associated with at least one node in the blockchain, referring to a flowchart of an information management method shown in fig. 1, the method mainly includes the following steps S102 to S106:
step S102, if a data operation instruction sent by a user is received, determining a target node from nodes contained in the block chain according to the data operation instruction.
The data operation instruction carries a target node identifier. In an embodiment, the blockchain service system may further include a service platform corresponding to each application server, where the service platform may be understood as an operation interface of the application server facing a user, and the target platform corresponding to the target application server displays a node identifier included in the blockchain to the user, so that the user selects a target node identifier to be operated from the displayed node identifiers, and the target application server receives a data operation instruction carrying the target node identifier, thereby determining a target node from the blockchain according to the target node identifier, where the target node is also a node to be operated by the user.
And step S104, judging whether the target node is associated with the target application server.
In practical applications, an application server may be associated with at least one node in a block chain, see a schematic structural diagram of a block chain service system shown in fig. 2, where fig. 2 takes the application server as a BaaS server as an example, the block chain service system may be configured to interface one or more nodes by a BaaS server according to actual business requirements, in fig. 2, BaaS server a1 is interfaced with node a1, BaaS server a2 is interfaced with node a2, BaaS server A3 is interfaced with node A3, BaaS server a4 is interfaced with node a4, and docking of a Bass server is understood as that the BaaS server is associated with the node, for example, BaaS server a1 is associated with node a1, but not associated with node a2, node A3, and node a 4.
And S106, determining the cooperative operation authority of the target application server relative to the target node according to the association judgment result, and operating the information data of the target node based on the cooperative operation authority.
The association determination result may include that the target application server is associated with the target node, or the target application server is not associated with the target node, and the cooperative operation authority includes a management authority and/or an access authority. In an embodiment, each BaaS server may manage information data of a node in a blockchain, which is in butt joint with the BaaS server, and access, query, and the like information data of a node in the blockchain, which is not in butt joint with the BaaS server, that is, if the association determination result indicates that the target application server is associated with the target node, it is determined that a cooperative operation authority of the target application server with respect to the target node is a management authority, the target application server may perform a management operation on the information data of the target node, and if the association determination result indicates that the target application server is not associated with the target node, it is determined that the cooperative operation of the target application server with respect to the target node is an access authority, and the target application server performs an access operation on the information data of the target node. In addition, the management authority may include one or more of a creation authority, a start authority, a stop authority, and a deletion authority.
The information management method provided by the above embodiment manages the blockchain by providing a novel blockchain service system, where the blockchain service system includes multiple application servers, each server is associated with at least one node in the blockchain, and a target application server in the blockchain service system determines a target node according to a received data operation instruction, so as to operate information data in the target node according to an association relationship between the target node and the target application server, thereby implementing management and use of a blockchain network, and the embodiment of the invention can use the target application server to manage and/or access information data of nodes in the blockchain, that is, implement multi-party cooperative operation of the blockchain by multiple application servers in the blockchain service system, thereby implementing decentralized deployment and management, the problem that the existing block chain management is too concentrated is solved.
In consideration of the security of information management, when the step S104 is executed, the embodiment of the present invention may check whether the target node is legal, and if so, determine whether the target node is associated with the target application server. In one embodiment, the target node may be verified by performing a PKI (Public Key Infrastructure) check on the target node to determine whether the target node is legitimate. Among them, PKI is the foundation and core of the current network security construction. PKI verification adopts certificates to carry out public key management, and a trusted authority (a certificate authority) of a third party binds a public key of a target node and other identification information of the target node together, wherein the other identification information of the target node comprises information such as a node name and the like so as to verify the identity of the target node on the Internet. PKI combines public key cipher and symmetric cipher to realize automatic management of cipher key in Internet and ensure the safe transmission of data in Internet.
In practical applications, the target node may be verified for validity by using a PKI product, wherein the PKI product may provide certificate management services (such as issuing, creating, revoking, etc. of certificates) of the node, and may also provide corresponding key management services (such as backup, recovery, and update, etc. of keys). In one embodiment, an exemplary embodiment of the present invention provides a PKI product, which may include a PKI policy, a software and hardware system, a Certificate Authority (CA), a Registration Authority (RA), a Certificate issuing system, a PKI application, and the like, and the schematic structural diagram of a PKI product is shown in fig. 3. The PKI policy may include an establishment policy or an operation policy of a certificate authority CA, a certificate issuance policy, a certificate reception policy, a certificate revocation policy, a key generation policy, a key registration policy, a key storage policy, a key acquisition policy, and the like; the Certificate authority CA is used for issuing a Certificate, specifying the validity period of the Certificate, and ensuring that the Certificate can be revoked when necessary by issuing a Certificate Revocation List (CRL); the registration mechanism RL is used for providing an interface between the node and the certificate authority CA and providing a certificate request to the certificate authority CA by acquiring and authenticating the identity of the node; the certificate issuing system is used for issuing a certificate.
After the validity of the target node is checked, whether the target node is associated with the target application server or not can be judged, and the cooperative operation authority of the target application server relative to the target node is determined according to the association judgment result. In one implementation mode, if the association judgment result is that the target node is associated with the target application server, determining that the cooperative operation authority of the target application server relative to the target node is a management authority; and if the association judgment result is that the target node is not associated with the target application server, determining that the cooperative operation authority of the target application server relative to the target node is the access authority. Continuing with fig. 2, for example, BaaS server a1 is associated with node a1, indicating that BaaS server a1 has administrative authority for node a1, while BaaS server a1 is not associated with node a2, node A3, and node a4, indicating that BaaS server a1 has access authority for node a2, node A3, and node a 4.
In addition, in the embodiment of the present invention, the above-mentioned blockchain service system may be further used to synchronize information data of nodes in a blockchain, and in an implementation manner, the following steps 1 to 2 may be referred to:
step 1, information data of a first node in a block chain is obtained, and target data needing to be synchronized in the information data is transmitted to the block chain. The first node is a node in the blockchain associated with the target application server, for example, if the target application server is BaaS server a1, the first node may be node a 1. In practical application, each application server in the block chain service system may acquire information data in a related node, then use the information data that needs to be synchronized as target information data, and transmit the target information data to a block chain after packaging, where the target information data may be selected by a user according to actual requirements.
In order to ensure that the data is correct, the embodiment of the present invention needs to verify the integrity of the information data of the first node before transmitting the target data to be synchronized in the information data to the blockchain, and transmit the target data to be synchronized in the information data to the blockchain when determining that the information data of the first node is complete. In one embodiment, the integrity of the information data may be verified using a hash tree.
And 2, determining at least one second node needing target data synchronization from the block chain, and synchronizing the target data to the at least one second node through a consensus mechanism. The second node is a node which is associated with other application servers except the target application server in the block chain; and/or the second node is a node associated with the target application server and different from the first node. In one embodiment, the second node that needs to be synchronized may be screened from all nodes in the block chain according to the content, size, and other factors of the target information data. Assuming that the above-described blockchain in fig. 2 further includes a node a5 (not shown in fig. 2), the BaaS server a1 is associated with both the node a1 and the node a5, and the first node is a1, the above-described second node may be one or more of the node a2, the node A3, the node a4, and the node a 5.
In addition, the blockchain service system provided in the embodiment of the present invention further includes a service platform corresponding to each application server, and the blockchain service system may further add a new node to the blockchain, in an implementation manner, the following steps a to d may be referred to implement the addition of the new node to the blockchain:
step a, acquiring a new node request sent by a user through a service platform corresponding to a target application server, and sending the new node request to a node associated with the target application server in a block chain, so that the block chain synchronizes the new node request to nodes associated with other application servers, and a request result fed back by other application servers aiming at the new node request is obtained. In one embodiment, the service platform may be provided with a new node control, and assuming that the target application server is BaaS server a1, the BaaS server a1 generates a new node request by responding to a point-touch operation of a user on the new node control provided in the service platform corresponding to BaaS server a1, the new node request is sent to node a1, and the new node request in node a1 is synchronized to node a2, node A3 and node a4 by using the method shown in the above steps 1 to 2, the service platforms corresponding to the remaining BaaS servers may display the new node request, so as to collect request results of the remaining users for the new node request, wherein the request results may include allowing and rejecting the new node, and the request results of the remaining BaaS servers are synchronized to the remaining nodes except their own node by using the method shown in the above steps 1 to 2, the BaaS server a1 will now be able to obtain the request results. In addition, when collecting the request results requested by the other users for the newly added node, the embodiment of the present invention may acquire the request results in a voting manner, and when the proportion of the newly added node allowed in the voting results is greater than the preset proportion, determine that the request results are the result of allowing the new addition, for example, the voting results of 3 nodes out of the 4 nodes are the nodes allowed to be added, and the preset proportion is 1/2, determine that the proportion of the nodes allowed to be added in the voting results is greater than the preset proportion, and further determine that the request results are the result of allowing the new addition. The embodiment of the invention completes the addition of the new node in the block chain through the cooperation of a plurality of BaaS servers.
And b, if the request result is that the newly added node is allowed, receiving a trusted node list inquiry request initiated by the newly added node through a service platform corresponding to the target application server, and transmitting the trusted node list to the newly added node so that the newly added node initiates an authentication request to the trusted node in the trusted node list. The method comprises the steps that a trusted node list inquiry request is used for inquiring a trusted node list from a target application server, the trusted node list comprises authenticated node identifications, the trusted nodes are authenticated nodes, the trusted node list is transmitted to the newly added nodes, the newly added nodes can send authentication requests to the trusted nodes based on the node identifications in the trusted node list, the newly added nodes are authenticated by the trusted nodes, and the trusted nodes synchronize authentication results to other nodes except the trusted nodes so that the target application server can obtain the authentication results of the trusted nodes.
And c, if the trusted node successfully authenticates the newly added node, issuing a service request for adding the new node in the block chain. And after learning that the newly added node passes the trusted node authentication request, the target application server issues a new node adding service request in the block chain, receives a new node adding authentication service fed back by the block chain, and obtains a new node adding service request result.
And d, if the block chain successfully adds the new node aiming at the service request, the block chain is associated with the new node.
After receiving the result that the trusted node successfully authenticates the newly added node, the target application server associates with the newly added node, that is, has a management authority for the newly added node, establishes trusted connection with the trusted node according to the authentication service of the newly added node, and then performs data synchronization on the newly added node, where a specific data synchronization manner may refer to steps 1 to 2 provided in the above embodiment.
The addition of the newly added nodes is realized through the steps, so that the application server can be flexibly configured according to different service scenes, the mutual influence among different services is reduced, and the expandability of the services is improved. In addition, the block chain service system can combine with expandable resources provided by the cloud platform, a safer and more personalized solution is customized according to the requirements of the industry and enterprises, greater convenience, value and imagination space are brought to the enterprises, and the block chain service system has important significance for better building block chain ecology.
With respect to the information management method provided in the foregoing embodiment, another information management method is provided in an embodiment of the present invention, and is applied to a blockchain service system, where the blockchain service system is configured to manage a blockchain, and the blockchain service system includes a plurality of application servers, where the blockchain includes a plurality of nodes, and each application server is associated with at least one node. Referring to the flowchart of another information management method shown in fig. 4, the method mainly includes the following steps S402 to S406:
step S402, if a data operation instruction sent by a user aiming at a target application server is received, determining a target node from nodes contained in the block chain according to the data operation instruction. The data operation instruction carries a target node identifier. In an embodiment, the blockchain service system may further include a service platform corresponding to each application server, where the service platform may be understood as an operation interface of the application server facing a user, and the blockchain service system may receive, through the service platform, a data operation instruction sent by the user for the target application server. In addition, an embodiment of the present invention further provides an implementation manner for determining a target node from a blockchain according to a data operation instruction, where a node to be operated may be determined from nodes included in the blockchain according to the data operation instruction, then the legitimacy of the node to be operated is checked, if the check is legal, the node to be operated is determined to be the target node, and since the data operation instruction carries a target node identifier, a node in the blockchain corresponding to the target node identifier may be determined to be the node to be operated, and the legitimacy of the node to be operated is checked through PKI check, and if the check is legal, the node to be operated may be determined to be the target node.
Step S404, if the target node is associated with the target application server, the management operation and/or the access operation are executed on the information data of the target node through the target application server. For example, in fig. 2, BaaS server a1 is a target application server, node a1 is a target node, and since BaaS server a1 is associated with target node a1, target node a1 may be managed and/or accessed by BaaS server a 1.
Step S406, if the target node is not associated with the target application server, performing an access operation on the information data of the target node through the target application server, and/or performing a management operation on the target node through other application servers associated with the target node. For example, in fig. 2, BaaS server a1 is a target application server, node a2 is a target node, and BaaS server a1 is not associated with target node a2, target node a1 may be accessed through BaaS server a1, and target node a2 may be accessed and/or managed through BaaS server a2 because BaaS server a2 is associated with target node a 2.
The information management method provided by the embodiment of the invention provides a novel block chain service system, and the multi-party cooperative work is carried out on the block chain through a plurality of application servers in the block chain service system, so that decentralized deployment and management are realized, and the problem of over-centralized management of the existing block chain is solved.
In an implementation manner, in the embodiment of the present invention, data information in a node may also be synchronized through a block chain service system, specifically, information data of a first node in a block chain is obtained through a target application server, and target data to be synchronized in the information data is transmitted to the block chain; the first node is a node which is associated with the target application server in the block chain; determining at least one second node needing target data synchronization from the block chain, and synchronizing the target data to the at least one second node through a consensus mechanism; the second node is a node which is associated with other application servers except the target application server in the block chain; and/or the second node is a node associated with the target application server and different from the first node. When the target data to be synchronized in the information data is transmitted to the blockchain, the integrity of the information data of the first node can be verified, and if the information data of the first node is complete, the target data to be synchronized in the information data is transmitted to the blockchain.
In an implementation manner, in the embodiment of the present invention, a node may be newly added in a blockchain through a blockchain service system, specifically, a new node request sent by a user is obtained through a service platform corresponding to a target application server, and the new node request is sent to a node in the blockchain, which is associated with the target application server, so that the blockchain synchronizes the new node request to nodes associated with other application servers, and a request result fed back by the other application servers for the new node request is obtained; if the request result is that the new node is allowed, receiving a trusted node list inquiry request initiated by the new node through a service platform corresponding to the target application server, and transmitting the trusted node list to the new node so that the new node initiates an authentication request to the trusted node in the trusted node list; if the trusted node successfully authenticates the new node, issuing a service request for adding the new node in the block chain; if the blockchain successfully adds the new node to the service request, the blockchain is associated with the new node.
Based on the block chain management method provided in the foregoing embodiment, the embodiment of the present invention further describes that the block chain service system is a distributed BaaS service system, where the application server includes a plurality of BaaS servers.
In an embodiment, referring to a flow diagram of another information management method shown in fig. 5, the method is applied to a BaaS server in the distributed BaaS system, and the information management method mainly includes the following steps S502 to S508:
step S502, acquiring target information data specified by a user in a first node associated with the BaaS server, and packaging and placing the target information data into a block chain. The target information data is also information data to be synchronized by the first node associated with the BaaS server. Each BaaS server in the distributed BaaS system can acquire information data in the associated node, then uses the information data needing to be synchronized as target information data, packs the target information data and transmits the packed target information data to the block chain. For example, the BaaS server a1 in fig. 2 acquires a part of information data from the node a1 as target information data, and packages and transmits the target information data to the block chain.
Step S504, the second node needing synchronization is screened out from the block chain. And screening out second nodes needing synchronization from all nodes of the block chain according to factors such as target information data content and size. For example, in the blockchain in fig. 2, the node a3 and the node a4 are screened out as the second nodes requiring synchronization, and the node a2 does not need to synchronize the target information data.
Step S506, the integrity of the target information data transmitted to the block chain is verified. After the target information data is transmitted to the blockchain, in order to ensure that the data is correct, integrity verification can be performed on the target information data transmitted to the blockchain. This step is an optional step, and in other possible embodiments, step S508 may be performed directly after step S504.
Step S508, synchronizing the target information data to each target node. After the integrity of the target information data in the block chain is verified, the target information data can be synchronized to each target node. And when the target information data is determined to be updated, adjusting the information data in the target node according to the updated target information data so as to enable the adjusted target node to be matched with the updated target information data.
In another embodiment, in the distributed BaaS system, after a certain level of access control authority is given to some target BaaS servers specified in the distributed BaaS system according to the wishes of the user, the target BaaS servers may be operated by the user in a block chain in cooperation with nodes associated with the BaaS servers, and the operation content includes addition, modification, deletion, and the like of data, so that the service flow is completed cooperatively according to a common intelligent contract. After the cooperative operation is completed, the operation record is synchronized into the block chain, and the BaaS server executing the operation is identified, so that the traceability of the operation is ensured. The access authorization record generated in the process triggers an authorization and verification contract in the block chain to be uploaded to the block chain for storage. When the access authorization needs to be cancelled or updated, the content needing to be cancelled and updated is selected and sent to the block chain, an authorization and verification contract in the block chain storage module is triggered, and the updated access authorization record is uploaded to the block chain, so that the authorization for the cooperative operation of other BaaS platforms is realized. The distributed BaaS collaboration content includes, but is not limited to, node information management and new node addition. Referring to a flow diagram of another information management method shown in fig. 6, where the method is applied to a BaaS server in the distributed BaaS system, the information management method provided in the embodiment of the present invention may further include the following steps S602 to step 608 to implement management of node information:
step S602, receiving a control instruction input by a user. The control instruction is also the data operation instruction. The distributed BaaS server firstly receives a control instruction input by a user through a service platform corresponding to the BaaS server. The control instruction carries a target node identifier of a target node pointed to by the control instruction on the block chain.
Step S604, performing PKI check on the target node pointed to by the control instruction. In specific implementation, the target node can be determined from the nodes of the block chain according to the target node identifier carried by the control instruction, so that the PKI check is performed on the target node.
Step S606, after passing PKI verification, operates the target node. And if the target node is the node associated with the BaaS server after the PKI is verified, performing management operations such as query, write, modification and the like on the target node. Or if the target node is a node which is not associated with the BaaS server after the PKI verification is passed, performing access operations such as browsing and viewing on the target node.
The internal cooperation of the distributed BaaS system is realized through the steps, the service coupling of the centralized BaaS system in the node management process can be avoided when the node information management is carried out, and each BaaS server in the distributed BaaS system only manages a limited number of nodes, so that the distributed BaaS system has a clear collapse fault-tolerant safety boundary and a safe data management and isolation mechanism, and is safer and more reliable.
In another embodiment, referring to a flow diagram of another information management method shown in fig. 7, the method is applied to a BaaS server in the distributed BaaS system, and the information management method mainly includes the following steps S702 to 708 to add a new node:
step S702, receiving a trusted node list inquiry request initiated by the new node through a service platform corresponding to the target BaaS server. In practical application, a user initiates a new node request through a service platform corresponding to a target BaaS server and uploads the new node request to a node associated with the target BaaS server in a block chain, the block chain synchronizes the new node request to other nodes in the block chain, so that other users vote for the new node request, when the proportion of the new node allowed in the voting result is greater than a preset proportion, the new result is allowed to be added, and the result of the node allowed to be added is synchronized in the block chain, at this time, the new node initiates a trusted node list inquiry request to the target BaaS server and is received by the BaaS server.
Step S704, the target BaaS server feeds back the trusted node list to the new node according to the trusted node list inquiry request, so that the new node initiates a trusted node authentication request according to the trusted node list. For the function of adding a new node in distributed cooperation, the BaaS system can be divided into a distributed BaaS subsystem (i.e., the distributed BaaS system), a block chain composed of trusted nodes, and a new node to be added. And the target BaaS server searches through the distributed BaaS system to obtain a trusted node list and transmits the trusted node list to the newly added node. And after the newly added node obtains the trusted node list, a trusted node authentication request is initiated to the trusted node, and then trusted node authentication service fed back by the trusted node is received to obtain a trusted node authentication request result.
Step S706, if the new node passes the trusted node authentication request, a new node adding service request is issued in the block chain. After learning that the newly added node passes the trusted node authentication request, the target BaaS server issues a new node adding service request in the block chain, receives a new node adding authentication service fed back by the block chain, and obtains a new node adding service request result.
Step S708, if the new node service request is successfully added, establishing association between the target BaaS server and the new node, and performing data synchronization on the new node. After receiving the result of the successful request for adding the new node service, the target BaaS server is associated with the new node, that is, has a management authority for the new node, establishes a trusted connection with the trusted node according to the authentication service of the new node, and then may perform data synchronization on the new node, where a specific data synchronization manner may refer to steps S502 to S508 provided in the foregoing embodiment.
The addition of the newly added nodes is realized through the steps, so that the BaaS server can be flexibly configured according to different service scenes, the mutual influence among different services is reduced, and the expandability of the services is improved. In addition, the distributed BaaS system can combine with expandable resources provided by the cloud platform, a safer and more personalized solution is customized according to the requirements of industries and enterprises, greater convenience, value and imagination space are brought to the enterprises, and the distributed BaaS system has important significance for better building block chain ecology.
As to the above blockchain service system, an embodiment of the present invention provides another blockchain service system, where the blockchain service system is configured to manage a blockchain, and refer to a schematic structural diagram of another blockchain service system shown in fig. 8, where the blockchain service system includes a plurality of application servers, where the application servers may be BaaS servers, the blockchain includes a plurality of nodes, different nodes mutually synchronize information through a consensus mechanism, each application server is associated with at least one node, and the application server has a management right to the node associated therewith, and the management content at least includes creating, starting, stopping, deleting, etc. the node, and querying, writing, modifying, etc. information in the node. For example, BaaS server B1 is associated with node B1, BaaS server B2 is associated with node B2, and BaaS server B3 is associated with node B3 and node B4.
By adopting the block chain service system provided by the embodiment of the invention, the block chain network can be managed and used by accessing the network through a plurality of distributed deployed BaaS servers, so that the distributed BaaS system based on the consensus mechanism of the block chain is facilitated, decentralized deployment and management are realized, the problem of over-centralized management of the existing block chain is relieved, the value of a decentralized technology is better exerted, multi-party cooperation on the block chain is realized through the consensus mechanism on the chain, and the decentralized concept of the block chain is really implemented.
In a possible implementation manner, the application server has a browsing right for nodes which are not associated with the application server, specifically including browsing and viewing information in the nodes. For example, BaaS server B1 has administrative rights to node B1, while BaaS server B1 has browsing rights to node B2, node B3, and node B4.
In addition, each node in the block chain corresponds to a unique application server, for example, node B1 corresponds to a unique BaaS server B1, node B2 corresponds to a unique BaaS server B2, node B3 corresponds to a unique BaaS server B3, and node B4 corresponds to a unique BaaS server B3. And the application servers corresponding to different nodes are the same or different, the BaaS server corresponding to the node b4 is different from the BaaS servers corresponding to the node a1 and the node b2, and is the same as the BaaS server corresponding to the node b 3.
In the embodiment of the invention, the information of each node is mutually synchronized through a consensus mechanism, wherein the consensus mechanism can be regarded as common knowledge, value, ideas and the like sought by different groups, and the consensus achieved on a certain aspect is a mode for determining to achieve certain consensus and maintaining consensus.
There is no centralized mechanism like a bank in the blockchain system, so that the consensus mechanism can solve and ensure the consistency and correctness of each transaction on all accounting nodes when information transmission and value transfer are performed. The new consensus mechanism of the blockchain enables the blockchain to still cooperate and complete the operation efficiently in a large scale without depending on a centralized organization. Therefore, the consensus mechanism is also an essential element and a core part of the blockchain, and is a key for ensuring the continuous operation of the blockchain system.
In the blockchain network, different consensus algorithms are adopted due to different application scenarios. The consensus mechanism of the block chain adopted by the embodiment of the invention mainly can be the following four types:
1. proof Of Work (Proof Of Work, POW for short)
POW can be simply understood as a proof that a certain amount of work has been done. POW is the most used in the block chain consensus algorithm, and Bizhou and Etheng are all POW-based consensus mechanisms. For example, the POW mechanism is used in the generation of the block, and the simple understanding is that people compete for the accounting right together, who has taken the accounting work first and done it correctly, and who has received the reward of the system, and the reward is the bit coin, that is, the so-called "mine digging". Miners (who participate in mining) perform this accounting work with the computational power of a computer, and the professional computer with the computational power is a so-called "mining machine".
The advantage of POW is complete decentralization, nodes are free to enter and exit, and the cost of establishing and maintaining a centralized credit agency is avoided. As long as the calculation power of the network disruptor does not exceed 50% of the total calculation power of the whole network, the transaction state of the network can be agreed, and the historical records can not be tampered. The more computationally invested, the greater the probability of obtaining accounting rights, and the more likely a new block reward will be generated. The defects are that a great amount of computing power and energy are wasted due to the ore digging of the bitcoin at present, and the ore digging computing power is highly concentrated due to an excitation mechanism of the ore digging. In addition, the settlement period is long, and at most 7 transactions per second are settled, which is not suitable for commercial application.
2. Proof Of rights and interests (Proof Of Stake, POS for short)
By determining the probability of getting a credit by the number and duration of tokens (Token), people holding more shares can get more shares, similar to the dividend system of stocks. Tokens are equivalent to the rights of the blockchain system. The POS has the advantages of reducing the resource waste of the POW mechanism and accelerating the operation speed, and can also be understood as an upgrading version of the POW. The disadvantage is that the probability that the node with longer coin age obtains the accounting right is higher, so that the Martian effect is easy to cause, the richers are richer, the rights and interests are more concentrated, and the fairness is lost.
3. Proof Of delegation rights (Delegated Proof Of stamp, DPOS for short):
DPOS is a more specialized solution derived based on POS, similar to board voting, where a person owning a token votes to a fixed node, elects several agents, and the agents take care of verification and accounting. Unlike the entire network of POWs and POS that can participate in accounting competitions, accounting nodes of DPOS are certain for a period of time. To incentivize more people and contests, the system generates a small number of tokens as rewards. The advantage of DPOS is that compared to POW, DPOS greatly improves the ability of processing data in the blockchain, and can even realize a second account, and also greatly reduces the cost of maintaining the network security of the blockchain. The disadvantages are that depocenter is weak, node agents are selected artificially, fairness is low compared with POS, and token issuance is relied on to maintain stability of agent nodes.
4. Pool consensus mechanism Pool verification
The method is a mechanism based on the traditional distributed consistency technology and data verification, and is a consensus mechanism widely used by the industry chain at present. Pool has the advantages that the token does not need to be relied on, the second-level consensus verification can be realized, and the shortcoming that decentralization degree is weak, and the method is more suitable for a multi-center business model with multi-party participation.
In summary, compared with the existing centralized BaaS system based on the block chain, the embodiment of the present invention provides a distributed BaaS system based on a block chain consensus mechanism, where the BaaS system corresponds to a unique BaaS server for each node on the block chain, each BaaS server can query and process data of one or a limited number of nodes, and can browse information of other nodes on the same chain with limited rights, and each BaaS server can flexibly expand service requirements of the nodes.
In addition, compared with a centralized BaaS system, each BaaS server in the distributed BaaS system only manages one or a limited number of nodes, so that the distributed BaaS system has a clear crash fault-tolerant security boundary and a secure data management and isolation mechanism, and is more secure and reliable. The distributed BaaS system combines expandable resources and abundant and diverse cloud computing products provided by the cloud platform, customizes personalized solutions for various industries, and brings greater convenience, value and imagination space for enterprises. A trusted industry blockchain solution and blockchain ecology can be better created.
For the information management method provided in the foregoing embodiment, an embodiment of the present invention provides an information management apparatus, which is applied to a target application server in a blockchain service system, where the blockchain service system is configured to manage a blockchain, the blockchain service system includes a plurality of application servers, the blockchain includes a plurality of nodes, and each application server is associated with at least one node, referring to a schematic structural diagram of an information management apparatus shown in fig. 9, the apparatus may include the following parts:
a first node determining module 902, configured to determine, if a data operation instruction sent by a user is received, a target node from nodes included in a blockchain according to the data operation instruction; the data operation instruction carries a target node identifier.
A determining module 904, configured to determine whether the target node is associated with the target application server.
A first operation module 906, configured to determine, according to the association determination result, a cooperative operation authority of the target application server with respect to the target node, and operate information data of the target node based on the cooperative operation authority; the cooperative operation authority comprises management authority and/or access authority.
The information management device provided by the embodiment of the invention manages the blockchain by providing a novel blockchain service system, the blockchain service system comprises a plurality of application servers, each server is associated with at least one node in the blockchain, and a target node is determined by a target application server in the blockchain service system according to a received data operation instruction, so that information data in the target node is operated according to the association relationship between the target node and the target application server, and further, the blockchain network is managed and used. The problem that the existing block chain management is too concentrated is solved.
In an embodiment, the determining module 904 is further configured to: checking whether the target node is legal or not; and if the target node is legal, judging whether the target node is associated with the target application server.
In one embodiment, the first operation module 906 is further configured to: if the association judgment result is that the target node is associated with the target application server, determining that the cooperative operation authority of the target application server relative to the target node is a management authority; and if the association judgment result indicates that the target node is not associated with the target application server, determining that the cooperative operation authority of the target application server relative to the target node is an access authority.
In one embodiment, the apparatus further includes a synchronization module configured to: acquiring information data of a first node in the block chain, and transmitting target data to be synchronized in the information data to the block chain; wherein the first node is a node in the blockchain associated with the target application server; determining at least one second node needing to synchronize the target data from the block chain, and synchronizing the target data to the at least one second node through a consensus mechanism; wherein the second node is a node in the blockchain associated with an application server other than the target application server; and/or the second node is a node associated with the target application server and different from the first node.
In an embodiment, the blockchain service system further includes a service platform corresponding to each application server, and the apparatus further includes a newly-added module configured to: acquiring a new node request sent by a user through a service platform corresponding to the target application server, and sending the new node request to a node associated with the target application server in the block chain, so that the block chain synchronizes the new node request to nodes associated with other application servers, and a request result fed back by other application servers for the new node request is obtained; if the request result is that the newly added node is allowed, receiving a trusted node list inquiry request initiated by the newly added node through a service platform corresponding to the target application server, and transmitting the trusted node list to the newly added node so that the newly added node initiates an authentication request to the trusted node in the trusted node list; if the trusted node successfully authenticates the new node, issuing a service request for adding the new node in the block chain; and if the block chain successfully adds the newly added node aiming at the service request, associating with the newly added node.
In one embodiment, the synchronization module is further configured to: verifying the integrity of the information data of the first node; and if the information data of the first node is complete, transmitting the target data to be synchronized in the information data to the block chain.
In one embodiment, the application server comprises a BaaS server.
For another information management method provided in the foregoing embodiment, an embodiment of the present invention provides an information management apparatus, which is applied to a blockchain service system, where the blockchain service system is configured to manage a blockchain, and the blockchain service system includes a plurality of application servers, and the blockchain includes a plurality of nodes, and each application server is associated with at least one node, referring to a schematic structural diagram of an information management apparatus shown in fig. 10, the apparatus mainly includes the following components:
a second node determining module 1002, configured to determine, if a data operation instruction sent by a user for a target application server is received, a target node from nodes included in a blockchain according to the data operation instruction; the data operation instruction carries a target node identifier.
A second operation module 1004, configured to, if the target node is associated with the target application server, perform a management operation and/or an access operation on the information data of the target node through the target application server.
A third operation module 1006, configured to, if the target node is not associated with the target application server, perform an access operation on the information data of the target node through the target application server, and/or perform a management operation on the target node through another application server associated with the target node.
The information management device provided in the above embodiment provides a novel blockchain service system, and performs multi-party cooperative work on a blockchain through a plurality of application servers in the blockchain service system, thereby implementing decentralized deployment and management, and alleviating the problem of too centralized management of the existing blockchain.
The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments.
The information management device provided by the embodiment of the invention has the same technical characteristics as the information management method provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
As shown in fig. 11, an application server 1100 according to an embodiment of the present invention includes a memory 1101 and a processor 1102, where the memory stores a computer program that can run on the processor, and the processor executes the computer program to implement the steps of the method according to the above-mentioned embodiment.
As shown in fig. 11, the application server further includes: a bus 1103 and a communication interface 1104, the processor 1102, the communication interface 1104, and the memory 1101 being connected by the bus 1103; the processor 1102 is operable to execute executable modules, such as computer programs, stored in the memory 1101.
The Memory 1101 may include a Random Access Memory (RAM), and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is implemented through at least one communication interface 1104 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like may be used.
The bus 1103 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 11, but that does not indicate only one bus or one type of bus.
The memory 1101 is used for storing a program, and the processor 1102 executes the program after receiving an execution instruction, and the method performed by the apparatus defined by the process disclosed in any of the foregoing embodiments of the present application may be applied to the processor 1102, or implemented by the processor 1102.
The processor 1102 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 1102. The Processor 1102 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 1101, and the processor 1102 reads the information in the memory 1101, and completes the steps of the above method in combination with the hardware thereof.
Corresponding to the real-time data processing method, the embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores machine executable instructions, and when the computer executable instructions are called and executed by a processor, the computer executable instructions cause the processor to execute the steps of the real-time data processing method.
The real-time data processing device provided by the embodiment of the application can be specific hardware on the device, or software or firmware installed on the device, and the like. The device provided by the embodiment of the present application has the same implementation principle and technical effect as the foregoing method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the foregoing method embodiments where no part of the device embodiments is mentioned. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the foregoing systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
For another example, the division of the unit is only one division of logical functions, and there may be other divisions in actual implementation, and for another example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the real-time data processing method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the scope of the embodiments of the present application. Are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (15)

1. An information management method is applied to a target application server in a blockchain service system, wherein the blockchain service system is used for managing a blockchain and comprises a plurality of application servers, the blockchain comprises a plurality of nodes, and each application server is associated with at least one node; the method comprises the following steps:
if a data operation instruction sent by a user is received, determining a target node from the nodes contained in the block chain according to the data operation instruction; the data operation instruction carries a target node identifier;
judging whether the target node is associated with the target application server;
determining the cooperative operation authority of the target application server relative to the target node according to the association judgment result, and operating the information data of the target node based on the cooperative operation authority; wherein the cooperative operation authority comprises management authority and/or access authority.
2. The method of claim 1, wherein the step of determining whether the target node is associated with the target application server comprises:
checking whether the target node is legal or not;
and if the target node is legal, judging whether the target node is associated with the target application server.
3. The method according to claim 1, wherein the step of determining the cooperative operation authority of the target application server with respect to the target node according to the association determination result comprises:
if the association judgment result is that the target node is associated with the target application server, determining that the cooperative operation authority of the target application server relative to the target node is a management authority;
and if the association judgment result indicates that the target node is not associated with the target application server, determining that the cooperative operation authority of the target application server relative to the target node is an access authority.
4. The method of claim 1, further comprising:
acquiring information data of a first node in the block chain, and transmitting target data to be synchronized in the information data to the block chain; wherein the first node is a node in the blockchain associated with the target application server;
determining at least one second node needing to synchronize the target data from the block chain, and synchronizing the target data to the at least one second node through a consensus mechanism; wherein the second node is a node in the blockchain associated with an application server other than the target application server; and/or the second node is a node associated with the target application server and different from the first node.
5. The method of claim 1, wherein the blockchain service system further comprises a service platform corresponding to each application server, the method further comprising:
acquiring a new node request sent by a user through a service platform corresponding to the target application server, and sending the new node request to a node associated with the target application server in the block chain, so that the block chain synchronizes the new node request to nodes associated with other application servers, and a request result fed back by other application servers for the new node request is obtained;
if the request result is that the newly added node is allowed, receiving a trusted node list inquiry request initiated by the newly added node through a service platform corresponding to the target application server, and transmitting the trusted node list to the newly added node so that the newly added node initiates an authentication request to the trusted node in the trusted node list;
if the trusted node successfully authenticates the new node, issuing a service request for adding the new node in the block chain;
and if the block chain successfully adds the newly added node aiming at the service request, associating with the newly added node.
6. The method according to claim 4, wherein the step of transmitting the target data to be synchronized in the information data to the block chain comprises:
verifying the integrity of the information data of the first node;
and if the information data of the first node is complete, transmitting the target data to be synchronized in the information data to the block chain.
7. The method of claim 1, wherein the application server comprises a BaaS server.
8. An information management method, applied to a blockchain service system, wherein the blockchain service system is used for managing a blockchain, and the blockchain service system comprises a plurality of application servers, wherein the blockchain comprises a plurality of nodes, and each application server is associated with at least one node; the method comprises the following steps:
if a data operation instruction sent by a user aiming at a target application server is received, determining a target node from nodes contained in the block chain according to the data operation instruction; the data operation instruction carries a target node identifier;
if the target node is associated with the target application server, performing management operation and/or access operation on the information data of the target node through the target application server;
and if the target node is not associated with the target application server, performing access operation on the information data of the target node through the target application server, and/or performing management operation on the target node through other application servers associated with the target node.
9. A blockchain service system, configured to manage blockchains;
the block chain service system comprises a plurality of application servers, the block chain comprises a plurality of nodes, and different nodes mutually synchronize information through a consensus mechanism;
each of the application servers is associated with at least one of the nodes, and the application server has administrative rights to the node with which it is associated.
10. The system of claim 9, wherein the application server has access to nodes not associated therewith.
11. The system of claim 9, wherein each node in the blockchain corresponds to a unique application server; the application servers corresponding to different nodes are the same or different; the application server comprises a BaaS server.
12. An information management device, which is applied to a target application server in a blockchain service system, wherein the blockchain service system is used for managing a blockchain, and the blockchain service system comprises a plurality of application servers, the blockchain comprises a plurality of nodes, and each application server is associated with at least one node; the device comprises:
the first node determining module is used for determining a target node from the nodes contained in the block chain according to a data operation instruction if the data operation instruction sent by a user is received; the data operation instruction carries a target node identifier;
the judging module is used for judging whether the target node is associated with the target application server;
the first operation module is used for determining the cooperative operation authority of the target application server relative to the target node according to the association judgment result and operating the information data of the target node based on the cooperative operation authority; wherein the cooperative operation authority comprises management authority and/or access authority.
13. An information management apparatus, applied to a blockchain service system, the blockchain service system being configured to manage a blockchain, and the blockchain service system comprising a plurality of application servers, the blockchain comprising a plurality of nodes, each of the application servers being associated with at least one of the nodes; the device comprises:
the second node determining module is used for determining a target node from the nodes contained in the block chain according to a data operation instruction if the data operation instruction sent by a user aiming at a target application server is received; the data operation instruction carries a target node identifier;
the second operation module is used for executing management operation and/or access operation on the information data of the target node through the target application server if the target node is associated with the target application server;
a third operation module, configured to, if the target node is not associated with the target application server, perform, by the target application server, an access operation on information data of the target node, and/or perform, by another application server associated with the target node, a management operation on the target node.
14. An application server comprising a memory and a processor, the memory having stored thereon a computer program operable on the processor, wherein the processor is configured to perform the steps of the method of any one of claims 1 to 7 when executing the computer program or to perform the steps of the method of claim 8 when executing the computer program.
15. A computer readable storage medium having stored thereon machine executable instructions which, when invoked and executed by a processor, cause the processor to execute the method of any of claims 1 to 7 or cause the processor to execute the method of claim 8.
CN202010602207.1A 2020-06-28 2020-06-28 Information management method and device and block chain service system Pending CN113852655A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010602207.1A CN113852655A (en) 2020-06-28 2020-06-28 Information management method and device and block chain service system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010602207.1A CN113852655A (en) 2020-06-28 2020-06-28 Information management method and device and block chain service system

Publications (1)

Publication Number Publication Date
CN113852655A true CN113852655A (en) 2021-12-28

Family

ID=78972758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010602207.1A Pending CN113852655A (en) 2020-06-28 2020-06-28 Information management method and device and block chain service system

Country Status (1)

Country Link
CN (1) CN113852655A (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101730099A (en) * 2008-10-14 2010-06-09 华为技术有限公司 Terminal management method based on authority control and device
CN107145605A (en) * 2017-06-07 2017-09-08 北京天德科技有限公司 One kind is based on block chain unified interface(OBCC)License chain application system
CN107911421A (en) * 2017-10-30 2018-04-13 上海点融信息科技有限责任公司 For configuring the method for internetwork communication, equipment and computer-readable storage medium in block chain
KR20180113145A (en) * 2017-04-05 2018-10-15 삼성에스디에스 주식회사 Method for processing blockchain based real-time transaction and system thereof
CN109873855A (en) * 2018-04-13 2019-06-11 贵州白山云科技股份有限公司 A kind of resource acquiring method and system based on block chain network
CN109981739A (en) * 2019-02-25 2019-07-05 平安科技(深圳)有限公司 Session data processing method, device, equipment and medium based on block chain
KR102009160B1 (en) * 2018-10-19 2019-08-09 빅픽처랩 주식회사 Information trust engine system based on block-chain
CN110138586A (en) * 2019-04-04 2019-08-16 平安科技(深圳)有限公司 Block chain node administration method, electronic device, system and readable storage medium storing program for executing
KR102031868B1 (en) * 2018-07-30 2019-10-15 지코소프트 주식회사 Distributed sso device
CN110381167A (en) * 2019-08-09 2019-10-25 中国工商银行股份有限公司 Block chain node based on cloud actively discovers system and method
CN110417896A (en) * 2019-07-31 2019-11-05 中国工商银行股份有限公司 The system and method for block chain dynamic group net based on cloud
CN110445850A (en) * 2019-07-24 2019-11-12 深圳壹账通智能科技有限公司 Block chain node access method and device, storage medium, electronic equipment
CN111245886A (en) * 2019-11-29 2020-06-05 武汉烽火信息集成技术有限公司 Multi-party collaboration system, method and storage medium based on block chain
CN111340483A (en) * 2020-02-12 2020-06-26 腾讯科技(深圳)有限公司 Data management method based on block chain and related equipment

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101730099A (en) * 2008-10-14 2010-06-09 华为技术有限公司 Terminal management method based on authority control and device
KR20180113145A (en) * 2017-04-05 2018-10-15 삼성에스디에스 주식회사 Method for processing blockchain based real-time transaction and system thereof
CN107145605A (en) * 2017-06-07 2017-09-08 北京天德科技有限公司 One kind is based on block chain unified interface(OBCC)License chain application system
CN107911421A (en) * 2017-10-30 2018-04-13 上海点融信息科技有限责任公司 For configuring the method for internetwork communication, equipment and computer-readable storage medium in block chain
CN109873855A (en) * 2018-04-13 2019-06-11 贵州白山云科技股份有限公司 A kind of resource acquiring method and system based on block chain network
KR102031868B1 (en) * 2018-07-30 2019-10-15 지코소프트 주식회사 Distributed sso device
KR102009160B1 (en) * 2018-10-19 2019-08-09 빅픽처랩 주식회사 Information trust engine system based on block-chain
CN109981739A (en) * 2019-02-25 2019-07-05 平安科技(深圳)有限公司 Session data processing method, device, equipment and medium based on block chain
CN110138586A (en) * 2019-04-04 2019-08-16 平安科技(深圳)有限公司 Block chain node administration method, electronic device, system and readable storage medium storing program for executing
CN110445850A (en) * 2019-07-24 2019-11-12 深圳壹账通智能科技有限公司 Block chain node access method and device, storage medium, electronic equipment
CN110417896A (en) * 2019-07-31 2019-11-05 中国工商银行股份有限公司 The system and method for block chain dynamic group net based on cloud
CN110381167A (en) * 2019-08-09 2019-10-25 中国工商银行股份有限公司 Block chain node based on cloud actively discovers system and method
CN111245886A (en) * 2019-11-29 2020-06-05 武汉烽火信息集成技术有限公司 Multi-party collaboration system, method and storage medium based on block chain
CN111340483A (en) * 2020-02-12 2020-06-26 腾讯科技(深圳)有限公司 Data management method based on block chain and related equipment

Similar Documents

Publication Publication Date Title
CN109327528B (en) Node management method and device based on block chain
US11477032B2 (en) System and method for decentralized-identifier creation
EP3613189B1 (en) Secure blockchain-based consensus
CN109741039B (en) Accounting method, mine pool server, terminal equipment, mine excavation node and mine pool
WO2021244208A1 (en) Proposal message processing method and apparatus for blockchain, and device and storage medium
CN110599213B (en) Article management method and device based on blockchain network and electronic equipment
WO2018177093A1 (en) Block chain processing method, accounting node, verification node and storage medium
CN111737724A (en) Data processing method and device, intelligent equipment and storage medium
JP2021517412A (en) Digital certificate verification methods and their devices, computer equipment and computer programs
JP2020068388A (en) Content contract system, content contract method, right holder terminal, assignee terminal, control terminal, content storage server, right holder program, assignee program, control program, and content storage program
CN110177124B (en) Identity authentication method based on block chain and related equipment
US20230037932A1 (en) Data processing method and apparatus based on blockchain network, and computer device
CN113256297B (en) Data processing method, device and equipment based on block chain and readable storage medium
US20230006840A1 (en) Methods and devices for automated digital certificate verification
CN109861996B (en) Block chain-based relationship proving method, device, equipment and storage medium
JP7417583B2 (en) Computer-implemented system and method for an accumulator-based protocol for distribution of tasks between computer networks
CN109981586B (en) Node marking method and device
CN113255014B (en) Data processing method based on block chain and related equipment
Abraham et al. Qualified eID derivation into a distributed ledger based IdM system
CN114913013B (en) House renting transaction system and house renting transaction method based on blockchain
CN114240433A (en) Data processing method and system based on block chain
CN111787034B (en) Block generation method, synchronization method, device, blockchain system and storage medium
US20190251532A1 (en) Systems and methods for providing distributed licensing and subscription management
CN113852655A (en) Information management method and device and block chain service system
CN111915313B (en) Digital asset transfer control method, device and communication system for blockchain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination