CN110430248B - Block chain construction method, device, medium and electronic equipment based on cloud service - Google Patents

Block chain construction method, device, medium and electronic equipment based on cloud service Download PDF

Info

Publication number
CN110430248B
CN110430248B CN201910667396.8A CN201910667396A CN110430248B CN 110430248 B CN110430248 B CN 110430248B CN 201910667396 A CN201910667396 A CN 201910667396A CN 110430248 B CN110430248 B CN 110430248B
Authority
CN
China
Prior art keywords
service
block chain
block
node
blockchain
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.)
Active
Application number
CN201910667396.8A
Other languages
Chinese (zh)
Other versions
CN110430248A (en
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910667396.8A priority Critical patent/CN110430248B/en
Publication of CN110430248A publication Critical patent/CN110430248A/en
Priority to PCT/CN2020/093587 priority patent/WO2021012794A1/en
Application granted granted Critical
Publication of CN110430248B publication Critical patent/CN110430248B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2212/00Encapsulation of packets

Abstract

The disclosure provides a block chain construction method based on cloud services, a block chain construction device based on cloud services, a computer readable medium and electronic equipment, and relates to the technical field of computers. The method comprises the following steps: generating a block according to the configuration information and creating a plurality of block chain nodes; calling a target service from a cloud server according to the block and constructing a block chain channel through the target service; calling a target node in the blockchain nodes to start an intelligent contract deployed in a blockchain channel; the intelligent contracts are synchronized into a plurality of blockchain nodes. The block chain construction method based on the cloud service can overcome the problems of high learning cost of a user and high popularization difficulty of a block chain technology to a certain extent, and further reduces the learning cost of the user and the popularization difficulty of the block chain technology.

Description

Block chain construction method, device, medium and electronic equipment based on cloud service
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for building a block chain based on a cloud service, a computer-readable medium, and an electronic device.
Background
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. The basic architecture of the block chain comprises a data layer, a network layer, a consensus layer, an excitation layer, a contract layer and an application layer. Each layer respectively completes a core function, and the layers are mutually matched to realize a decentralized trust mechanism.
Because the infrastructure design of the block chain has more layers and the network is complex, in the actual block chain building process, a series of complex and complicated work needs to be performed by a professional to build the block chain. Most of the common people have weak professional knowledge, and if the people want to construct the block chain, the people need to learn the related knowledge of the block chain first, so that the block chain can be constructed. However, this can increase the learning cost for the user and the difficulty of popularizing blockchain techniques.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The invention aims to provide a block chain construction method based on cloud service, a block chain construction device based on cloud service, a computer readable medium and an electronic device, so that the problems of high learning cost of a user and high popularization difficulty of a block chain technology are solved at least to a certain extent, and the learning cost of the user and the popularization difficulty of the block chain technology are reduced.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
A first aspect of the present disclosure provides a block chain construction method based on cloud services, including: generating a block according to the configuration information and creating a plurality of block chain nodes; calling a target service from a cloud server according to the block and constructing a block chain channel through the target service; calling a target node in the blockchain nodes to start an intelligent contract deployed in a blockchain channel; the intelligent contracts are synchronized into a plurality of blockchain nodes.
In an exemplary embodiment of the present disclosure, invoking a target service from a cloud server according to a tile and constructing a blockchain channel through the target service includes: determining a preset service from the cloud server according to the block and starting the preset service; and calling a target service in the preset service to construct a block chain channel.
In an exemplary embodiment of the present disclosure, determining a preset service from a cloud server according to a tile includes: acquiring a preset service mirror image from a cloud server according to the block; and determining the preset service corresponding to the preset service mirror image.
In an exemplary embodiment of the present disclosure, the preset service includes at least one of a consensus service, a data encapsulation service, a data node service, and a data access service.
In an exemplary embodiment of the present disclosure, the method for building a blockchain based on a cloud service further includes: and constructing a target server according to the resource configuration information in the configuration information, wherein the target server is used for providing server resources for the preset service.
In an exemplary embodiment of the present disclosure, invoking a target service in a preset service to construct a blockchain channel includes: determining a target service from preset services according to the blocks; and calling server resources corresponding to the target service in the target server to construct a block chain channel.
In an exemplary embodiment of the present disclosure, the method for building a blockchain based on a cloud service further includes: and generating a key corresponding to each block link point and uploading a certificate corresponding to the key.
According to a second aspect of the present disclosure, there is provided a cloud service-based blockchain construction apparatus, including a blockchain generation unit, a blockchain channel construction unit, an intelligent contract starting unit, and an intelligent contract synchronization unit, wherein: the block generating unit is used for generating a block according to the configuration information and creating a plurality of block chain nodes; the block chain channel building unit is used for calling a target service from the cloud server according to the block and building a block chain channel through the target service; the intelligent contract starting unit is used for calling a target node in the block chain nodes to start an intelligent contract deployed in a block chain channel; and the intelligent contract synchronization unit is used for synchronizing the intelligent contracts into the plurality of block chain nodes.
In an exemplary embodiment of the present disclosure, the manner in which the blockchain channel constructing unit invokes the target service from the cloud server according to the block and constructs the blockchain channel through the target service is specifically: the block chain channel construction unit determines a preset service from the cloud server according to the block and starts the preset service; the block chain channel building unit calls a target service in the preset services to build a block chain channel.
In an exemplary embodiment of the present disclosure, the method for determining a preset service from a cloud server by a blockchain channel constructing unit according to a block specifically includes: the block chain channel construction unit acquires a preset service mirror image from the cloud server according to the block; the block chain channel construction unit determines a preset service corresponding to a preset service mirror image.
In an exemplary embodiment of the present disclosure, the preset service includes at least one of a consensus service, a data encapsulation service, a data node service, and a data access service.
In an exemplary embodiment of the present disclosure, the cloud service-based blockchain building apparatus further includes a server building unit: and the server construction unit is used for constructing a target server according to the resource configuration information in the configuration information, and the target server is used for providing server resources for the preset service.
In an exemplary embodiment of the present disclosure, a manner for a blockchain channel building unit to call a target service in a preset service to build a blockchain channel specifically is as follows: the block chain channel construction unit determines a target service from preset services according to a block; and the block chain channel building unit calls the server resources corresponding to the target service in the target server to build the block chain channel.
In an exemplary embodiment of the present disclosure, the cloud service-based blockchain building apparatus further includes a key generation unit: and the key generation unit is used for generating a key corresponding to each block link point and uploading a certificate corresponding to the key.
According to a third aspect of the present disclosure, there is provided a computer readable medium, on which a computer program is stored, which when executed by a processor, implements the cloud service-based blockchain construction method according to the first aspect of the present embodiment.
According to a fourth aspect of the present disclosure, there is provided an electronic device comprising: one or more processors; a storage device, configured to store one or more programs, which when executed by one or more processors, cause the one or more processors to implement the method for building a blockchain based on cloud services as described in the first aspect of the above embodiments.
The technical scheme provided by the disclosure can comprise the following beneficial effects:
in the technical solutions provided in some embodiments of the present disclosure, a terminal device or a server may generate a block (e.g., a creation block) according to configuration information (e.g., the number of domain names, and names of domain names) input by a user and create a plurality of block chain nodes, where the plurality of block chain nodes may be block chain nodes corresponding to a plurality of mechanisms, respectively, and by creating a block chain node for each mechanism, interconnection and intercommunication between the plurality of mechanisms may be achieved; furthermore, the terminal device or the server may also call a target service (e.g., a consensus service) from the cloud server according to the created block and construct a block chain channel through the target service, where the building of the block chain channel can implement communication between nodes; furthermore, the terminal device or the server may also invoke a target node in the blockchain nodes to start an intelligent contract of the blockchain channel, where the target node may be any one of the blockchain nodes or a preset certain node; in addition, the intelligent contract can be uploaded to a terminal device or a server by a user and is deployed in a block chain channel; in turn, the terminal device or server may synchronize the initiated intelligent contract to a plurality of blockchain nodes to complete the building of the blockchain. According to the scheme description, the problem that the learning cost of the user is high can be overcome to a certain extent, and the learning cost of the user is reduced. On the other hand, the block chain technology can be automatically constructed, and the popularization difficulty of the block chain technology is reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
fig. 1 shows a flowchart of a method for building a blockchain based cloud service according to an exemplary embodiment of the present disclosure;
fig. 2 illustrates a block diagram of a block chain construction apparatus based on a cloud service according to an exemplary embodiment of the present disclosure;
FIG. 3 illustrates a schematic structural diagram of a computer system suitable for use with the electronic device used to implement an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
Referring to fig. 1, fig. 1 is a flowchart illustrating a cloud service-based blockchain construction method according to an exemplary embodiment of the present disclosure, where the cloud service-based blockchain construction method may be implemented by a server or a terminal device.
As shown in fig. 1, a method for building a blockchain based on cloud services according to an embodiment of the present disclosure includes the following steps S110, S120, S130, and S140, where:
step S110: and generating blocks according to the configuration information and creating a plurality of block chain nodes.
Step S120: and calling a target service from the cloud server according to the block and constructing a block chain channel through the target service.
Step S130: and calling a target node in the blockchain nodes to start an intelligent contract deployed in the blockchain channel.
Step S140: the intelligent contracts are synchronized into a plurality of blockchain nodes.
The following describes the steps in detail:
in step S110, the configuration information may include the number of domain names, each domain name, the sort service type, the number of consensus modules, the number of blockchain channels, each blockchain channel name, the number of intelligent contracts, the number of data nodes, the number of data access modules, and the number of secondary nodes.
In the exemplary embodiment of the present disclosure, the block generated according to the configuration information is a created block in the block chain, it should be noted that the block chain is composed of a plurality of connected blocks, each block records a transaction situation in the network for a period of time, and the block may be understood as an account page in the account book. The first block to be constructed earliest is called the founder block and has a unique ID number. Each subsequently created block, except the created block, contains two ID numbers, one being the ID number of the block itself and the other being the ID number of the preamble block. All blocks are connected in sequence through the front-back direction relationship among the ID numbers to form a block chain.
In an exemplary embodiment of the present disclosure, it should be noted that in a blockchain network, each computer participating in the network may receive the name of a blockchain node. In a network, all blockchain nodes are responsible for providing network services. The block link point can be a communication end point or a redistribution point of communication, and is linked to other nodes. Each blockchain node in the network is considered equal.
In step S120, one or more of the above-mentioned blockchain channels may be used, and the blockchain channels are used to connect the blockchain nodes. Optionally, after the blockchain channel is constructed by the target service, the method may further include the following steps: and configuring the block chain channel through the channel name, the node corresponding to the channel and the object corresponding to the channel in the configuration information, and synchronizing the configured block chain channel into a plurality of block chain nodes.
In an exemplary embodiment of the present disclosure, the target service may be a consensus service, which may include a consensus algorithm, which may be a PoW algorithm (Proof of workload), a PoS algorithm (Proof of rights to Proof of rights), or a DPoS algorithm (released Proof of rights to Proof of rights), and embodiments of the present disclosure are not limited thereto.
In an exemplary embodiment of the present disclosure, it should be noted that the cloud service provided by the cloud server is an addition, usage and interaction mode of related services based on the internet, and the cloud server provides dynamically expanded and virtualized resources through the internet. The cloud service is applied to the deployment implementation of the block chain system, so that the automatic deployment of the block chain can be realized, and the deployment cost of the block chain can be simplified. For example, the automatically deployed blockchain can be applied to a proof-deposit system, and since the proof-deposit data is not falsifiable, does not depend on the proof of a third-party organization, and has higher distributed storage security, the cost and difficulty of independent audit, real record management, and compliance with the proof-deposit rule are reduced compared with the traditional proof-deposit system.
In step S130, optionally, the terminal device or the server may receive the intelligent contract uploaded by the user, and further execute the intelligent contract that is deployed in the blockchain channel and is started by the target node in the calling blockchain node. A Smart contract (Smart contract), among others, is a computer protocol that propagates, verifies, or executes contracts in an informational manner. Smart contracts allow trusted transactions to be conducted without third parties, which transactions are traceable and irreversible.
In an exemplary embodiment of the present disclosure, optionally, a manner for the target node in the call blockchain nodes to start the intelligent contract deployed in the blockchain channel may specifically be: and calling an interface used for starting the intelligent contract in the target node, and starting the intelligent contract deployed in the blockchain channel through the interface, wherein the blockchain link point comprises the target node.
In step S140, the above-mentioned synchronizing the intelligent contract into a plurality of blockchain nodes may also be understood as synchronizing the intelligent contract into all created blockchain nodes.
In an exemplary embodiment of the present disclosure, optionally, after synchronizing the smart contract into a plurality of blockchain nodes, the terminal device or the server may access the constructed blockchain network to the target application. For example, if the blockchain network is applied to a deposit system, the target application may be an application for tracing, an application for checking a main account, or an application for performing a digital asset transaction, and the embodiments of the present disclosure are not limited thereto.
For example, according to the technical scheme of the disclosure, a user can construct a block chain through a cloud server, according to configuration information input by the user, the server or terminal equipment can automatically construct a block chain network, the user can realize a deposit system by writing codes of an application layer and intelligent contract codes, and the purposes of storing evidence and ensuring that the evidence cannot be tampered are achieved by electronization, encrypted signature and data chaining of the evidence.
Therefore, by implementing the block chain construction method based on the cloud service shown in fig. 1, the problem of high learning cost of a user can be overcome to a certain extent, and the learning cost of the user is further reduced; and the popularization difficulty of the block chain technology can be reduced through the automatic construction of the block chain.
As an exemplary embodiment, invoking a target service from a cloud server according to a tile and constructing a blockchain channel through the target service may include the following steps: determining a preset service from the cloud server according to the block and starting the preset service; and calling a target service in the preset service to construct a block chain channel.
In an exemplary embodiment of the present disclosure, the preset service belongs to a service in a blockchain network, and starting the preset service may be understood as starting the blockchain service. The preset service may include services applied to building a blockchain network, such as a consensus service, a data node service, and a data access service.
Therefore, by implementing the exemplary embodiment, the blockchain channel can be constructed through the target service in the preset service, so as to implement interconnection and intercommunication between the nodes.
As another exemplary embodiment, the preset service includes at least one of a consensus service, a data encapsulation service, a data node service, and a data access service.
As still another exemplary embodiment, determining the preset service from the cloud server according to the tile may include: acquiring a preset service mirror image from a cloud server according to the block; and determining the preset service corresponding to the preset service mirror image.
In an exemplary embodiment of the present disclosure, the preset service image includes a code corresponding to the preset service, and the preset service image is stored in a cloud server, where the cloud server may include an image service. The preset service mirror image can comprise a service mirror image applied to building a blockchain network, such as a consensus service mirror image, a data node service mirror image, and a data access service mirror image. The image may be a cloud server containing application and configuration information, and may also include an operating system or business data. The Image Management Service (Image Management Service) may include a mirror self-Service Management function.
Therefore, by implementing the exemplary embodiment, the preset service image can be acquired through interaction with the cloud server, so as to start the preset service and construct the block chain network.
As another exemplary embodiment, the cloud service-based blockchain construction method may further include the steps of: and constructing a target server according to the resource configuration information in the configuration information, wherein the target server is used for providing server resources for the preset service.
In an exemplary embodiment of the present disclosure, the resource configuration information may include Central Processing Unit (CPU) resources, hard disk resources, memory resources, and the like. Optionally, after the target server is constructed according to the resource configuration information in the configuration information, the method may further include: and initializing the running environment of the target server and the application program to be run so as to adjust the running environment and the application program to be run to the state capable of constructing the block chain network.
Therefore, by implementing the exemplary embodiment, corresponding server resources can be configured for building the blockchain network, so as to implement automatic deployment of the blockchain network.
As another exemplary embodiment, the method for calling a target service in a preset service to construct a blockchain channel may include the following steps: determining a target service from preset services according to the blocks; and calling server resources corresponding to the target service in the target server to construct a block chain channel.
In an exemplary embodiment of the present disclosure, the server resource corresponding to the target service may be a server resource that needs to be occupied by the terminal device or the server to run the target service, such as a CPU resource, a hard disk resource, a memory resource, and the like.
It can be seen that implementing the exemplary embodiment enables a blockchain network service to be created for a user by the user inputting blockchain network service related information. After the building of the block chain cloud network is completed, a user can build and complete a block chain network service by using terminal equipment or a server through the development of business logic and intelligent contracts, so that the building efficiency of the block chain cloud network and the block chain network service is improved.
As another exemplary embodiment, the method for building a blockchain based on cloud services further includes: and generating a key corresponding to each block link point and uploading a certificate corresponding to the key.
In an exemplary embodiment of the present disclosure, the key corresponding to each block chain node includes a private key and a public key, and the certificate corresponding to the key may be a chain certificate, where the certificate is used to prove the identity of the block chain node corresponding to the key. Crt, a chain certificate is a certificate stored under a directory where chains are generated, and one chain corresponds to one chain certificate and one private key.
It can be seen that implementing the exemplary embodiment enables a blockchain network service to be created for a user by the user inputting blockchain network service related information. After the building of the block chain cloud network is completed, a user can build and complete a block chain network service by using terminal equipment or a server through the development of business logic and intelligent contracts, so that the building efficiency of the block chain cloud network and the block chain network service is improved.
As another exemplary embodiment, before generating the block according to the configuration information, the method further includes: and outputting an interface containing information to be configured, and storing information corresponding to user operation in the interface as configuration information, wherein the configuration information corresponds to the information to be configured.
In an exemplary embodiment of the present disclosure, the output interface containing information to be configured may be understood as an interactive interface for interacting with a user, where the interactive interface may include a sorting module, a consensus module, a data node module, a data access module, a secondary node module, and the like, where information contained in each module may be information to be configured. In addition, it should be noted that the secondary node may be a light node that does not store the full data file, may also be a broadcast node, and may also be a mining node, and the embodiment of the present disclosure is not limited. The broadcast node is used for sending out transactions and receiving blockchain information from third parties, and the mining node is used for mining virtual currency to create new blocks and publishing information and propagating transactions.
For example, the user may create a name of the block chain in the interactive interface, select one or more consensus algorithms from the consensus algorithms provided by the consensus modules in the interactive interface, and determine a version of the underlying block chain service in the interactive interface. Information corresponding to user operation performed by a user in the interactive interface can be stored as configuration information.
In an exemplary embodiment of the present disclosure, the user operation may be a touch operation or a non-touch operation, where the non-touch operation may be a voice input operation, that is, it may be understood that the user inputs information by means of voice input, so that the terminal device or the server stores the information as configuration information.
Therefore, by implementing the exemplary embodiment, the plurality of modules to be deployed can be displayed to the user through the interactive interface, so that the user can know the information to be configured for constructing the block chain cloud network, and input the configuration information according to the requirement.
Referring to fig. 2, fig. 2 is a block diagram illustrating a block chain construction apparatus based on a cloud service according to an exemplary embodiment of the present disclosure. The block chain construction device based on the cloud service comprises: a block generation unit 201, a block chain channel construction unit 202, an intelligent contract starting unit 203, and an intelligent contract synchronization unit 204.
The block generating unit 201 is configured to generate a block according to the configuration information and create a plurality of block chain nodes; the block chain channel building unit 202 is configured to invoke a target service from the cloud server according to a block and build a block chain channel through the target service; an intelligent contract starting unit 203, configured to invoke a target node in the blockchain nodes to start an intelligent contract deployed in a blockchain channel; and an intelligent contract synchronization unit 204, configured to synchronize the intelligent contract into a plurality of blockchain nodes.
Therefore, by implementing the block chain construction device based on the cloud service shown in fig. 2, the problem of high learning cost of a user can be overcome to a certain extent, and the learning cost of the user is further reduced; and the popularization difficulty of the block chain technology can be reduced through the automatic construction of the block chain.
As an exemplary embodiment, the manner in which the blockchain channel constructing unit 202 invokes the target service from the cloud server according to the block and constructs the blockchain channel through the target service is specifically as follows: the block chain channel constructing unit 202 determines a preset service from the cloud server according to the block and starts the preset service; the blockchain channel building unit 202 calls a target service in the preset services to build a blockchain channel.
Therefore, by implementing the exemplary embodiment, the blockchain channel can be constructed through the target service in the preset service, so as to implement interconnection and intercommunication between the nodes.
As another exemplary embodiment, the way for the blockchain channel constructing unit 202 to determine the preset service from the cloud server according to the block is specifically: the block chain channel construction unit 202 acquires a preset service image from the cloud server according to the block; the block chain channel construction unit 202 determines a preset service corresponding to a preset service image.
Therefore, by implementing the exemplary embodiment, the preset service image can be acquired through interaction with the cloud server, so as to start the preset service and construct the block chain network.
As still another exemplary embodiment, the preset service includes at least one of a consensus service, a data encapsulation service, a data node service, and a data access service.
As another exemplary embodiment, the cloud service-based blockchain building apparatus further includes a server building unit (not shown): and the server construction unit is used for constructing a target server according to the resource configuration information in the configuration information, and the target server is used for providing server resources for the preset service.
Therefore, by implementing the exemplary embodiment, corresponding server resources can be configured for building the blockchain network, so as to implement automatic deployment of the blockchain network.
As another exemplary embodiment, the manner in which the blockchain channel constructing unit 202 invokes the target service in the preset service to construct the blockchain channel specifically is as follows: the block chain channel construction unit 202 determines a target service from preset services according to a block; the blockchain channel constructing unit 202 invokes a server resource corresponding to the target service in the target server to construct a blockchain channel.
It can be seen that implementing the exemplary embodiment enables a blockchain network service to be created for a user by the user inputting blockchain network service related information. After the building of the block chain cloud network is completed, a user can build and complete a block chain network service by using terminal equipment or a server through the development of business logic and intelligent contracts, so that the building efficiency of the block chain cloud network and the block chain network service is improved.
As still another exemplary embodiment, the cloud service-based blockchain building apparatus further includes a key generation unit (not shown): and the key generation unit is used for generating a key corresponding to each block link point and uploading a certificate corresponding to the key.
It can be seen that implementing the exemplary embodiment enables a blockchain network service to be created for a user by the user inputting blockchain network service related information. After the building of the block chain cloud network is completed, a user can build and complete a block chain network service by using terminal equipment or a server through the development of business logic and intelligent contracts, so that the building efficiency of the block chain cloud network and the block chain network service is improved.
As still another exemplary embodiment, the cloud service-based blockchain constructing apparatus further includes an interface output unit (not shown) and a configuration information storage unit (not shown), wherein: an interface output unit, configured to output an interface including information to be configured before the block generation unit 201 generates a block according to the configuration information; and the configuration information storage unit is used for storing information corresponding to user operation in the interface as configuration information, and the configuration information corresponds to the information to be configured.
Therefore, by implementing the exemplary embodiment, the plurality of modules to be deployed can be displayed to the user through the interactive interface, so that the user can know the information to be configured for constructing the block chain cloud network, and input the configuration information according to the requirement.
For details that are not disclosed in the embodiments of the apparatus of the present disclosure, please refer to the embodiments of the cloud service-based blockchain construction method of the present disclosure for the details that are not disclosed in the embodiments of the apparatus of the present disclosure.
Referring to FIG. 3, FIG. 3 illustrates a schematic diagram of a computer system 300 suitable for use in implementing an electronic device according to an exemplary embodiment of the present disclosure. The computer system 300 of the electronic device shown in fig. 3 is only an example, and should not bring any limitations to the function and scope of the embodiments of the present disclosure.
As shown in fig. 3, the computer system 300 includes a Central Processing Unit (CPU)301 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage section 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for system operation are also stored. The CPU 301, ROM 302, and RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
The following components are connected to the I/O interface 305: an input portion 306 including a keyboard, a mouse, and the like; an output section 307 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 308 including a hard disk and the like; and a communication section 309 including a network interface card such as a LAN card, a modem, or the like. The communication section 309 performs communication processing via a network such as the internet. A drive 310 is also connected to the I/O interface 305 as needed. A removable medium 311 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 310 as necessary, so that a computer program read out therefrom is mounted into the storage section 308 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 309, and/or installed from the removable medium 311. The above-described functions defined in the system of the present application are executed when the computer program is executed by the Central Processing Unit (CPU) 301.
It should be noted that the computer readable media shown in the present disclosure may be computer readable signal media or computer readable storage media or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer-readable signal medium may include a propagated data signal with computer-readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs, and when the one or more programs are executed by an electronic device, the electronic device implements the method for building a block chain based on cloud services as described in the above embodiments.
For example, the electronic device may implement the following as shown in fig. 1: step S110, generating a block according to the configuration information and creating a plurality of block chain nodes; step S120, calling a target service from a cloud server according to the block and constructing a block chain channel through the target service; step S130, calling a target node in the blockchain nodes to start an intelligent contract deployed in a blockchain channel; step S140, synchronizing the intelligent contract into a plurality of blockchain nodes.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements 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 disclosure is limited only by the appended claims.

Claims (8)

1. A block chain construction method based on cloud service is characterized in that the block chain is applied to a deposit certificate system and comprises the following steps:
outputting an interface containing information to be configured, and storing information corresponding to user operation in the interface as configuration information, wherein the configuration information corresponds to the information to be configured; the interface comprises a sequencing module, a consensus module, a data node module, a data access module and a secondary node module, wherein information contained in each module in the interface is information to be configured, and the secondary node corresponding to the secondary node module is a light node which does not store a full data file, a broadcast node which is used for sending a transaction and receiving block chain information from a third party or a mining node which is used for mining virtual currency to create a new block;
generating a block according to the configuration information and creating a plurality of block chain nodes;
acquiring a preset service mirror image from a cloud server according to the block, wherein the preset service mirror image comprises a consensus service mirror image, a data node service mirror image and a data access service mirror image; determining a preset service corresponding to the preset service mirror image; calling a target service in the preset service to construct a block chain channel;
calling an interface used for starting an intelligent contract in a target node, and starting the intelligent contract deployed in the block chain channel through the interface, wherein the block chain link point comprises the target node;
synchronizing the smart contracts into the plurality of blockchain nodes.
2. The method of claim 1, wherein the predetermined service comprises at least one of a consensus service, a data encapsulation service, a data node service, and a data access service.
3. The method of claim 1, further comprising:
and constructing a target server according to the resource configuration information in the configuration information, wherein the target server is used for providing server resources for the preset service.
4. The method of claim 3, wherein invoking the target service in the predetermined service to construct a blockchain channel comprises:
determining a target service from the preset services according to the block;
and calling server resources corresponding to the target service in the target server to construct a block chain channel.
5. The method of claim 1, further comprising:
and generating a key corresponding to each block link point and uploading a certificate corresponding to the key.
6. A block chain construction device based on cloud service is characterized in that the block chain is applied to a deposit certificate system and comprises the following components:
the block generating unit is used for generating a block according to the configuration information and creating a plurality of block chain nodes;
the block chain channel construction unit is used for acquiring a preset service mirror image from a cloud server according to the block, wherein the preset service mirror image comprises a consensus service mirror image, a data node service mirror image and a data access service mirror image; determining a preset service corresponding to the preset service mirror image; calling a target service in the preset service to construct a block chain channel;
the intelligent contract starting unit is used for calling an interface which is used for starting the intelligent contract in a target node and starting the intelligent contract which is deployed in the block chain channel through the interface, wherein the block chain link point comprises the target node;
an intelligent contract synchronization unit for synchronizing the intelligent contracts into the plurality of blockchain nodes;
the device is also used for outputting an interface containing information to be configured, and storing information corresponding to user operation in the interface as configuration information, wherein the configuration information corresponds to the information to be configured; the interface comprises a sequencing module, a consensus module, a data node module, a data access module and a secondary node module, wherein information contained in each module in the interface is information to be configured, and the secondary node corresponding to the secondary node module is a light node which does not store a full data file, a broadcast node which is used for sending a transaction and receiving block chain information from a third party or a mining node which is used for mining virtual currency to create a new block.
7. A computer-readable medium on which a computer program is stored, wherein the program, when executed by a processor, implements the cloud service-based blockchain construction method according to any one of claims 1 to 5.
8. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the cloud service-based blockchain construction method according to any one of claims 1 to 5.
CN201910667396.8A 2019-07-23 2019-07-23 Block chain construction method, device, medium and electronic equipment based on cloud service Active CN110430248B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910667396.8A CN110430248B (en) 2019-07-23 2019-07-23 Block chain construction method, device, medium and electronic equipment based on cloud service
PCT/CN2020/093587 WO2021012794A1 (en) 2019-07-23 2020-05-30 Blockchain construction method and apparatus based on cloud service, medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910667396.8A CN110430248B (en) 2019-07-23 2019-07-23 Block chain construction method, device, medium and electronic equipment based on cloud service

Publications (2)

Publication Number Publication Date
CN110430248A CN110430248A (en) 2019-11-08
CN110430248B true CN110430248B (en) 2022-03-25

Family

ID=68411938

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910667396.8A Active CN110430248B (en) 2019-07-23 2019-07-23 Block chain construction method, device, medium and electronic equipment based on cloud service

Country Status (2)

Country Link
CN (1) CN110430248B (en)
WO (1) WO2021012794A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110430248B (en) * 2019-07-23 2022-03-25 平安科技(深圳)有限公司 Block chain construction method, device, medium and electronic equipment based on cloud service
CN111159299A (en) * 2019-12-31 2020-05-15 预言机(重庆)科技有限公司 Block chain chaining method
CN111711526B (en) * 2020-06-16 2024-03-26 深圳前海微众银行股份有限公司 Method and system for consensus of block chain nodes
CN112102081B (en) * 2020-08-19 2024-04-09 天星数科科技有限公司 Method, device, readable storage medium and blockchain network for generating blockchain
CN112904734A (en) * 2020-12-23 2021-06-04 上海上实龙创智能科技股份有限公司 Intelligent household appliance control system and method based on Internet of things and block chain double gateways
CN115242802B (en) * 2022-08-10 2023-11-24 上海柚子工道物联技术有限公司 Method, system and electronic equipment for constructing traceable link of block chain

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109002527A (en) * 2018-07-13 2018-12-14 江苏开放大学(江苏城市职业学院) A method of its management online exam of network test system and utilization based on block chain
CN109190410A (en) * 2018-09-26 2019-01-11 华中科技大学 A kind of log behavior auditing method based on block chain under cloud storage environment
CN109587200A (en) * 2017-09-29 2019-04-05 中兴通讯股份有限公司 A kind of block chain, that is, service platform and system
CN109740923A (en) * 2018-12-29 2019-05-10 杭州趣链科技有限公司 A kind of students ' quality examination application system and method and information collecting device based on block chain
CN109858908A (en) * 2019-01-09 2019-06-07 暨南大学 Alliance's chain building method, method of commerce and distributed supply chain system

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9569771B2 (en) * 2011-04-29 2017-02-14 Stephen Lesavich Method and system for storage and retrieval of blockchain blocks using galois fields
CN106101242B (en) * 2016-06-24 2019-08-06 深圳前海微众银行股份有限公司 The construction method and device of block chain cloud service platform
CN107634989A (en) * 2017-08-25 2018-01-26 中积有限公司 A kind of cloud wallet construction method and server
US10528551B2 (en) * 2017-09-29 2020-01-07 Oracle International Corporation System and method for providing a representational state transfer proxy service for a blockchain cloud service
CN109194506B (en) * 2018-08-16 2021-10-15 北京京东尚科信息技术有限公司 Block chain network deployment method, platform and computer storage medium
CN109783572A (en) * 2018-12-14 2019-05-21 平安科技(深圳)有限公司 Block chain multichain creation method, device, equipment and storage medium
CN109710271A (en) * 2019-01-16 2019-05-03 杭州趣链科技有限公司 Key deployment, link setup and operation management system based on block chain
CN109889503B (en) * 2019-01-22 2022-02-22 平安科技(深圳)有限公司 Identity management method based on block chain, electronic device and storage medium
CN109976774B (en) * 2019-04-11 2022-07-26 北京启迪区块链科技发展有限公司 Block link point deployment method, device, equipment and storage medium
CN110430248B (en) * 2019-07-23 2022-03-25 平安科技(深圳)有限公司 Block chain construction method, device, medium and electronic equipment based on cloud service

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109587200A (en) * 2017-09-29 2019-04-05 中兴通讯股份有限公司 A kind of block chain, that is, service platform and system
CN109002527A (en) * 2018-07-13 2018-12-14 江苏开放大学(江苏城市职业学院) A method of its management online exam of network test system and utilization based on block chain
CN109190410A (en) * 2018-09-26 2019-01-11 华中科技大学 A kind of log behavior auditing method based on block chain under cloud storage environment
CN109740923A (en) * 2018-12-29 2019-05-10 杭州趣链科技有限公司 A kind of students ' quality examination application system and method and information collecting device based on block chain
CN109858908A (en) * 2019-01-09 2019-06-07 暨南大学 Alliance's chain building method, method of commerce and distributed supply chain system

Also Published As

Publication number Publication date
CN110430248A (en) 2019-11-08
WO2021012794A1 (en) 2021-01-28

Similar Documents

Publication Publication Date Title
CN110430248B (en) Block chain construction method, device, medium and electronic equipment based on cloud service
KR102121159B1 (en) Event-driven blockchain workflow processing
CN109146490B (en) Block generation method, device and system
CN112631605B (en) Code compiling method, device and equipment of federal learning model and storage medium
CN110166442B (en) Data processing method and device based on block chain
TW201947444A (en) Blockchain data processing method, apparatus and device, and blockchain system
CN108390872B (en) Certificate management method, device, medium and electronic equipment
CN110959282B (en) Software interface for intelligent contracts
US20210150037A1 (en) Secure Federation of Distributed Stochastic Gradient Descent
CN113792347B (en) Federal learning method, device, equipment and storage medium based on block chain
CN112733174A (en) Authentication management method and system of block chain system and electronic equipment
KR20230078706A (en) Certificate-based security using post-quantum cryptography
EP4350556A1 (en) Information verification method and apparatus
CN109711840B (en) Transaction data processing method and device and storage medium
CN113129149A (en) Transaction risk identification method and device based on block chain and safe multi-party calculation
CN111311407A (en) Data processing method and device based on block chain system and electronic equipment
CN111950032A (en) Block chain-based data storage method, terminal device and storage medium
CN111523889A (en) Multi-signature implementation method, device, equipment and storage medium
CN111476570B (en) Method, device, equipment and storage medium for migrating pass
Andrews et al. Etherless Ethereum tokens: Simulating native tokens in Ethereum
CN114362961B (en) Block chain-based account recovery method, device, equipment and storage medium
CN113343259B (en) SM 2-based joint signature realization method and device, electronic equipment and storage medium
CN114741446A (en) Data uplink method, device, terminal and storage medium
CN113206738A (en) Digital certificate management method and device
Cippitelli et al. ChorSSI: A BPMN-Based Execution Framework for Self-Sovereign Identity Systems on Blockchain

Legal Events

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