CN111813864A - Alliance chain building method and device, computer equipment and storage medium - Google Patents

Alliance chain building method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111813864A
CN111813864A CN202010718617.2A CN202010718617A CN111813864A CN 111813864 A CN111813864 A CN 111813864A CN 202010718617 A CN202010718617 A CN 202010718617A CN 111813864 A CN111813864 A CN 111813864A
Authority
CN
China
Prior art keywords
chain
alliance
members
block chain
federation
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
CN202010718617.2A
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.)
Runlian Software System Shenzhen Co Ltd
Original Assignee
Runlian Software System Shenzhen 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 Runlian Software System Shenzhen Co Ltd filed Critical Runlian Software System Shenzhen Co Ltd
Priority to CN202010718617.2A priority Critical patent/CN111813864A/en
Publication of CN111813864A publication Critical patent/CN111813864A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • G06F16/275Synchronous replication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/03Credit; Loans; Processing thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Computer Hardware Design (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Technology Law (AREA)
  • Data Mining & Analysis (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a device for building a alliance chain, computer equipment and a storage medium. The method comprises the steps that a alliance party responds to a request for establishing an alliance chain initiated by an alliance initiator, then self block chain nodes are established, self block chain link points are added into the block chain and the alliance chain is established, and then the block chain link points of all members in the alliance chain are in communication connection; the method comprises the following steps that members of a alliance chain build own BaaS service, and upload data generated when the BaaS service runs to respective block chain nodes in a coding mode; and broadcasting respective operation data to the block chain link points of all the members of the alliance chain through the block chain network by the alliance chain members, and then synchronizing the block chain nodes to respective databases to complete alliance chain construction. The invention overcomes the defect that the alliance initiator of the block chain building platform has absolute control authority on the platform data, realizes real-time sharing of the data of all members in the block chain, and improves the safety of the data.

Description

Alliance chain building method and device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of block chains, in particular to a method and a device for building a alliance chain, computer equipment and a storage medium.
Background
The existing BaaS (blockchain as a service) is a platform for building a alliance chain, and the data of the existing BaaS platform is stored in a traditional database (MySQL and the like), and the data of the existing BaaS platform is basically only stored in a database of an alliance initiator, so that the existing BaaS platform is still a centralized BaaS platform in practice, the data shared by the alliance initiator is obtained from the alliance initiator, the actual data control right still exists in the alliance initiator, and the fair sharing of the data cannot be realized for the alliance initiator.
Disclosure of Invention
The invention aims to provide a method and a device for building a alliance chain, computer equipment and a storage medium, and aims to solve the problems that data shared on the existing alliance chain is opaque and has low data security.
In a first aspect, an embodiment of the present invention provides a federation chain establishment method, including:
the alliance party responds to an alliance initiator to initiate a request for constructing an alliance chain and builds a block chain link point of the alliance party;
a alliance party generates a public key and a private key according to a key tool provided by an alliance initiator, and sends the public key to the alliance initiator, so that the alliance initiator trusts a block chain node of the alliance party, adds a block chain link point of the alliance party into a block chain, constructs the alliance chain, and performs communication connection on the block chain link points of all members in the alliance chain;
the method comprises the following steps that members of a alliance chain build own BaaS service, and upload data generated when the BaaS service runs to respective block chain nodes in a coding mode;
and broadcasting respective operation data to the block chain link points of all the members of the alliance chain through the block chain network by the alliance chain members, and then synchronizing the block chain nodes to respective databases to complete alliance chain construction.
In a second aspect, an embodiment of the present invention provides a federation chain building apparatus, including:
the response unit is used for responding the request for constructing the alliance chain initiated by the alliance initiator and constructing the block chain link point of the alliance party by the alliance party;
the building unit is used for generating a public key and a private key by the alliance party according to a key tool provided by the alliance initiator, sending the public key to the alliance initiator, enabling the alliance initiator to trust the block chain node of the alliance party, enabling the block chain node of the alliance party to be added into the block chain and building the alliance chain, and enabling the block chain nodes of all members in the alliance chain to be in communication connection;
the building unit is used for building the BaaS service of the members of the alliance chain and uploading data generated during the operation of the BaaS service to the respective block chain nodes in a coding mode;
the synchronization unit is used for broadcasting respective operation data to the block chain link points of all the members of the alliance chain through a block chain network by the members of the alliance chain, and then synchronizing the block chain nodes to respective databases to complete alliance chain construction;
and the query unit is used for accessing respective database through the BaaS service of each member when the member of the alliance chain needs to query the operation data, so as to complete the establishment of the alliance chain.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program that is stored on the memory and is executable on the processor, where the processor implements the federation chain building method according to the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, causes the processor to execute the federation chain building method according to the first aspect.
The invention discloses a method and a device for building a alliance chain, computer equipment and a storage medium. The method comprises the steps that a alliance party responds to a request for establishing an alliance chain initiated by an alliance initiator, then self block chain nodes are established, self block chain link points are added into the block chain and the alliance chain is established, and then the block chain link points of all members in the alliance chain are in communication connection; the method comprises the following steps that members of a alliance chain build own BaaS service, and upload data generated when the BaaS service runs to respective block chain nodes in a coding mode; and broadcasting respective operation data to the block chain link points of all the members of the alliance chain through the block chain network by the alliance chain members, and then synchronizing the block chain nodes to respective databases to complete alliance chain construction. The embodiment of the invention overcomes the defect that an alliance initiator of a block chain building platform has absolute control authority on platform data, realizes real-time sharing of data of all members in the block chain, cannot be tampered, and improves the safety of the data.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a federation chain building method provided by an embodiment of the present invention;
fig. 2 is a schematic flowchart of a federation chain building method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a federation chain building method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a federation chain building method according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of a federation chain building method according to an embodiment of the present invention;
FIG. 6 is a block chain service architecture diagram according to an embodiment of the present invention;
FIG. 7 is a block diagram illustrating a process for a new member joining a federation chain according to an embodiment of the present invention;
FIG. 8 is a block diagram of the process of creating a loan transaction channel and operating authorization provided by an embodiment of the invention;
FIG. 9 is a schematic block diagram of a federation chain building apparatus provided by an embodiment of the present invention;
FIG. 10 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1, fig. 1 is a schematic flow chart of a federation chain building method according to an embodiment of the present invention;
as shown in fig. 1, the method includes steps S101 to S105.
S101, the alliance party responds to a request for establishing an alliance chain initiated by an alliance initiator and establishes a block chain link point of the alliance party.
In this embodiment, the alliance initiator initiates a request for establishing an alliance chain on a BaaS platform and establishes a block chain platform and its own block chain link point, and the alliance initiator responds to the request for establishing the alliance chain and establishes its own block chain link point; the block chain link point is used for chaining operation data of the alliance chain members and recording the operation data of the alliance chain members, so that the defect that the operation data are completely stored in an alliance initiator can be overcome, the alliance initiator is prevented from tampering the data, and the safety of the data is guaranteed.
Furthermore, the alliance party responds to a request for establishing an alliance chain initiated by the alliance initiator and establishes a plurality of block chain nodes of the alliance party. Therefore, multi-machine backup of data can be realized, when a certain block chain link point of the multi-machine backup is attacked or fails to cause data loss, the multi-machine backup can be found from backups of other normal block chain nodes, single-point failure is prevented, and the safety of the data is further improved.
S102, a alliance party generates a public key and a private key according to a key tool provided by an alliance initiator, the public key is sent to the alliance initiator, the alliance initiator trusts block chain nodes of the alliance party, the block chain nodes of the alliance party are added into the block chain, the alliance chain is constructed, and the block chain nodes of all members in the alliance chain are in communication connection.
In this embodiment, the federation initiator provides a key tool for joining a federation chain to a federation initiator, the federation initiator generates a public key and a private key according to the key tool, and sends the public key to the federation initiator, so that the federation initiator trusts a block chain node of the federation initiator, and after the federation initiator trusts the block chain node of the federation initiator, the federation initiator starts its own block chain node through the private key and joins a block chain platform, and constructs a federation chain; and then, the block chain nodes of all the members in the alliance chain are connected in a communication mode, so that the operation data of all the members in the alliance chain can be shared.
S103, the members of the alliance chain set up the BaaS service of the members, and upload data generated when the BaaS service runs to the respective block chain nodes in a coding mode.
In the embodiment, after the federation chain is constructed, all members in the federation chain construct their own block link points and BaaS services, so that all members in the federation chain do not use the centralized BaaS service but use their own BaaS services, and all operations of the members in the federation chain are uploaded to their respective block link nodes in a coded form through their respective BaaS services, that is, all operations of the members in the federation chain are uplinked, which can ensure that data cannot be tampered with and further improve the authenticity of the data.
S104, broadcasting respective operation data to block chain link points of all members of the alliance chain through a block chain network by the alliance chain members, and then synchronizing the block chain nodes to respective databases to complete alliance chain construction.
In this embodiment, when a member of a federation chain operates using its BaaS service, the operation data of the member of the federation chain is not only uploaded to its own blockchain node, but also broadcasted to blockchain nodes of other members of the federation chain through a blockchain network, and each blockchain node is synchronized to its own database (e.g., MySQL database), so that if a member of the federation chain wants to tamper with its local data privately, the characteristics of the blockchain will leave an indelible trace, thereby making the shared data have the advantages of fairness and transparency.
In an embodiment, as shown in fig. 2, the broadcasting, by the federation chain members, of respective operation data to the block link nodes of all members of the federation chain through the block chain network, and then synchronizing, by the block chain nodes, the synchronization to the respective databases includes, after completion of federation chain establishment:
s201, performing uplink on the application operation of each member applying for joining the alliance chain, broadcasting to each member of the alliance chain through a block chain network, and auditing to obtain an auditing result;
s202, judging whether more than half of the verification results are approved, if yes, the member is successfully joined, and the alliance initiator generates a token for the newly joined member to serve as a certificate for joining the member in the alliance chain.
In this embodiment, when a new member is added to the federation chain, the new member needs to be audited by the existing member and can be completed after the audit is passed, so that the qualification of the member of the federation chain can be controlled, and the stability of the federation chain is maintained.
In connection with fig. 7, for example, federation chain member a is a new member applying for joining the federation chain, and federation chain member B, federation chain member C, and federation chain member D are existing members of the federation chain.
Specifically, the member a of the federation chain applies for joining in an application operation uplink of a federation chain, and the member a of the federation chain, the member C of the federation chain and the member D of the federation chain are broadcasted by the blockchain network, after receiving the application operation for joining in the federation chain, the member B of the federation chain, the member C of the federation chain and the member D of federation chain are audited and voted, an audit result is obtained according to the voting condition, the audit result is broadcasted by the blockchain network to the member B of the federation chain, the member C of federation chain and the member D of federation chain, if the number of votes in the audit result is more than half, the member a of federation chain is successfully joined in the federation chain, and the initiator of federation chain generates a token for the member a of federation chain, which is used as a certificate for the member a of federation chain to join in the federation; and if the number of voting passes in the auditing result is not more than half, indicating that the member A of the alliance chain fails to join the alliance chain.
In an embodiment, as shown in fig. 3, the broadcasting, by the federation chain members, of respective operation data to the block link nodes of all members of the federation chain through the block chain network, and then synchronizing, by the block chain nodes, the synchronization to the respective databases includes, after completion of federation chain establishment:
s301, performing uplink on the application operation of each member applying for quitting the alliance chain, broadcasting to each alliance chain member through a block chain network, and auditing to obtain an auditing result;
s302, judging whether more than half of the verification results agree, and if yes, quitting successfully.
In this embodiment, when the member exits the federation chain, the member also needs to perform auditing by the existing member and can successfully exit the federation chain after the auditing is passed.
For example, federation chain member A, federation chain member B, federation chain member C, and federation chain member D comprise a federation chain, the federation chain member A applying for a logout of the federation chain.
Specifically, the member a in the alliance chain applies for an application operation uplink for quitting the alliance chain, and the application operation uplink is broadcasted to a member B in the alliance chain, a member C in the alliance chain and a member D in the alliance chain by the blockchain network, after receiving the application operation for quitting the alliance chain, the member B in the alliance chain, the member C in the alliance chain and the member D in the alliance chain are audited and voted, an audit result is obtained according to the voting condition, the audit result is broadcasted to the member B in the alliance chain, the member C in the alliance chain and the member D in the alliance chain by the blockchain network, and if the number of votes in the audit result is more than half, the member; and if the number of voting passes in the auditing result is not more than half, indicating that the member A of the alliance chain fails to exit the alliance chain.
Furthermore, in normal operations of applying for joining and applying for quitting the alliance chain, the votes of all members in the alliance chain are counted in the block chain node, so that the data cannot be tampered and the safety is guaranteed, meanwhile, the alliance initiator is prevented from having overlarge authority, the data is modified at will, the alliance chain members are deleted at will, all the members in the alliance chain are guaranteed to have the same authority, and decentralized management is achieved.
In an embodiment, the method includes that each member of the federation chain broadcasts its own operation data to the block link points of all members of the federation chain through a block chain network, and then the block link nodes synchronize to their own databases, and after completion of federation chain construction, the method includes:
when the designated service of the member of the alliance chain cannot be accessed and the time length of the service which cannot be accessed reaches the preset time length, the member is automatically kicked out of the alliance chain.
In this embodiment, when the specified service of the member of the federation chain does not run and cannot be accessed for a long time in the federation chain, and the time length for which the service cannot be accessed reaches a preset time length, the member is automatically kicked out of the federation chain, where the preset time length may be one month, two months, or other time, and is specifically determined according to an actual service scenario; for example, as the supply service of the alliance chain member a of the provider, the alliance chain member cannot access the supply service of the alliance chain member a, the alliance chain member a no longer provides the supply service, and the situation reaches the preset time duration of two months, the alliance chain member a is automatically kicked out of the alliance chain.
In an embodiment, as shown in fig. 4, the broadcasting, by the federation chain members, of respective operation data to the block link nodes of all members of the federation chain through the block chain network, and then synchronizing, by the block chain nodes, the synchronization to the respective databases includes, after completion of federation chain establishment:
s401, when a member in a alliance chain creates a public service channel, selecting a common table operation, and uplink the operation of creating the public service channel;
s402, broadcasting the operation of creating the public service channel to each member of the alliance chain through the block chain network;
and S403, finally authorizing the authority of each member of the alliance chain to join the public service channel, and realizing service interaction in the public service channel.
After the alliance chain is successfully established, members in the alliance chain can establish a service channel, the service channel is a channel for service communication among the alliance chain members, and the intelligent contract is operated based on the service channel; that is, members of the federation chain want to make transactions through the federation chain, and must first join the same service channel and complete the transaction in the service channel.
In this embodiment, a member of a federation chain creates a common service channel according to a service requirement, where the common service channel is used for public service traffic between members of the federation chain, selects a common table operation (without encryption), then chains up the operation for creating the common service channel, and broadcasts the operation for creating the common service channel to each member of the federation chain through the blockchain network after the chain up, so that all members in the federation chain receive operation data of one member creating the common service, and obtain an authority to join the common service channel, and implement service interaction between the members after joining the common service channel.
In an embodiment, as shown in fig. 5, the broadcasting, by the federation chain members, of respective operation data to the block link nodes of all members of the federation chain through the block chain network, and then synchronizing, by the block chain nodes, the synchronization to the respective databases includes, after completion of federation chain establishment:
s501, when each member in the alliance chain creates a special service channel, selecting an encryption table operation, and performing uplink on the operation of creating the special service channel;
s502, broadcasting the operation of creating the special service channel to each member of the alliance chain through the block chain network;
s503, authorizing the member participating in the special service in the alliance chain to join the authority of the special service channel, and realizing service interaction in the special service channel.
In this embodiment, a member of a federation chain creates a special service channel according to a service requirement, the special service channel is used for performing special service traffic between members of the federation chain, an encryption table operation (encryption is required) needs to be selected, the security of the service is improved, the operation for creating the special service channel is linked up, the operation for creating the special service channel is broadcast to each member of the federation chain through a blockchain network after the linking up, so that all members in the federation chain receive a block containing a ciphertext transaction, but because the created service channel is a special service channel, all members in the federation chain do not have the authority to join the special service channel at this time, then the member of the federation chain creating the special service channel authorizes the authority of the member participating in the special service in the federation chain to join the special service channel, links the authorization operation and broadcasts the authorization operation to each member of the federation chain through the blockchain network, at the moment, the member of the alliance chain can check whether the member has the authority of adding the special service channel, if so, the member analyzes the authorization operation into a plaintext and stores the plaintext into a database of the member, and adds the plaintext into the special service channel to carry out service interaction, and if not, the member is irrelevant to the member, and is not processed.
Specifically, as shown in fig. 8, a federation chain is formed by a federation chain member a, a federation chain member B, a federation chain member C, and a federation chain member D, where a loan transaction is performed between federation chain member a and federation chain member B.
The alliance chain member A creates a loan service channel, selects an encryption table operation, carries out uplink operation, broadcasts the operation of creating the loan service channel to an alliance chain member B, an alliance chain member C and an alliance chain member D through a block chain network, the alliance chain member B, the alliance chain member C and the alliance chain member D receive a block containing ciphertext transaction, but does not read the authority of the block, authorizes the authority of the alliance chain member B participating in the loan service in the alliance chain to join the loan service channel through the alliance chain member A, carries out uplink operation on the authorization operation, broadcasts the authorization operation to the alliance chain member B, the alliance chain member C and the alliance chain member D through the block chain network, at the moment, the alliance chain member B can read the block and analyze the authorization transaction related to the alliance chain member B and analyze the authorization operation into a plaintext and store the plaintext into a database of the alliance chain member, and the client side joins a loan service channel to carry out loan service, and the member C and the member D read the block and do not relate to the block and do not need to process the block.
In an embodiment, the method includes that each member of the federation chain broadcasts its own operation data to the block link points of all members of the federation chain through a block chain network, and then the block link nodes synchronize to their own databases, and after completion of federation chain construction, the method includes:
when the members of the alliance chain need to inquire the operation data, the members access respective databases through the BaaS service of the members.
In this embodiment, when a member of the federation chain needs to query operation data, the member of the federation chain is connected to a local database through a BaaS service of the member of the federation chain, and then the member of the federation chain can access the local database and perform query.
The embodiment of the invention also provides a device for building the alliance chain, which is used for executing any embodiment of the method for building the alliance chain. Specifically, referring to fig. 9, fig. 9 is a schematic block diagram of a federation chain building apparatus according to an embodiment of the present invention.
As shown in fig. 9, the alliance chain building apparatus 900 includes: a response unit 901, a construction unit 902, a construction unit 903 and a synchronization unit 904.
A response unit 901, configured to respond to a request for building a federation chain initiated by a federation initiator and build a block link point of the block link point;
a constructing unit 902, configured to generate a public key and a private key by a federation party according to a key tool provided by a federation initiator, send the public key to the federation initiator, enable the federation initiator to trust a block chain node of the federation party, enable a block chain link point of the federation initiator to join the block chain and construct a federation chain, and perform communication connection on the block chain link points of all members in the federation chain;
the building unit 903 is used for building the BaaS service of the members of the alliance chain and uploading the data of the BaaS service during operation to the respective block chain nodes in a coding mode;
and the synchronization unit 904 is configured to broadcast respective operation data to the block link points of all the members of the federation chain through the block chain network by the members of the federation chain, and then synchronize the block link points to respective databases to complete federation chain construction.
The device overcomes the defect that an alliance initiator of a block chain building platform has absolute control authority on platform data, realizes real-time sharing of data of all members in the block chain, cannot be tampered, and improves the safety of the data.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The federation chain building apparatus described above may be implemented in the form of a computer program which may be run on a computer device as shown in figure 10.
Referring to fig. 10, fig. 10 is a schematic block diagram of a computer device according to an embodiment of the present invention. The computer device 1000 is a server, and the server may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 10, the computer device 1000 includes a processor 1002, a memory, which may include a non-volatile storage medium 1003 and an internal memory 1004, and a network interface 1005 connected by a system bus 1001.
The nonvolatile storage medium 1003 can store an operating system 10031 and a computer program 10032. The computer program 10032, when executed, can cause the processor 1002 to perform a federation chain construction method.
The processor 1002 is used to provide computing and control capabilities, supporting the operation of the overall computer device 1000.
The internal memory 1004 provides an environment for the running of the computer program 10032 in the non-volatile storage medium 1003, which computer program 10032, when executed by the processor 1002, may cause the processor 1002 to perform a federation chain building method.
The network interface 1005 is used for network communication, such as providing transmission of data information. Those skilled in the art will appreciate that the configuration shown in fig. 10 is a block diagram of only a portion of the configuration associated with aspects of the present invention and is not intended to limit the computing device 1000 to which aspects of the present invention may be applied, and that a particular computing device 1000 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Those skilled in the art will appreciate that the embodiment of a computer device illustrated in fig. 10 does not constitute a limitation on the specific construction of the computer device, and that in other embodiments a computer device may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may only include a memory and a processor, and in such embodiments, the structures and functions of the memory and the processor are consistent with those of the embodiment shown in fig. 10, and are not described herein again.
It should be understood that, in the embodiment of the present invention, the Processor 1002 may be a Central Processing Unit (CPU), and the Processor 1002 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the invention, a computer-readable storage medium is provided. The computer readable storage medium may be a non-volatile computer readable storage medium. The computer readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the federation chain establishment method of an embodiment of the present invention.
The storage medium is an entity and non-transitory storage medium, and may be various entity storage media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, devices and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for building a federation chain, comprising:
the alliance party responds to an alliance initiator to initiate a request for constructing an alliance chain and builds a block chain link point of the alliance party;
a alliance party generates a public key and a private key according to a key tool provided by an alliance initiator, and sends the public key to the alliance initiator, so that the alliance initiator trusts a block chain node of the alliance party, adds a block chain link point of the alliance party into a block chain, constructs the alliance chain, and performs communication connection on the block chain link points of all members in the alliance chain;
the method comprises the following steps that members of a alliance chain build own BaaS service, and upload data generated when the BaaS service runs to respective block chain nodes in a coding mode;
and broadcasting respective operation data to the block chain link points of all the members of the alliance chain through the block chain network by the alliance chain members, and then synchronizing the block chain nodes to respective databases to complete alliance chain construction.
2. A federation chain construction method according to claim 1, wherein the federation chain members broadcast their respective operation data to the block link nodes of all members of the federation chain through a block chain network, and then synchronize to their respective databases by the block chain nodes, and after completing the construction of a federation chain, the method comprises:
applying operation of each member applying for joining the alliance chain for uplink, broadcasting to each member of the alliance chain through a block chain network for auditing and obtaining an auditing result;
and judging whether more than half of the members agree with the verification result, if so, the member is successfully joined, and the alliance initiator generates a token for the newly joined member to serve as a certificate for joining the member in the alliance chain.
3. A federation chain construction method according to claim 1, wherein the federation chain members broadcast their respective operation data to the block link nodes of all members of the federation chain through a block chain network, and then synchronize to their respective databases by the block chain nodes, and after completing the construction of a federation chain, the method comprises:
the application operation of each member applying for quitting the alliance chain is subjected to uplink, and the uplink is broadcasted to each alliance chain member through the block chain network to be audited to obtain an audit result;
and judging whether more than half of the verification results agree, if so, quitting successfully.
4. A federation chain construction method according to claim 1, wherein the federation chain members broadcast their respective operation data to the block link nodes of all members of the federation chain through a block chain network, and then synchronize to their respective databases by the block chain nodes, and after completing the construction of a federation chain, the method comprises:
when the designated service of the member of the alliance chain cannot be accessed and the time length of the service which cannot be accessed reaches the preset time length, the member is automatically kicked out of the alliance chain.
5. A federation chain construction method according to claim 1, wherein the federation chain members broadcast their respective operation data to the block link nodes of all members of the federation chain through a block chain network, and then synchronize to their respective databases by the block chain nodes, and after completing the construction of a federation chain, the method comprises:
when a member in the alliance chain establishes a public service channel, selecting a common table operation, and uplink the operation of establishing the public service channel;
then, broadcasting the operation of creating the public service channel to each member of the alliance chain through the block chain network;
and finally, authorizing the authority of each member of the alliance chain to join the public service channel, and realizing service interaction in the public service channel.
6. A federation chain construction method according to claim 1, wherein the federation chain members broadcast their respective operation data to the block link nodes of all members of the federation chain through a block chain network, and then synchronize to their respective databases by the block chain nodes, and after completing the construction of a federation chain, the method comprises:
when each member in the alliance chain creates a special service channel, selecting an encryption table operation, and uplink the operation of creating the special service channel;
then, broadcasting the operation of creating the special service channel to each member of the alliance chain through the block chain network;
and finally, authorizing the authority of the member participating in the special service in the alliance chain to join the special service channel, and realizing service interaction in the special service channel.
7. A federation chain construction method according to claim 1, wherein the federation chain members broadcast their respective operation data to the block link nodes of all members of the federation chain through a block chain network, and then synchronize to their respective databases by the block chain nodes, and after completing the construction of a federation chain, the method comprises:
when the members of the alliance chain need to inquire the operation data, the members access respective databases through the BaaS service of the members.
8. A federation chain creation device, comprising:
the response unit is used for responding the request for constructing the alliance chain initiated by the alliance initiator and constructing the block chain link point of the alliance party by the alliance party;
the system comprises a building unit, a block chain link point and a block chain link point, wherein the building unit is used for generating a public key and a private key by a alliance party according to a key tool provided by an alliance initiator, sending the public key to the alliance initiator, enabling the alliance initiator to trust the block chain link point of the alliance party, enabling the block chain link point of the block chain link point to be added into the block chain, and carrying out communication connection on the block chain link points of all members in the alliance;
the building unit is used for building the BaaS service of the members of the alliance chain and uploading data generated during the operation of the BaaS service to the respective block chain nodes in a coding mode;
and the synchronization unit is used for broadcasting the respective operation data to the block chain link points of all the members of the alliance chain through the block chain network by the alliance chain members, and then synchronizing the block chain nodes to respective databases to complete alliance chain construction.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements a federation chain construction method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that it stores a computer program which, when executed by a processor, causes the processor to carry out a federation chain construction method according to any one of claims 1 to 7.
CN202010718617.2A 2020-07-23 2020-07-23 Alliance chain building method and device, computer equipment and storage medium Pending CN111813864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010718617.2A CN111813864A (en) 2020-07-23 2020-07-23 Alliance chain building method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010718617.2A CN111813864A (en) 2020-07-23 2020-07-23 Alliance chain building method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111813864A true CN111813864A (en) 2020-10-23

Family

ID=72860880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010718617.2A Pending CN111813864A (en) 2020-07-23 2020-07-23 Alliance chain building method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111813864A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112328605A (en) * 2020-11-26 2021-02-05 安徽继远软件有限公司 Block chain-based power field safety data management method and system
CN112508562A (en) * 2020-12-01 2021-03-16 浙商银行股份有限公司 Block chain public transaction multi-level consensus method, equipment and storage medium
CN112583802A (en) * 2020-12-03 2021-03-30 重庆新致金服信息技术有限公司 Data sharing platform system and equipment based on block chain and data sharing method
CN112804091A (en) * 2020-12-31 2021-05-14 北京百度网讯科技有限公司 Operation implementation method, device, equipment and storage medium of alliance network
CN112925510A (en) * 2021-03-05 2021-06-08 安徽家家猫科技有限责任公司 Order cross-system cooperative positioning method based on alliance chain intelligent contract
CN113032485A (en) * 2021-03-16 2021-06-25 上海图灵加佳网络科技有限公司 Data storage device and data storage method of block chain node
CN113377738A (en) * 2021-04-28 2021-09-10 南京欣网互联网络科技有限公司 Method for building BaaS framework based on PaaS platform and EOS framework
CN113452769A (en) * 2021-06-23 2021-09-28 上海佩俪信息科技有限公司 Network layering method and system based on block chain
CN113469554A (en) * 2021-07-17 2021-10-01 绿漫科技有限公司 Community security task supervision method based on alliance chain management
CN113923233A (en) * 2021-09-30 2022-01-11 广联达科技股份有限公司 Alliance chain management method
CN114553447A (en) * 2020-11-11 2022-05-27 中国移动通信有限公司研究院 BaaS platform alliance negotiation management method, device and system
CN114928558A (en) * 2022-06-14 2022-08-19 上海万向区块链股份公司 Operation and maintenance method and system based on block chain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106339793A (en) * 2016-08-16 2017-01-18 杭州市质量技术监督检测院 Product quality risk early warning system and method
CN108305072A (en) * 2018-01-04 2018-07-20 上海点融信息科技有限责任公司 Dispose method, equipment and the computer storage media of block chain network
US20190253245A1 (en) * 2018-11-27 2019-08-15 Alibaba Group Holding Limited Asymmetric key management in consortium blockchain networks
CN110572262A (en) * 2019-09-20 2019-12-13 中国银行股份有限公司 Block chain alliance chain construction method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106339793A (en) * 2016-08-16 2017-01-18 杭州市质量技术监督检测院 Product quality risk early warning system and method
CN108305072A (en) * 2018-01-04 2018-07-20 上海点融信息科技有限责任公司 Dispose method, equipment and the computer storage media of block chain network
US20190253245A1 (en) * 2018-11-27 2019-08-15 Alibaba Group Holding Limited Asymmetric key management in consortium blockchain networks
CN110572262A (en) * 2019-09-20 2019-12-13 中国银行股份有限公司 Block chain alliance chain construction method, device and system

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114553447A (en) * 2020-11-11 2022-05-27 中国移动通信有限公司研究院 BaaS platform alliance negotiation management method, device and system
CN112328605A (en) * 2020-11-26 2021-02-05 安徽继远软件有限公司 Block chain-based power field safety data management method and system
CN112328605B (en) * 2020-11-26 2024-01-12 安徽继远软件有限公司 Block chain-based power field security data management method and system
CN112508562A (en) * 2020-12-01 2021-03-16 浙商银行股份有限公司 Block chain public transaction multi-level consensus method, equipment and storage medium
CN112508562B (en) * 2020-12-01 2024-04-19 浙商银行股份有限公司 Blockchain open transaction multi-level consensus method, equipment and storage medium
CN112583802A (en) * 2020-12-03 2021-03-30 重庆新致金服信息技术有限公司 Data sharing platform system and equipment based on block chain and data sharing method
CN112583802B (en) * 2020-12-03 2023-02-17 重庆新致金服信息技术有限公司 Data sharing platform system and equipment based on block chain and data sharing method
CN112804091A (en) * 2020-12-31 2021-05-14 北京百度网讯科技有限公司 Operation implementation method, device, equipment and storage medium of alliance network
CN112804091B (en) * 2020-12-31 2023-07-25 北京百度网讯科技有限公司 Method, device, equipment and storage medium for realizing operation of alliance network
CN112925510A (en) * 2021-03-05 2021-06-08 安徽家家猫科技有限责任公司 Order cross-system cooperative positioning method based on alliance chain intelligent contract
CN113032485A (en) * 2021-03-16 2021-06-25 上海图灵加佳网络科技有限公司 Data storage device and data storage method of block chain node
CN113377738A (en) * 2021-04-28 2021-09-10 南京欣网互联网络科技有限公司 Method for building BaaS framework based on PaaS platform and EOS framework
CN113377738B (en) * 2021-04-28 2024-03-22 南京欣网互联网络科技有限公司 Method for building BaaS architecture based on PaaS platform and EOS framework
CN113452769A (en) * 2021-06-23 2021-09-28 上海佩俪信息科技有限公司 Network layering method and system based on block chain
CN113469554A (en) * 2021-07-17 2021-10-01 绿漫科技有限公司 Community security task supervision method based on alliance chain management
CN113923233A (en) * 2021-09-30 2022-01-11 广联达科技股份有限公司 Alliance chain management method
CN114928558A (en) * 2022-06-14 2022-08-19 上海万向区块链股份公司 Operation and maintenance method and system based on block chain
CN114928558B (en) * 2022-06-14 2023-12-12 上海万向区块链股份公司 Operation and maintenance method and system based on block chain

Similar Documents

Publication Publication Date Title
CN111813864A (en) Alliance chain building method and device, computer equipment and storage medium
US10922772B2 (en) Copyright authorization management method and system
CN111741114B (en) Chain-of-block-based supervision cross-chain interaction system, method and equipment
CN110990408B (en) Business information collaboration method based on block chain, business system and alliance chain
CN106503098B (en) Block chain cloud service framework system built in Paas service layer
CN106878071B (en) Block chain consensus mechanism based on Raft algorithm
CN111612613B (en) Block chain network with centralized system
CN111464518B (en) Method and device for sending and verifying cross-link communication data
DE602005002652T2 (en) System and method for renewing keys used in public-key cryptography
CN110069475B (en) Manufacturing industry cross-data entity tracing method based on block chain multi-party self-maintenance
CN111861477A (en) Block chain-based post-transaction data processing method and device and computer equipment
CN103327084A (en) Public and private hybrid distributed cloud storage system and cloud storage method
CN105827410A (en) Block chain transmission method and system with trusted node/satellite node construction
DE112012005564T5 (en) Secure peer discovery and authentication using a shared secret
WO2019072021A1 (en) Method for supporting artificial participation in blockchain decision making and electronic device
CN110647583B (en) Block chain construction method, device, terminal and medium
CN109299333B (en) Block chain network account book member management method, device, equipment and storage medium
KR102294569B1 (en) Block Chain Management System To Build Block Chain Network
CN111310945B (en) Operation and maintenance management method and device and electronic equipment
CN115865537B (en) Privacy computing method based on centralized system management, electronic equipment and storage medium
CN114707663B (en) Distributed machine learning method, device, electronic equipment and storage medium
EP3663956A1 (en) Microcontroller
CN114978651A (en) Privacy calculation evidence storage method and device, electronic equipment and storage medium
CN114155000A (en) Traceable concrete quality management system based on block chain
CN115086353A (en) Block chain event processing method and related device, equipment, platform and storage medium

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