Block chain creation method and device, equipment, storage medium and program product
By introducing the verification and decision-making mechanism of alliance nodes into the blockchain creation method, using ring signatures to verify user identity and create a new blockchain, the problem of blockchain security reduction caused by cloud computing platform vulnerabilities is solved, and the security of the new blockchain is improved.
Patent Information
- Application Number
- CN202411929137.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2044-12-25
AI Technical Summary
There may be vulnerabilities in cloud computing platforms, resulting in reduced security of blockchain.
By receiving the blockchain chain building request sent by the user terminal, the chain building information and ring signature results are sent to the alliance node terminal, and the alliance node terminal verifies the ring signature results and outputs the chain building information. If the decision result is agreed, a new blockchain is created using configuration parameters.
The security of the new blockchain is improved when it is established, and the security of the initiation process of the new blockchain creation is ensured through ring signature verification.
Smart Images

Figure CN119834983A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain technology, and in particular to a blockchain creation method, device, equipment, storage medium and program product. Background Art
[0002] Blockchain refers to a string of blocks generated by cryptographic methods. The block data in each block in the blockchain is related to the block data in the previous block. Therefore, it is impossible to cheat by tampering with the block data. It can ensure that the block data on any block is open and transparent, thereby improving the security of input information.
[0003] Currently, the blockchain framework can be embedded in the cloud computing platform and the cloud service infrastructure can be used to operate the blockchain in the web interface.
[0004] However, the inventors have discovered that the relevant technology has at least the following technical problems: the cloud computing platform may have vulnerabilities, resulting in reduced security of the blockchain. Summary of the invention
[0005] The present application provides a blockchain creation method, device, equipment, storage medium and program product to solve the technical problem of reduced security of blockchain.
[0006] In a first aspect, the present application provides a blockchain creation method, comprising: receiving a blockchain chain establishment request sent by a user terminal, wherein the blockchain chain establishment request includes chain establishment information and a ring signature result, wherein the chain establishment information includes configuration parameters and an alliance node identifier; sending the chain establishment information and the ring signature result to an alliance node terminal corresponding to the alliance node identifier, so that the alliance node terminal verifies the ring signature result to obtain a verification result, and if the verification result is normal, outputting the chain establishment information; receiving decision results sent by each alliance node terminal according to the chain establishment information; if each decision result is agreed, using each configuration parameter to create a new blockchain.
[0007] In a second aspect, the present application provides a blockchain creation device, including: a request receiving module, used to receive a blockchain chain building request sent by a user terminal, wherein the blockchain chain building request includes chain building information and a ring signature result, wherein the chain building information includes an alliance node identifier; a data sending module, used to send the chain building information and the ring signature result to the alliance node terminal corresponding to the alliance node identifier, so that the alliance node terminal verifies the ring signature result and obtains a verification result. If the verification result is normal, the chain building information is output; a result receiving module, used to receive the decision results sent by each alliance node terminal according to the chain building information; a blockchain creation module, used to create a new blockchain using each configuration parameter if each decision result is agreed.
[0008] In a third aspect, the present application provides an electronic device comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the blockchain creation method described in the first aspect.
[0009] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the blockchain creation method described in the first aspect.
[0010] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the blockchain creation method described in the first aspect.
[0011] The blockchain creation method, apparatus, device, storage medium and program product provided by the present application take the basic blockchain as the basis. After the basic blockchain node receives the blockchain chain building request, the chain building information and the ring signature result in the blockchain chain building request are sent to the alliance node terminal specified in the blockchain chain building request. The ring signature result is verified by the alliance node terminal to obtain the verification result. After the verification is passed, the chain building information is output to obtain the decision result input by the user. When the decision results are all agreed, a new blockchain is established. Since the new blockchain is established by the blockchain, it is guaranteed that the establishment process of the new blockchain will not be affected by the outside world, which increases the security of the establishment of the new blockchain. At the same time, since the ring signature method is used to authenticate the identity of the party proposing the construction of the new blockchain, the security of the initiation process of the creation of the new blockchain is guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0013] Figure 1 A schematic diagram of a scenario for the blockchain creation method provided for this application;
[0014] Figure 2 A flowchart of a blockchain creation method provided in an embodiment of the present application;
[0015] Figure 3 A schematic diagram of the structure of a blockchain creation device provided in an embodiment of the present application;
[0016] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0017] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0018] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0019] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant regions, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0020] It should be noted that the blockchain creation method, device, equipment, storage medium and program product provided in this application can be used in the blockchain field, and can also be used in any field other than blockchain. The application field of the blockchain creation method, device, equipment, storage medium and program product in this application is not limited.
[0021] Figure 1 A schematic diagram of the scenario of the blockchain creation method provided in this application. Figure 1 In this scenario, it includes: basic blockchain node 101, user terminal 102, and alliance node terminal 103.
[0022] In the specific implementation process, the basic blockchain node 101 may include a computer, a server or a cluster of multiple servers. If possible, a computer with stronger computing power, a laptop computer, etc. may be used as a substitute.
[0023] The user terminal 102 and the alliance node terminal 103 may include a computer, a server, a tablet, a mobile phone, a PDA (Personal Digital Assistant), a notebook, etc., which may perform data input and output. The alliance node terminal 103 may include the user terminal 102 .
[0024] The connection between the basic blockchain node 101 and the user terminal 102 and the alliance node terminal 103 can be a wired connection or a wireless connection.
[0025] It is understandable that the scenarios illustrated in the embodiments of the present application do not constitute a specific limitation on the blockchain creation method. In other feasible implementations of the present application, the above scenarios may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently, which can be determined according to the actual application scenario and is not limited here. Figure 1 The scenarios shown can be implemented by hardware, software, or a combination of software and hardware.
[0026] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0027] Figure 2 A flowchart of a blockchain creation method provided in an embodiment of the present application. The execution subject of the embodiment of the present application may be Figure 1 The basic blockchain nodes in this embodiment are not particularly limited. Figure 2 As shown, the method includes:
[0028] S201: receiving a blockchain establishment request sent by a user terminal, wherein the blockchain establishment request includes chain establishment information and a ring signature result, wherein the chain establishment information includes configuration parameters and an alliance node identifier.
[0029] In this step, the blockchain establishment request may be received by receiving a message, a data packet, or the like sent by a user terminal, and the ring signature result may include the result obtained by the user terminal using the public key of a known alliance node in the blockchain and its own private key to sign the chain establishment information ring.
[0030] The link establishment information may be generated by the user in a user terminal by inputting data, selecting a drop-down menu, checking an option, etc.
[0031] S202: Send the chain establishment information and the ring signature result to the alliance node terminal corresponding to the alliance node identifier, so that the alliance node terminal verifies the ring signature result and obtains the verification result. If the verification result is normal, the chain establishment information is output.
[0032] In this step, the chain building information and the ring signature result may be encapsulated according to a preset protocol and sent to the alliance node terminal. The alliance node terminal verifies the ring signature result through the chain building information, the ring signature result and the public keys of each alliance node known in advance. During the verification, the correctness and authenticity of the signature are determined by checking whether the signature satisfies a specific mathematical relationship or equation to obtain a verification result. The alliance node terminal can display and output the chain building information.
[0033] S203: receiving the decision results sent by each alliance node terminal according to the link establishment information.
[0034] In this step, the decision result can be input by the user into the alliance node terminal, and sent to the basic blockchain node by the alliance node terminal using a preset communication protocol.
[0035] S204: If the decision results are in agreement, a new blockchain is created using the configuration parameters.
[0036] In this step, for example, there are currently 5 alliance node identifiers corresponding to 5 alliance node terminals, and the decision results received from these 5 alliance node terminals are all agreed, then a new blockchain is created using the configuration parameters.
[0037] From the description of the above embodiments, it can be seen that the embodiments of the present disclosure take the basic blockchain as the basis. After the basic blockchain node receives the blockchain chain building request, the chain building information and the ring signature result in the blockchain chain building request are sent to the alliance node terminal specified in the blockchain chain building request. The ring signature result is verified by the alliance node terminal to obtain the verification result. After the verification is passed, the chain building information is output to obtain the decision result input by the user. When the decision results are all agreed, a new blockchain is established. Since the new blockchain is established by the blockchain, it is guaranteed that the establishment process of the new blockchain will not be affected by the outside world, which increases the security of the establishment of the new blockchain. At the same time, since the ring signature method is used to authenticate the identity of the party proposing the construction of the new blockchain, the security of the initiation process of creating the new blockchain is guaranteed.
[0038] In a possible implementation, the configuration parameter corresponds to the configuration type.
[0039] Among them, configuration types include processor type, memory size, consensus algorithm type, alliance party identification, etc. Consensus algorithm types include proof of work, proof of stake, practical Byzantine fault tolerance, delayed proof of work, etc.
[0040] Correspondingly, in the above step S204, if the decision results are agreed, a new blockchain is created using the configuration parameters, including: step S204A1 and step S204A2.
[0041] S204A1: If the decision results are in agreement, the configuration parameters are written into the smart contract template according to the configuration type corresponding to the configuration parameters to obtain a smart contract to be executed.
[0042] In this step, the smart contract template may have data writing locations corresponding to each configuration type, and the configuration parameters are written into the corresponding data writing locations to obtain the smart contract to be executed. If the configuration parameters do not cover all configuration types in the smart contract template, the configuration types not covered can use the default configuration parameters.
[0043] S204A2: Execute the pending smart contract to create a new blockchain.
[0044] This step may include executing the code in the smart contract to create a new blockchain.
[0045] From the description of the above embodiments, it can be seen that the embodiment of the present disclosure obtains a smart contract to be executed by writing the configuration parameters into the position of the corresponding configuration type in the smart contract template when the decision result is consent.
[0046] In a possible implementation, if the decision results are in agreement, a new blockchain is created using the configuration parameters, including steps S204B1 to S204B3.
[0047] S204B1: If the decision results are in agreement, then find the smart contract template corresponding to the configuration parameters.
[0048] In this step, the corresponding smart contract template may be searched through the content of the configuration parameters.
[0049] Specifically, it includes using configuration parameters, finding the correspondence between preset configuration parameters and templates, and obtaining the corresponding smart contract template. The correspondence between configuration parameters and templates can be pre-configured by staff and written into the blockchain, and stored in a format such as a table or file.
[0050] S204B2: Write the configuration parameters into the smart contract template to obtain the smart contract to be executed.
[0051] This step is similar to the above step S204A1 and will not be described again here.
[0052] S204B3: Smart pending execution of smart contracts to create new blockchains.
[0053] This step is similar to the above step S204A2 and will not be repeated here.
[0054] From the description of the above embodiments, it can be seen that the embodiments of the present disclosure obtain the contract to be executed by searching for the smart contract template corresponding to the configuration parameters, write the configuration parameters into the smart contract template, execute the smart contract to be executed, thereby creating a new blockchain, and determining the smart contract template in combination with specific configuration parameters, so that the smart contract template better matches the specific parameters and avoids errors in the smart contract.
[0055] In one possible implementation, the configuration parameters also include application scenarios, business requirements, block types, blockchain architecture, and data structures.
[0056] In the above step S204B1, searching for the smart contract template corresponding to the configuration parameters includes: step S4B11.
[0057] S4B11: Use application scenarios, business requirements, block types, blockchain architecture and data structures to find the corresponding smart contract template from the preset smart contract template library.
[0058] In this step, the smart contract template may have corresponding tags, and this step may include searching for smart contract templates with tags that are the same as the application scenario, business requirements, block type, blockchain architecture, and data structure. This step may also include searching for smart contract templates with application scenarios, business requirements, block types, blockchain architecture, and data structures in the configuration parameters as the actual smart contract templates used.
[0059] From the description of the above embodiments, it can be seen that the embodiments of the present disclosure limit the application scenarios, business requirements, block types, blockchain architectures and data structures in the configuration parameters, thereby using smart contract templates that meet the application scenarios, business requirements, block types, blockchain architectures and data structure requirements, so that the resulting smart contracts are more in line with actual usage requirements.
[0060] In a possible implementation, after the chain establishment information and the ring signature result are sent to the alliance node terminal corresponding to the alliance node identifier in the above step S202, the following steps are further included: step S210 to step S214.
[0061] S210: Receive modification information and modified ring signature sent by at least one alliance node terminal according to the chain establishment information and the ring signature result.
[0062] In this step, the modification information may be input by a user on the alliance node terminal side, and the modification ring signature may be obtained by the alliance node terminal using its own stored private key and the public keys of each alliance node terminal to sign the modification information.
[0063] S211: Send the modification information and the modified ring signature to each alliance node terminal, so that each alliance node terminal verifies the modified ring signature. If the verification result of the modified ring signature is normal, output the modification information.
[0064] This step is similar to the above step S202 and will not be repeated here.
[0065] S212: receiving voting information sent by each alliance node according to the modified information.
[0066] This step is similar to the process of receiving the decision result in the above step S203, and will not be repeated here.
[0067] S213: Determine the selected configuration parameters according to the voting information, link building information and modification information.
[0068] In this step, it includes counting the number of votes corresponding to the link establishment information and the modification information, and determining the configuration parameters in the information with a higher number of votes as the selected configuration parameters. Alternatively, if the number of votes for the link establishment information is greater than the number of votes for the modification information, the configuration parameters in the link establishment information are used as the selected configuration parameters. If the number of votes for the modification information is greater than the number of votes for the link establishment information, the modification information is used to modify the configuration parameters in the link establishment information to obtain the selected configuration parameters.
[0069] S214: Create a new blockchain using the selected configuration parameters.
[0070] This step is similar to the above step S204 and will not be repeated here.
[0071] From the description of the above embodiments, it can be seen that the embodiment of the present disclosure receives the modification information and the modified ring signature sent by the alliance node terminal according to the chain building information and the ring signature result, and sends the modification information and the modified ring signature to each alliance node terminal. After the alliance node terminal verifies the modified ring signature and the verification result is normal, it outputs the modification information, receives the voting information sent by the modification information, determines the selected configuration parameters in the chain building information and the modification information according to the voting information, and creates a new blockchain using the selected configuration parameters, so that the alliance node terminal can modify the chain building information after receiving the chain building information.
[0072] In a possible implementation, in the above step S213, based on each voting information, the selected configuration parameters are determined in the link building information and the modification information, including: steps S2131 to S2134.
[0073] S2131: Count the number of identifiers of the link-building information and the number of identifiers of the modification information in each voting information.
[0074] In this step, it may include reading the identifier of the chain building information and the identifier of the modification information in the voting information, and adding one to the number of identifiers of the chain building information for each identifier of the chain building information read, and adding one to the number of identifiers of the modification information for each identifier of the modification information read, and after reading all the identifiers in the voting information and the modification information, the number of identifiers of the chain building information and the number of identifiers of the modification information are obtained. The identifier of the modification information and the identifier of the chain building information can both be the hash value of the corresponding block.
[0075] S2132: If the number of identifiers in the link building information is greater than the number of identifiers in the modification information, the configuration parameters in the link building information are determined as selected configuration parameters.
[0076] In this step, for example, if the number of identifiers in the link establishment information is 5 and the number of identifiers in the modification information is 4, the configuration parameters in the link establishment information are determined as the selected configuration parameters. For another example, if the number of identifiers in the link establishment information is 7 and the number of identifiers in the modification information is 2, the configuration parameters in the link establishment information are determined as the selected configuration parameters.
[0077] S2133: If the number of identifiers in the modification information is greater than the number of identifiers in the link establishment information, the configuration parameters in the modification information are determined as selected configuration parameters.
[0078] In this step, for example, if the number of identifiers in the link building information is 3 and the number of identifiers in the modification information is 9, the configuration parameters in the modification information are determined as the selected configuration parameters. For another example, if the number of identifiers in the link building information is 5 and the number of identifiers in the modification information is 7, the configuration parameters in the modification information are determined as the selected configuration parameters. For another example, if the number of identifiers in the link building information is 3 and the number of identifiers in the modification information A is 2, the configuration parameters in the modification information are determined as the selected configuration parameters, and the number of identifiers in the modification information B is 11, the configuration parameters in the modification information B are determined as the selected configuration parameters.
[0079] S2134: If the number of identifiers in the modified information is equal to the number of identifiers in the link establishment information, a re-voting request is sent to each alliance node, and new voting information sent by each alliance node according to the re-voting request is received.
[0080] In this step, when there are multiple link building information, the number of identifiers of each link building information and the number of identifiers of the modification information are equal, and the re-voting request can be preset by the staff, such as "please vote again if the number of votes is the same", "please vote again after negotiation if the number of votes is the same", etc. The method of receiving new voting information is similar to the above step S212, which will not be repeated here.
[0081] From the description of the above embodiments, it can be seen that the embodiments of the present disclosure count the number of identifiers of the link building information and the number of identifiers of the modification information in each voting information, and select the configuration parameters in the information with higher votes from the modification information and the link building information as the configuration parameters actually used. If the votes of the two types of information are the same, voting is performed again to ensure that there are available configuration parameters.
[0082] Figure 3 This is a schematic diagram of the structure of the blockchain creation device provided in the embodiment of the present application. Figure 3 As shown, the blockchain creation device 300 includes: a request receiving module 301, a data sending module 302, a result receiving module 303 and a blockchain creation module 304.
[0083] The request receiving module 301 is used to receive a blockchain establishment request sent by a user terminal, wherein the blockchain establishment request includes establishment information and a ring signature result, wherein the establishment information includes an alliance node identifier;
[0084] The data sending module 302 is used to send the chain establishment information and the ring signature result to the alliance node terminal corresponding to the alliance node identifier, so that the alliance node terminal verifies the ring signature result and obtains the verification result. If the verification result is normal, the chain establishment information is output;
[0085] The result receiving module 303 is used to receive the decision results sent by each alliance node terminal according to the link establishment information;
[0086] The blockchain creation module 304 is used to create a new blockchain using various configuration parameters if the decision results are in agreement.
[0087] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0088] In one possible implementation, the configuration parameters correspond to the configuration types; accordingly, the blockchain creation module 304 is specifically used to write the configuration parameters into the smart contract template according to the configuration type corresponding to the configuration parameters if each decision result is agreed, and obtain the smart contract to be executed; execute the smart contract to be executed to create a new blockchain.
[0089] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0090] In one possible implementation, the blockchain creation module 304 is specifically used to find the smart contract template corresponding to the configuration parameters if the decision results are agreed; write the configuration parameters into the smart contract template to obtain the smart contract to be executed; and intelligently execute the smart contract to create a new blockchain.
[0091] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0092] In one possible implementation, the configuration parameters also include application scenarios, business requirements, block types, blockchain architecture and data structures; the blockchain creation module 304 is specifically used to use application scenarios, business requirements, block types, blockchain architecture and data structures to search for corresponding smart contract templates from a preset smart contract template library.
[0093] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0094] In a possible implementation, the blockchain creation device 300 further includes: a parameter modification module 305.
[0095] The parameter modification module 305 is used to receive modification information and modified ring signature sent by at least one alliance node terminal according to the chain building information and the ring signature result; send the modification information and modified ring signature to each alliance node terminal so that each alliance node terminal verifies the modified ring signature, and outputs the modification information if the verification result of the modified ring signature is normal; receive voting information sent by each alliance node according to the modification information; determine the selected configuration parameters according to each voting information, chain building information and modification information; and create a new blockchain using the selected configuration parameters.
[0096] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0097] In a possible implementation, the parameter modification module 305 is specifically used to count the number of identifiers of the link building information and the number of identifiers of the modification information in each voting information; if the number of identifiers of the link building information is greater than the number of identifiers of the modification information, the configuration parameters in the link building information are determined as the selected configuration parameters; if the number of identifiers of the modification information is greater than the number of identifiers of the link building information, the configuration parameters in the modification information are determined as the selected configuration parameters; if the number of identifiers of the modification information is equal to the number of identifiers of the link building information, a re-voting request is sent to each alliance node; and new voting information sent by each alliance node according to the re-voting request is received.
[0098] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0099] In order to implement the above embodiment, the embodiment of the present application also provides an electronic device.
[0100] refer to Figure 4 , which shows a schematic diagram of the structure of an electronic device 400 suitable for implementing the embodiment of the present application, and the electronic device 400 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (Portable Media Players, PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0101] like Figure 4 As shown, the electronic device 400 may include a processor (such as a central processing unit, a graphics processing unit, etc.) 401, and a memory 402 connected to the processor in communication, which can perform various appropriate actions and processes according to the program stored in the memory 402, the computer execution instruction, or the program loaded from the storage device 408 to the random access memory (Random Access Memory, referred to as RAM) 403, to implement the blockchain creation method in any of the above embodiments, wherein the memory may be a read-only memory (Read Only Memory, referred to as ROM). In RAM403, various programs and data required for the operation of the electronic device 400 are also stored. The processing device 401, the memory 402, and the RAM 403 are connected to each other via a bus 404. The input / output (I / O) interface 405 is also connected to the bus 404.
[0102] Typically, the following devices may be connected to the I / O interface 405: an input device 406 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 408 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 409. The communication device 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. Figure 4 The electronic device 400 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0103] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the memory 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of the embodiment of the present application are executed.
[0104] It should be noted that the computer-readable storage medium mentioned above in the present application may be a computer-readable signal medium or a computer storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable storage medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0105] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0106] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.
[0107] The computer program code for performing the operation of the present application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0108] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0109] The modules involved in the embodiments described in this application may be implemented by software or hardware. The name of the unit does not limit the module itself in some cases. For example, the request receiving module may also be described as a "link building request receiving module".
[0110] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0111] The present application also provides a computer-readable storage medium, which stores computer-executable instructions. When a processor executes the computer-executable instructions, the technical solution of the blockchain creation method in any of the above embodiments is implemented. The implementation principle and beneficial effects are similar to those of the blockchain creation method. Please refer to the implementation principle and beneficial effects of the blockchain creation method, which will not be repeated here.
[0112] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0113] The present application also provides a computer program product, including a computer program. When the computer program is executed by a processor, the technical solution of the blockchain creation method in any of the above embodiments is implemented. The implementation principle and beneficial effects are similar to those of the blockchain creation method. Please refer to the implementation principle and beneficial effects of the blockchain creation method, which will not be repeated here.
[0114] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.
[0115] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0116] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A blockchain creation method, characterized in that: Applied to basic blockchain nodes, including: Receiving a blockchain establishment request sent by a user terminal, wherein the blockchain establishment request includes chain establishment information and a ring signature result, wherein the chain establishment information includes configuration parameters and an alliance node identifier; Sending the chain establishment information and the ring signature result to the alliance node terminal corresponding to the alliance node identifier, so that the alliance node terminal verifies the ring signature result and obtains a verification result. If the verification result is normal, outputting the chain establishment information; Receiving the decision results sent by each alliance node terminal according to the link establishment information; If the decision results are in agreement, a new blockchain is created using the configuration parameters.
2. The method according to claim 1, characterized in that The configuration parameters correspond to the configuration types; Accordingly, if the decision results are in agreement, a new blockchain is created using the configuration parameters, including: If the decision results are in agreement, the configuration parameters are written into the smart contract template according to the configuration type corresponding to the configuration parameters to obtain the smart contract to be executed; Execute the smart contract to be executed to create a new blockchain.
3. The method according to claim 1, characterized in that If the decision results are in agreement, a new blockchain is created using the configuration parameters, including: If the decision result is yes, then find the smart contract template corresponding to the configuration parameters; Writing the configuration parameters into the smart contract template to obtain the smart contract to be executed; The smart contract to be executed is intelligently executed to create a new blockchain.
4. The method according to claim 3, characterized in that The configuration parameters also include application scenarios, business requirements, block types, blockchain architecture and data structures; Accordingly, searching for the smart contract template corresponding to the configuration parameter includes: Using the application scenario, business requirements, block type, blockchain architecture and data structure, search for the corresponding smart contract template from the preset smart contract template library.
5. The method according to claim 1, characterized in that After sending the chain establishment information and the ring signature result to the alliance node terminal corresponding to the alliance node identifier, the method further includes: Receiving modification information and a modified ring signature sent by at least one alliance node terminal according to the chain establishment information and the ring signature result; Sending the modification information and the modified ring signature to each alliance node terminal, so that each alliance node terminal verifies the modified ring signature, and if the verification result of the modified ring signature is normal, outputting the modification information; Receiving voting information sent by each alliance node according to the modification information; Determine the selected configuration parameters according to each voting information, the link establishment information and the modification information; Create a new blockchain using the selected configuration parameters.
6. The method according to claim 5, characterized in that The step of determining the selected configuration parameters in the link establishment information and the modification information according to each voting information includes: Count the number of identifiers of the link building information and the number of identifiers of the modification information in each voting information; If the number of identifiers in the link establishment information is greater than the number of identifiers in the modification information, determining the configuration parameters in the link establishment information as the selected configuration parameters; If the number of identifiers in the modification information is greater than the number of identifiers in the link establishment information, determining the configuration parameters in the modification information as selected configuration parameters; If the number of identifiers in the modification information is equal to the number of identifiers in the link establishment information, a re-voting request is sent to each alliance node; and new voting information sent by each alliance node according to the re-voting request is received.
7. A blockchain creation device, characterized in that: include: A request receiving module, configured to receive a blockchain establishment request sent by a user terminal, wherein the blockchain establishment request includes establishment information and a ring signature result, wherein the establishment information includes an alliance node identifier; A data sending module, configured to send the chain establishment information and the ring signature result to the alliance node terminal corresponding to the alliance node identifier, so that the alliance node terminal verifies the ring signature result and obtains a verification result. If the verification result is normal, the chain establishment information is output; A result receiving module, used to receive the decision results sent by each alliance node terminal according to the link establishment information; The blockchain creation module is used to create a new blockchain using various configuration parameters if the decision results are agreed.
8. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the blockchain creation method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the blockchain creation method according to any one of claims 1 to 6.
10. A computer program product, characterized in that It includes a computer program, which, when executed by a processor, implements the blockchain creation method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method and device for generating side chain based on main chain and computer readable storage medium
CN111414210A
Alliance management method and device of trusted block chain and trusted block chain system
CN115118424A
Construction method of block chain model based on fragmented network main-side chain capacity expansion
CN116708174A
Alliance chain management method and related system
CN117527558A
Blockchain Generation Apparatus, Blockchain Generation Method, Blockchain Verification Apparatus, Blockchain Verification Method, and Program
US20180323964A1