CN108985774B - Excitation method, device, equipment and storage medium of block chain network - Google Patents

Excitation method, device, equipment and storage medium of block chain network Download PDF

Info

Publication number
CN108985774B
CN108985774B CN201810791959.XA CN201810791959A CN108985774B CN 108985774 B CN108985774 B CN 108985774B CN 201810791959 A CN201810791959 A CN 201810791959A CN 108985774 B CN108985774 B CN 108985774B
Authority
CN
China
Prior art keywords
chain
basic
intelligent contract
network
parallel
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
CN201810791959.XA
Other languages
Chinese (zh)
Other versions
CN108985774A (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.)
Baidu Online Network Technology Beijing Co Ltd
Original Assignee
Baidu Online Network Technology Beijing 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 Baidu Online Network Technology Beijing Co Ltd filed Critical Baidu Online Network Technology Beijing Co Ltd
Priority to CN201810791959.XA priority Critical patent/CN108985774B/en
Publication of CN108985774A publication Critical patent/CN108985774A/en
Application granted granted Critical
Publication of CN108985774B publication Critical patent/CN108985774B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/405Establishing or using transaction specific rules
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3821Electronic credentials

Abstract

The invention discloses an excitation method, an excitation device, excitation equipment and a storage medium of a block chain network, wherein the method comprises the following steps: acquiring an incentive intelligent contract from a history block of a basic chain or a basic chain transaction request; and executing the excitation intelligent contract to transfer the basic chain elements of the specified output account to the specified input account corresponding to the parallel chain links according to the set distribution rule. The technical scheme of the embodiment of the invention can improve the expandability of the block chain network and the safety and reliability of transaction during cross-chain service, so that the block chain network can be matched with the requirements of more and more complex application scenes.

Description

Excitation method, device, equipment and storage medium of block chain network
Technical Field
The present invention relates to the field of blockchain technologies, and in particular, to a method, an apparatus, a device, and a storage medium for exciting a blockchain network.
Background
The existing block chain network can be roughly divided into three types, namely a public chain, a alliance chain and a private chain, according to the node scale, the consensus mechanism and the operation scene. Various types of blockchain networks, which are used to generate, store, and run a separate blockchain, can process corresponding transactions and store transaction data into blocks. The blockchain network based on each blockchain is participated by a plurality of nodes, and the nodes are provided with data required by a consensus mechanism, an intelligent contract, an incentive mechanism, an encryption algorithm and the like required by the operation blockchain technology. Typically, nodes are required to provide computing power for proper functioning of the blockchain, and thus nodes are rewarded for participation in blockchain processing and storage by issuing and dispensing digital currency. Meanwhile, the digital currency can also be used as the object of the transaction request processing in the block chain.
With the rapid development of blockchain technology, the application scenario of blockchain technology has not been limited to digital currency transactions, for example, people are not satisfied with running transactions in only one independent blockchain, or are no longer satisfied with running old transactions using only one intrinsic mode blockchain, resulting in the need to continuously retrofit transaction modes. Therefore, a plurality of independent blockchains are present, and the requirement for processing data across different blockchains (simply referred to as cross-chains) has become a more urgent requirement in blockchain applications today. The traditional block chain type cannot meet the requirements of various scenes, and the existing solution for processing data across chains cannot ensure the safety and reliability of transaction during service across chains.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for exciting a blockchain network, so that the blockchain network can match with requirements of more and more complex application scenarios.
In a first aspect, an embodiment of the present invention provides a method for exciting a blockchain network, where the method is performed by a blockchain generation node of an underlying chain network, and the method includes:
acquiring an incentive intelligent contract from a history block of a basic chain or a basic chain transaction request;
and executing the excitation intelligent contract to transfer the basic chain elements of the specified output account to the specified input account corresponding to the parallel chain links according to the set distribution rule.
In a second aspect, an embodiment of the present invention further provides a method for exciting a blockchain network, where the method is performed by a blockchain generation node of a parallel-chain network, and the method includes:
acquiring an allocation intelligent contract from a history block of a parallel chain or a parallel chain transaction request;
executing the distribution intelligent contract, generating a notification transaction request based on deployment data of a local basic chain, and transmitting the notification transaction request in a basic chain network, wherein the notification transaction request is used for notifying a network node of the basic chain to transfer basic chain elements of a specified output account to a specified input account corresponding to the parallel chain link points according to a set distribution rule according to an excitation intelligent contract stored in the basic chain.
In a third aspect, an embodiment of the present invention further provides an excitation apparatus for a blockchain network, where the excitation apparatus is configured at a blockchain generation node of an underlying chain network, and the apparatus includes:
the first contract acquisition module is used for acquiring an excitation intelligent contract from a history block of a basic chain or a basic chain transaction request;
and the first contract execution module is used for executing the excitation intelligent contract so as to transfer the basic chain elements of the specified output account to the specified input account corresponding to the parallel chain links according to the set distribution rule.
In a fourth aspect, an embodiment of the present invention further provides an excitation apparatus for a blockchain network, where the excitation apparatus is configured at a blockchain generation node of a parallel-chain network, and the apparatus includes:
the second contract acquisition module is used for acquiring the distribution intelligent contract from the history block of the parallel chain or the parallel chain transaction request;
and the second contract execution module is used for executing the distributed intelligent contract, generating a notification transaction request based on the deployment data of the local basic chain, and transmitting the notification transaction request in the basic chain network, wherein the notification transaction request is used for notifying a network node of the basic chain to transfer basic chain elements of a specified output account number to a specified input account number corresponding to the parallel chain link according to a set distribution rule according to the excitation intelligent contract stored in the basic chain.
In a fifth aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of activation of a blockchain network of the first aspect.
In a sixth aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of activation of a blockchain network of the second aspect.
In a seventh aspect, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the excitation method of the blockchain network according to any of the first aspects.
In an eighth aspect, the present invention further provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the excitation method of the blockchain network according to any of the second aspects.
The embodiment of the invention obtains the incentive intelligent contract from the history block of the basic chain or the basic chain transaction request, wherein the incentive intelligent contract is an intelligent contract which is initiated by a network node and is provided with a specified output account number when the parallel chain is established. After the excited intelligent contract is obtained, the excited intelligent contract can be executed, so that basic chain elements of specified output account numbers specified in the excited intelligent contract are transferred to specified input account numbers corresponding to the parallel chain link points according to a set distribution rule, and therefore, the association between the two block chain networks is established, the problems that the existing block chain networks are difficult to expand and the transaction safety and reliability are low during cross-chain service are solved, the expandability of the block chain networks and the safety and reliability of the transaction during cross-chain service are improved, and the block chain networks can be matched with the requirements of more and more complex application scenes.
Drawings
Fig. 1 is a flowchart of an excitation method for a blockchain network according to an embodiment of the present invention;
fig. 2 is a flowchart of an excitation method of a blockchain network according to a second embodiment of the present invention;
fig. 3 is a flowchart of an excitation method for a blockchain network according to a third embodiment of the present invention;
fig. 4 is a schematic diagram of an excitation device of a blockchain network according to a fourth embodiment of the present invention;
fig. 5 is a schematic diagram of an excitation device of a blockchain network according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer device according to a sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in greater detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but could have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of an excitation method for a blockchain network according to an embodiment of the present invention, where the embodiment is applicable to a case where an underlying chain participates in parallel chain processing, and the method may be executed by an excitation apparatus for a blockchain network, where the excitation apparatus may be implemented by software and/or hardware, and may be generally integrated in a computer device that assumes functions of a blockchain network node, where the blockchain network node may specifically be a block generation node having block processing authority in the underlying chain network. As shown in fig. 1, the method includes the operations of:
and S110, acquiring an incentive intelligent contract from a history block of the basic chain or a basic chain transaction request.
The block generation node is a node with block processing authority in the block chain network. An underlying chain is a blockchain that can be used to establish links between various independent blockchains. The basic chain can be associated with the corresponding parallel chain and is used for assisting in creating the parallel chain, managing the parallel chain and assisting in data exchange of the parallel chain. For example, the underlying chain can be used to establish a link between existing blockchains that are independent of each other, such that data interactions in a blockchain are no longer limited to a single blockchain, such that the range of value flow is no longer limited to a single blockchain. That is, the base chain may manage and supervise the operational parameters throughout the blockchain network. The basic chain transaction request may be a transaction request or other pending transaction request that occurs within a period of time in the basic chain network. The incentive intelligence contract can be created by a parallel chain creation node and added to a block by a block generation node of an underlying chain for binding the parallel chain. The contents of the intelligent contract may specify any operations associated with the parallel chain, such as: how to distribute incentive currencies among nodes of the parallel chain, the amount of currencies that can be distributed, rules for distribution, and the like. The associated account may be a private account of a parallel chain network node for depositing digital currency of the base chain or parallel chain.
In the embodiment of the present invention, the block generation node of the base chain network may obtain the incentive intelligence contract in the history block of the base chain, and the obtaining manner includes but is not limited to backtracking the history block or timing and locating the search history block. In addition, the block generation node of the basic chain network may also obtain the incentive intelligent contract through the basic chain transaction request, for example, may receive a transaction request sent by another node to obtain the incentive intelligent contract as the basic chain transaction request, and the like.
And S120, executing the intelligent excitation contract to transfer the basic chain elements of the specified output account to the specified input account corresponding to the parallel chain links according to the set distribution rule.
Here, the parallel chain is also a kind of block chain, and is a concept opposite to the basic chain. Parallel chains have all the attributes of a generic blockchain, while potentially being built, managed, and data exchanged on a basic chain basis. The parallel chain can be derived from the basic chain, or can have the equivalent status and function with the basic chain, and mutually assist the establishment, management and data exchange. There may be one or more parallel chains. And optionally, the multiple parallel chains are independent from each other and do not affect each other, or two parallel chains may be in a relationship between a basic chain and a parallel chain.
Generally, the basic chain is established and operated before the parallel chain, and the basic chain has higher public confidence and calling force and has better value acceptance. The nodes of the parallel chain can utilize the public trust and summons of the nodes of the basic chain to serve them with the nodes willing to provide the computing power.
The base chain and the parallel chain may form a hyperchain network. In a hyperchain network, the base chain may also be one or more. It should be noted that there is an overlapping relationship between all nodes participating in the base chain and all nodes participating in the parallel chain. That is, at least some of the nodes participating in the parallel chain are the same network nodes as at least some of the nodes participating in the underlying chain. In these overlapping network nodes, all the data of the block chains in which they participate are deployed, that is, the deployment data of both the basic chain and the parallel chain are stored, and the blocks of both the basic chain and the parallel chain are also stored. Because the data of different block chains are deployed at the same time, the network node can generate transaction requests of different block chains and can locally query the transaction data in different block chains, thereby facilitating the cross-chain transaction processing.
It should be further noted that the basic chain and the parallel chain may be activated by using the same or different types of digital currencies, and the accounts of the network nodes of the basic chain and the parallel chain, which are used for storing digital currencies, may store a plurality of different types of digital currencies at the same time, and the digital currencies in each block chain may interact with the accounts, such as transferring digital currencies in or out. The motivation of the blockchain is not limited to digital currency, but may be other elements managed by the account number. The account can be managed through an asymmetric key pair, the public key is an account address, and the private key is saved by an account owner. The basic chain transaction request may be a transaction request or other pending transaction request that occurs within a period of time in the basic chain network. The parallel chain data included in the base chain transaction request may include, but is not limited to, deployment data for the parallel chain, transaction requests, digital currency in a smart contract or account number, and the like. The designated output account number may be an account number used to output digital currency circulated in the base chain to other account numbers. The base chain elements may be digital currency circulated in a base chain network. The set distribution rule may be a basis for distributing basic chain elements by a parallel chain network, and specific contents of the set distribution rule may be formulated according to actual requirements, such as an average distribution rule, and the like. The designated input account may be an individual account in a parallel chain, such as a user account or a chain account.
In the embodiment of the invention, after the block generating node of the basic chain network acquires the excitation intelligent contract, the relevant provisions in the excitation intelligent contract can be executed and processed. Specifically, the block generation node of the basic chain network may transfer basic chain elements of a specified output account to a specified input account corresponding to the parallel link points according to a set allocation rule according to a rule in the incentive intelligent contract. For example, a set number of digital currencies in a given output account number X may be equally assigned to given input account numbers Y and Z corresponding to parallel chain-link points.
In an optional embodiment of the invention, the setting of the allocation rule may comprise at least one of:
for block generation nodes of historical blocks with set quantity in a parallel chain, distributing elements of a set numerical value basic chain according to a calculation contribution rule;
distributing basic chain elements to the network nodes distributed with the parallel chain elements according to the distribution proportion of the parallel chain elements in the parallel chain;
and for nodes in the parallel chain, setting the distribution of numerical basic chain elements according to an average rule.
The set number may be a value set according to actual requirements, for example, 10, 20, or 50, and the embodiment of the present invention does not limit this. The calculation force contribution rule can be artificially specified and used for measuring the weight value or the sequence occupied by the nodes providing the strength of the calculation force. For example, in the first 5 block generation nodes, the weighted values of the computing power provided by each block generation node are 0.1, 0.2, 0.3, 0.2 and 0.2, or in the first 5 block generation nodes, the computing power provided by each block generation node is in order from strong to weak: a block generation node 1, a block generation node 3, a block generation node 2, a block generation node 5, and a block generation node 4. The set value may also be a value set according to actual requirements, such as 100 or 200, and specifically needs to be adaptively set according to the total amount of the basic chain elements included in the basic chain, which is also not limited by the embodiment of the present invention. The assignment proportion of parallel chain elements may be formulated for parallel chain network nodes for assigning a proportion value of base chain elements. In general, during the operation of the parallel chain, a certain amount of digital money is awarded to the block generating nodes of each block, namely the digital money of the parallel chain is distributed. There is usually some attenuation as the number of blocks increases. When the basic chain elements are distributed, the corresponding proportion distribution can be carried out by referring to the distribution proportion of the parallel chain digital currency. The parallel chain elements may be digital currencies that flow in the parallel chain, which may be the same or different from the base chain elements. The averaging rule may be a way to evenly distribute all nodes participating in the parallel chain.
In this embodiment of the present invention, optionally, the set allocation rule included in the founding block of the parallel chain may include the following cases:
first, the basic chain elements with set values may be assigned to the block generation nodes according to the number of block generation nodes in the parallel chain and the calculation contribution rule. The basic chain network node can query the block data in the locally stored parallel chain by executing the intelligent contract associated with the parallel chain to acquire the block generation node information in the parallel chain. For example, if the number of block generation nodes in the parallel chain network reaches 10 each time, 100 basic chain elements may be allocated according to the strength of the calculation provided by the 10 block generation nodes. If the weighted values of the computational power provided by the 10 patch generation nodes are 0.05, 0.1, 0.15, 0.1, 0.2, 0.05, 0.1, 0.05, and 0.1, respectively, then 5, 10, 15, 10, 20, 5, 10, 5, and 10 basic chain elements are assigned to the 10 patch generation nodes, respectively.
Secondly, the basic chain elements can be distributed only to the network nodes with the parallel chain elements in the parallel chain network according to the distribution proportion of the parallel chain elements in the parallel chain. Illustratively, there are 5, 10 and 15 nodes 1, 2 and 3 in the parallel chain network, respectively, and the allocation ratio of the parallel chain elements of the three nodes is 1:2: 3. The basic chain elements in 120 basic chains can be allocated according to the allocation proportion of the parallel chain elements of the three nodes, and then 20, 40 and 60 are allocated to the node 1, the node 2 and the node 3 respectively.
Of course, the nodes in the parallel chain may also be directly assigned the basic chain elements with set values according to the average rule. For example, there are 15 nodes in the parallel chain in total, and the basic chain elements in 300 basic chains can be equally allocated to 15 nodes, and each node is allocated to 20 nodes.
It should be noted that, in the embodiment of the present invention, the assignment of the basic chain elements and the parallel chain elements may follow a decreasing rule. The above-mentioned allocation to the basic chain elements can be executed once or for multiple times, and all can be specified by the incentive intelligence contract in the basic chain transaction request. The execution of the incentives intelligence contract may be performed as backtracked.
In an optional embodiment of the invention, the method may further comprise: acquiring a proposal transaction request for changing an incentive intelligent contract; processing the proposal transaction request and acquiring the vote fed back by the basic link node; and selecting from the intelligent contract templates set in the proposal transaction request according to the voting result, and updating to be used as a new incentive intelligent contract.
The proposed transaction request may be a transaction request issued by a basic link network node and used for changing an incentive intelligent contract, and the proposed transaction request may provide a set intelligent contract module. The set intelligent contract module can be various preset intelligent contract modules and is used for generating corresponding intelligent contracts after being edited according to requirements, the specific form and content of the intelligent contract module can be designed according to actual requirements, and the specific form and content of the set intelligent contract module are not limited in the embodiment of the invention.
In an embodiment of the present invention, if a parallel chain network node wants to change parallel chain deployment data, for example, change an incentive mechanism or encryption algorithm, etc., the network node may send an update transaction request for the parallel chain deployment data to the underlying chain network. The update transaction request includes change content information of the parallel chain deployment data. After receiving the update transaction request, the nodes in the basic chain network can acquire an incentive intelligent contract which needs to be modified according to the related content in the update transaction request, and send a proposal transaction request in the basic chain network according to the change requirement of the incentive intelligent contract. After the block generating node of the basic chain network receives the proposal transaction request, the proposal transaction request can be processed. For example, the block generating node of the basic chain network can process the proposal transaction request in a proposal-voting mode. Specifically, the block generating node of the basic chain network may initiate a proposal transaction request, and the proposal transaction request includes the modified content information of the parallel chain deployment data. Meanwhile, the block generation node also needs to specify relevant parameters of proposal-voting process, for example, after a set proportion (e.g. 2/3) of nodes in the basic chain network agree to the update transaction request, the deployment data of the parallel chain is allowed to be changed; the expiration time of the vote, e.g., 10 minutes; and frozen funds as security funds, etc. Then, the block generating node of the basic link network can collect the voting results fed back by other nodes in the basic link network, and judge whether the proposal transaction request can be processed according to the voting results. When it is determined that the proposed transaction request can be processed according to the voting result, the block generating node of the basic chain network can select and edit according to the set intelligent contract module specified in the proposed transaction request, so as to generate a new intelligent contract as a new incentive intelligent contract. Or, the block generating node of the basic chain network can also generate a new intelligent contract meeting the requirement as a new incentive intelligent contract directly according to the related content of the proposal transaction request.
The embodiment of the invention obtains the incentive intelligent contract from the history block of the basic chain or the basic chain transaction request, wherein the incentive intelligent contract is an intelligent contract which is initiated by a network node and is provided with a specified output account number when the parallel chain is established. After the excited intelligent contract is obtained, the excited intelligent contract can be executed, so that basic chain elements of specified output account numbers specified in the excited intelligent contract are transferred to specified input account numbers corresponding to the parallel chain link points according to a set distribution rule, and therefore, the association between the two block chain networks is established, the problems that the existing block chain networks are difficult to expand and the transaction safety and reliability are low during cross-chain service are solved, the expandability of the block chain networks and the safety and reliability of the transaction during cross-chain service are improved, and the block chain networks can be matched with the requirements of more and more complex application scenes.
Preferably, the underlying chain is a blockchain for which digital currency is value-approved, and the parallel chain is a blockchain for which value is not value-approved, typically newly created, or with little impact by the creator. To encourage network nodes to provide computational support for parallel chains, the network nodes of the parallel chains are incentivized in the digital currency of the underlying chain. The incentive scheme is guaranteed to execute reliably by incentive intelligence contracts stored into the underlying chain.
Example two
Fig. 2 is a flowchart of an excitation method for a block chain network according to a second embodiment of the present invention, which is embodied on the basis of the above embodiments, and in this embodiment, a generation manner of an excitation intelligent contract is given, and a specific operation of executing the excitation intelligent contract to transfer a basic chain element of a specific output account to a specific input account corresponding to a parallel chain link point according to a set allocation rule is given. Correspondingly, as shown in fig. 2, the method of the present embodiment may include:
s210, a basic chain transaction request initiated by a parallel chain creating node is obtained, wherein the basic chain transaction request comprises deployment data of the created parallel chain, the specified output account and the set distribution rule.
The parallel chain creation node may be a network node that creates a parallel chain creation block, and the network node is also deployed with data of the basic chain, so that a basic chain transaction request may be initiated. The deployment data may be data corresponding to a data layer, a network layer, a consensus layer, a stimulus layer, a contract layer, and an application layer in a blockchain, such as data blocks, timestamps, propagation mechanisms, verification mechanisms, issuance mechanisms, algorithm mechanisms, smart contracts, or programmable currency.
In the embodiment of the present invention, any one of the nodes in the basic chain network may serve as a parallel chain creation node to initiate a basic chain transaction request for creating a parallel chain generative block, that is, the parallel chain creation node may use the content of the generative block of the parallel chain as a transaction request for a basic chain, and request the basic chain network node to write into a block of the basic chain, so that the basic chain may supervise and trace the generative block of the parallel chain. The contents of the founder blocks of the parallel chain may be established with reference to the contents of the founder blocks of the existing block chain. For example, deployment data such as a consensus mechanism, an incentive mechanism, issued digital money, and a template of an intelligent contract written in the parallel chain may be written, and in addition, a corresponding designated output account number and a set allocation rule may be defined in a creation block of the parallel chain. And the creation block of the parallel chain can control the later operation of the parallel chain. Therefore, when the parallel chain is created, the initiated basic chain transaction request can specify the excitation rule of the nodes participating in the parallel chain establishment.
S220, writing the transaction data of the basic chain transaction request into a block of a basic chain, wherein the transaction data comprises the excitation intelligent contract.
Correspondingly, after the block generation node of the basic chain acquires the basic chain transaction request initiated by the parallel chain creation node, the creation block of the parallel chain can be written in the block of the basic chain, the basic chain transaction request can be processed, the incentive intelligent contract can be operated, the incentive intelligent contract is written in the block of the basic chain as transaction data,
and S230, executing the incentive intelligent contract, and freezing or transferring the basic chain elements with the set number in the specified output account into the specified frozen account.
The set number may be a value set according to actual requirements, for example, 10, 20, or 50, and the embodiment of the present invention does not limit this. The specified frozen account can be any trusted account in the block chain network, or the parallel chain account bound with the parallel chain can be directly used as the specified frozen account.
In the embodiment of the invention, while the transaction data of the basic chain transaction request is written into the block of the basic chain, the excitation intelligent contract can be executed, and the basic chain elements with the set number in the specified output account are frozen or transferred into the specified frozen account. The specified frozen account number can store basic chain elements for stimulating participation in the network nodes of the parallel chain network, and the basic chain elements cannot be freely controlled by the parallel chain nodes so as to ensure sufficient public trust.
And S240, acquiring an incentive intelligent contract from a history block of the basic chain or a basic chain transaction request.
In an alternative embodiment of the invention, obtaining the incentive intelligence contracts from the history blocks of the underlying chain may include at least one of:
traversing historical blocks in the basic chain to inquire an incentive intelligent contract with the current execution requirement;
if the set condition is monitored to be met, searching a historical block in a basic chain corresponding to the set condition to query and obtain the excitation intelligent contract, wherein the set condition is a set time interval or a set block height;
receiving a notification transaction request transmitted in a parallel chain network, initiating an excitation intelligent contract inquiry transaction request in a basic chain network, and processing the inquiry transaction request to acquire the excitation intelligent contract in a history block of a basic chain.
The setting condition may be a trigger condition defined for monitoring the incentive intelligence contract, for example, the setting condition may be an execution period of a certain process in the basic chain network or a block height in a block chain, and the setting condition may be specifically set according to an actual requirement, which is not limited in the embodiment of the present invention. Meanwhile, the setting condition may further include related information of a history block having an incentive smart contract, such as block header information of the history block. The request for notifying the transaction may be sent by the parallel link network node to the basic link network node, and is used for notifying the basic link network node of the request for cross-link service. It should be noted that the notification transaction request is generated by the network node according to the deployment data in the basic chain. The network node may generate the notification transaction request according to the provisions in the intelligent contract in the parallel-link network. For example, when 10 blocks are added in a parallel chain, a notification transaction request may be initiated to the underlying chain network node. The network node may participate in both the basic chain network and the parallel chain network, and all data of the block chain in which the network node participates are deployed, that is, the deployment data of the basic chain and the deployment data of the parallel chain are stored, and the block itself of the basic chain and the block itself of the parallel chain are also stored. Because the data of different block chains are deployed at the same time, the network node can generate transaction requests of different block chains and can locally query the transaction data in different block chains, thereby facilitating the cross-chain transaction processing. The transaction request for inquiring the incentive intelligent contract can be a transaction request used for inquiring the incentive intelligent contract in the history block in the basic chain network, and can be initiated by a basic chain network node or a network node participating in the basic chain network and the parallel chain network at the same time.
In the embodiment of the present invention, the block generation node of the base chain network may obtain the incentive intelligence contract from the history block of the base chain by the following three ways:
firstly, the block generation node of the basic chain network can perform traversal search on all historical blocks in the basic chain, so as to obtain an excitation intelligent contract meeting the current execution requirement. Although this acquisition method is simple, it often takes a certain amount of resources when the number of history blocks is large.
Then, the block generation node of the basic chain network may also monitor whether the network state reaches a set condition, for example, the block generation node of the basic chain network may detect whether a time interval between the current time point and the time point at which the incentive intelligence contract was last obtained reaches a set time interval. The set time interval may be an interval set according to actual requirements, such as 10 minutes or 1 hour, and the embodiment of the present invention does not limit this. For another example, the block generating node of the basic chain network may detect whether the block height in the block chain network reaches the set block height. The set block height may be a position of a block in a block chain (which may be a basic chain or a parallel chain), such as every 10 blocks or every 100 blocks, and similarly, the set block height may be set according to an actual requirement, which is not limited in the embodiment of the present invention. When the block generation node of the basic chain network determines that the setting condition is triggered, the related information of the history blocks in the basic chain corresponding to the setting condition can be inquired, and the corresponding history blocks are inquired according to the related information to obtain the incentive intelligent contract.
Finally, the block generating node of the basic chain network can also receive a notification transaction request which is transmitted in the parallel chain network and comprises the related information of the incentive intelligent contracts (such as the names or numbers of the incentive intelligent contracts) and then issue and process the incentive intelligent contract query transaction request in the basic chain network according to the related information of the incentive intelligent contracts which is included in the notification transaction request so as to obtain the corresponding incentive intelligent contracts in the history blocks of the basic chain.
And S250, executing the intelligent excitation contract to transfer the basic chain elements of the specified output account to the specified input account corresponding to the parallel chain links according to the set distribution rule.
Accordingly, the operation of executing the incentive smart contract to transfer the basic chain elements of the designated output account to the designated input account corresponding to the parallel link points according to the set allocation rule can be further detailed into three operations S251, S252 and S253.
And S251, executing the incentive intelligent contract, and acquiring the associated account of the parallel chain network node from the locally stored parallel chain as the specified input account.
The associated account of the parallel chain network node may be a private account of the network node, and is used for storing digital currency of the basic chain or the parallel chain.
In the embodiment of the present invention, when executing an incentive intelligent contract, the block generation node of the basic chain network may query each block of the locally stored parallel chain according to specific provisions in the incentive intelligent contract to obtain the associated account of the parallel chain network node as the specified input account, and change data of the specified input account.
It should be noted that the execution time of the incentive intelligent contract may or may not coincide with the creation time of the incentive intelligent contract. That is, the excitation intelligent contract may be executed immediately when the excitation intelligent contract is generated, or may be executed according to rules such as the number of blocks in the parallel chain network or a set time period, and the execution timing of the excitation intelligent contract is not limited in the embodiment of the present invention.
And S252, generating a basic chain element transfer contract, wherein the basic chain element transfer contract is used for transferring basic chain elements from the specified output account to the specified input account according to a set distribution rule.
The basic chain element transfer contract may be a rule or the like formulated for outputting the basic chain element to the associated account of the parallel chain network node.
In the embodiment of the present invention, after acquiring the associated account number of the parallel chain network node, the basic chain network node may generate a corresponding basic chain element transfer contract, which is used to transfer a corresponding basic chain element to the associated account number of the parallel chain, that is, the specified input account number, according to a set allocation rule from the specified output account number in the excited intelligent contract. The base chain element transfer contract is processed by the block generating node of the base chain as a transaction request.
And S253, transmitting the basic chain element transfer contract in a network node of a basic chain to request the network node of the basic chain to verify the transaction in the basic chain element transfer contract according to the locally stored parallel chain.
In the embodiment of the invention, after the block generation node of the basic chain network completes the transaction processing of the basic chain element transfer to the associated account, the corresponding transaction data is added into the block, and the block is sent to other nodes to request the confirmation of the block. After receiving the block, the other network nodes may verify the validity of the transaction in the underlying chain element transfer contract according to the locally stored parallel chain. For example, it is verified whether the set allocation rule is correct, whether the diverted account is consistent with the node account recorded in the parallel chain, and the like. Therefore, the block generation node is ensured to correctly execute the account intelligent contract.
It should be noted that fig. 2 is only a schematic diagram of an implementation manner, and there is no precedence relationship between S220 and S230, that is, S220 and S230 may be implemented in parallel.
By adopting the technical scheme, the excitation intelligent contract is obtained and executed from the history block of the basic chain or the basic chain transaction request, so that the basic chain elements of the specified output account specified in the excitation intelligent contract are transferred to the specified input account corresponding to the parallel chain link points according to the set distribution rule, and the association between the two block chain networks is established, the problems that the existing block chain networks are difficult to expand and the transaction safety and reliability are low during cross-chain service are solved, the expandability of the block chain networks and the safety and reliability of the transaction during cross-chain service are improved, and the block chain networks can be matched with the requirements of more and more complex application scenes.
EXAMPLE III
Fig. 3 is a flowchart of an excitation method for a blockchain network according to a third embodiment of the present invention, where this embodiment is applicable to a case where an underlying chain participates in parallel chain excitation processing, and the method may be executed by an excitation apparatus for a blockchain network, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a computer device that assumes functions of a blockchain network node, where the blockchain network node may specifically be a block generation node having block processing authority in a parallel chain network. As shown in fig. 3, the method includes the operations of:
and S310, acquiring an allocation intelligent contract from a history block of the parallel chain or a parallel chain transaction request.
The distributed intelligent contract can be created by parallel chain network nodes, and the block generation nodes of the parallel chain network are added to the intelligent contract executed in the blocks, so as to instruct the basic chain network nodes to transfer basic chain elements of the specified output account to the specified input account corresponding to the parallel chain links according to the set distribution rule. The parallel chain transaction request is a transaction request which can be transmitted in a parallel chain network and processed by a parallel chain node, and can be a transaction request or other pending transaction requests.
In the embodiment of the present invention, the block generation node of the parallel chain network may obtain the distribution intelligent contract in the history blocks of the parallel chain, and the obtaining manner includes but is not limited to backtracking the history blocks or timing and locating the search history blocks. In addition, the block generation node of the parallel chain network may also obtain the allocation intelligent contract through the parallel chain transaction request, for example, may receive a transaction request for obtaining the allocation intelligent contract sent by another node as the parallel chain transaction request, and the like.
And S320, executing the distribution intelligent contract, generating a notification transaction request based on the deployment data of the local basic chain, and transmitting the notification transaction request in the basic chain network.
And the notification transaction request is used for notifying a network node of the basic chain to transfer basic chain elements of a specified output account number to a specified input account number corresponding to the parallel chain link points according to a set distribution rule according to an excitation intelligent contract stored in the basic chain.
In the embodiment of the invention, when the block generation node of the parallel chain network executes the distribution intelligent contract, because the node stores the deployment data of the basic chain and the parallel chain at the same time, the notification transaction request can be generated based on the deployment data of the local basic chain and the specific provisions in the distribution intelligent contract and transmitted in the basic chain network. The block generation node of the underlying chain network may receive and process the notification transaction request to perform the relevant provisions in the incentive intelligence contract.
In an optional embodiment of the present invention, executing the distribution intelligence contract, generating a notification transaction request based on deployment data of the local base chain, and transmitting in the base chain network may include: executing the distribution intelligent contract, and if the current state is identified to meet the condition in the distribution intelligent contract, generating a notification transaction request based on the deployment data of the local basic chain and transmitting the notification transaction request in the basic chain network.
Wherein the condition in the distribution intelligence contract may be a set condition for triggering generation of a notification transaction request.
In the embodiment of the present invention, when the block generation node of the parallel chain network executes the distribution intelligent contract, if it is recognized that the current state meets the condition in the distribution intelligent contract, for example, the block in the parallel chain reaches the set height value, a corresponding notification transaction request may be generated according to the deployment data of the locally stored base chain, and transmitted in the base chain network.
In an optional embodiment of the invention, the condition in the assigning the smart contract may comprise at least one of: set time intervals or set block heights.
It should be noted that, the allocation intelligent contract may also include a setting condition for setting a time interval or a block height, and is used to send a prompt message for acquiring the allocation intelligent contract to the block generation node in the parallel chain at every set time interval or when it is determined that the block height in the parallel chain meets the requirement. The reminder information may include information about a history block of the assigned smart contract having the current execution requirement. Thus, a tile generation node of a parallel chain network may query the corresponding history tile to obtain an allocation intelligence contract. Of course, the block generation node of the parallel chain network may also receive a notification transaction request including relevant information of the assigned intelligent contracts (such as names or numbers of the assigned intelligent contracts) transmitted in the parallel chain network, and then issue and process the assigned intelligent contract query transaction request in the parallel chain network according to the relevant information of the assigned intelligent contracts included in the notification transaction request so as to obtain corresponding incentive intelligent contracts in the history blocks of the parallel chain.
The method and the device for generating the distributed intelligent contracts in the parallel chain network acquire the distributed intelligent contracts from the historical blocks of the parallel chain or the parallel chain transaction requests through the block generating nodes of the parallel chain network, and the distributed intelligent contracts are used for exciting the nodes in the parallel chain. Executing the distribution intelligent contract after acquiring the distribution intelligent contract, generating a notification transaction request based on the deployment data of the local basic chain, transmitting in the basic chain network, so that the block generating node of the basic chain network initiates and processes the excitation intelligent contract inquiry transaction request to obtain an excitation intelligent contract, and the block generating node of the basic chain network executes the excitation intelligent contract, so as to transfer the basic chain elements of the specified output account to the specified input account corresponding to the parallel chain links according to the set distribution rule, therefore, the association between the two blockchain networks is established, the problems that the existing blockchain networks are difficult to expand and the transaction safety and reliability are low when the cross-chain service is carried out are solved, the expandability of the blockchain networks and the safety and reliability of the transaction when the cross-chain service is carried out are improved, and the blockchain networks can be matched with the requirements of more and more complex application scenes.
Example four
Fig. 4 is a schematic diagram of an excitation device of a blockchain network according to a fourth embodiment of the present invention, the excitation device being configured at a blockchain generation node of an underlying chain network, as shown in fig. 4, the excitation device includes: a first contract acquisition module 410 and a first contract execution module 420, wherein:
a first contract obtaining module 410, configured to obtain an incentive intelligent contract from a history block of a base chain or a base chain transaction request;
and the first contract execution module 420 is used for executing the incentive intelligent contract so as to transfer the basic chain elements of the specified output account to the specified input account corresponding to the parallel chain link points according to the set distribution rule.
The embodiment of the invention obtains the incentive intelligent contract from the history block of the basic chain or the basic chain transaction request, wherein the incentive intelligent contract is an intelligent contract which is initiated by a network node and is provided with a specified output account number when the parallel chain is established. After the excited intelligent contract is obtained, the excited intelligent contract can be executed, so that basic chain elements of specified output account numbers specified in the excited intelligent contract are transferred to specified input account numbers corresponding to the parallel chain link points according to a set distribution rule, and therefore, the association between the two block chain networks is established, the problems that the existing block chain networks are difficult to expand and the transaction safety and reliability are low during cross-chain service are solved, the expandability of the block chain networks and the safety and reliability of the transaction during cross-chain service are improved, and the block chain networks can be matched with the requirements of more and more complex application scenes.
Optionally, the apparatus further comprises: a request obtaining module, configured to obtain a basic chain transaction request initiated by a parallel chain creation node, where the basic chain transaction request includes deployment data of a created parallel chain, the specified output account, and the set allocation rule; and the data writing module is used for writing the transaction data of the basic chain transaction request into a block of a basic chain, wherein the transaction data comprises the excitation intelligent contract.
Optionally, the apparatus further comprises: and the element transfer module is used for executing the incentive intelligent contract and freezing or transferring the basic chain elements with the set number in the specified output account into the specified frozen account.
Optionally, the first contract obtaining module 410 is specifically configured to traverse a history block in the base chain to query an incentive intelligent contract with a current execution requirement; if the set condition is monitored to be met, searching a historical block in a basic chain corresponding to the set condition to query and obtain the excitation intelligent contract, wherein the set condition is a set time interval or a set block height; receiving a notification transaction request transmitted in a parallel chain network, initiating an excitation intelligent contract inquiry transaction request in a basic chain network, and processing the inquiry transaction request to acquire the excitation intelligent contract in a history block of a basic chain.
Optionally, the first contract execution module 420 is specifically configured to execute the incentive intelligent contract, and acquire, in a locally stored parallel chain, an associated account of a network node of the parallel chain as the specified input account; generating a basic chain element transfer contract, wherein the basic chain element transfer contract is used for carrying out basic chain element transfer on the specified input account according to the set distribution rule from the specified output account; and transmitting the basic chain element transfer contract in a network node of a basic chain to request the network node of the basic chain to verify the transaction in the basic chain element transfer contract according to the locally stored parallel chain.
Optionally, the setting of the allocation rule includes at least one of: for block generation nodes of historical blocks with set quantity in a parallel chain, distributing elements of a set numerical value basic chain according to a calculation contribution rule; distributing basic chain elements to the network nodes distributed with the parallel chain elements according to the distribution proportion of the parallel chain elements in the parallel chain; and for nodes in the parallel chain, setting the distribution of numerical basic chain elements according to an average rule.
Optionally, the apparatus further comprises: the contract updating module is used for acquiring a proposal transaction request for changing the incentive intelligent contract; processing the proposal transaction request and acquiring the vote fed back by the basic link node; and selecting from the intelligent contract templates set in the proposal transaction request according to the voting result, and updating to be used as a new incentive intelligent contract.
The excitation device of the blockchain network can execute the excitation method of the blockchain network provided by the first embodiment and the second embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For details of the technique not described in detail in this embodiment, reference may be made to the excitation method of the blockchain network provided in the first embodiment and the second embodiment of the present invention.
EXAMPLE five
Fig. 5 is a schematic diagram of an excitation device of a blockchain network according to a fifth embodiment of the present invention, the excitation device being configured at a blockchain generation node of a parallel-chain network, as shown in fig. 5, the excitation device includes: a second contract acquisition module 510 and a second contract execution module 520, wherein:
a second contract obtaining module 510, configured to obtain an allocation intelligent contract from a history block of a parallel chain or from a parallel chain transaction request;
and a second contract execution module 520, configured to execute the distributed intelligent contract, generate a notification transaction request based on deployment data of a local basic chain, and transmit the notification transaction request in a basic chain network, where the notification transaction request is used to notify a network node of the basic chain to transfer a basic chain element of a specified output account to a specified input account corresponding to a parallel chain link according to a set distribution rule according to an incentive intelligent contract stored in the basic chain.
The method and the device for generating the distributed intelligent contracts in the parallel chain network acquire the distributed intelligent contracts from the historical blocks of the parallel chain or the parallel chain transaction requests through the block generating nodes of the parallel chain network, and the distributed intelligent contracts are used for exciting the nodes in the parallel chain. Executing the distribution intelligent contract after acquiring the distribution intelligent contract, generating a notification transaction request based on the deployment data of the local basic chain, transmitting in the basic chain network, so that the block generating node of the basic chain network initiates and processes the excitation intelligent contract inquiry transaction request to obtain an excitation intelligent contract, and the block generating node of the basic chain network executes the excitation intelligent contract, so as to transfer the basic chain elements of the specified output account to the specified input account corresponding to the parallel chain links according to the set distribution rule, therefore, the association between the two blockchain networks is established, the problems that the existing blockchain networks are difficult to expand and the transaction safety and reliability are low when the cross-chain service is carried out are solved, the expandability of the blockchain networks and the safety and reliability of the transaction when the cross-chain service is carried out are improved, and the blockchain networks can be matched with the requirements of more and more complex application scenes.
Optionally, the second contract execution module 520 is specifically configured to execute the distribution intelligent contract, and if it is identified that the current state meets the condition in the distribution intelligent contract, generate a notification transaction request based on the deployment data of the local basic chain, and transmit the notification transaction request in the basic chain network.
Optionally, the condition in the distribution intelligent contract comprises at least one of: set time intervals or set block heights.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a computer device according to a sixth embodiment of the present invention. FIG. 6 illustrates a block diagram of a computer device 612 suitable for use in implementing embodiments of the present invention. The computer device 612 shown in fig. 6 is only an example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention. Computer device 612 is typically a computing device that assumes the functionality of a node of the blockchain system.
As shown in fig. 6, the computer device 612 is in the form of a general purpose computing device. Components of computer device 612 may include, but are not limited to: one or more processors 616, a memory device 628, and a bus 618 that couples the various system components including the memory device 628 and the processors 616.
Bus 618 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 612 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 612 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 628 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 630 and/or cache Memory 632. The computer device 612 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 634 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard disk drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk-Read Only Memory (CD-ROM), a Digital Video disk (DVD-ROM), or other optical media) may be provided. In such cases, each drive may be connected to bus 618 by one or more data media interfaces. Storage device 628 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program 636, having a set (at least one) of program modules 626, may be stored in, for example, the storage device 628, such program modules 626 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment. Program modules 626 generally perform the functions and/or methodologies of embodiments of the invention as described herein.
Computer device 612 may also communicate with one or more external devices 614 (e.g., keyboard, pointing device, camera, display 624, etc.), with one or more devices that enable a user to interact with computer device 612, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 612 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 622. Further, computer device 612 may also communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network, such as the internet) via Network adapter 620. As shown, the network adapter 620 communicates with the other modules of the computer device 612 via the bus 618. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the computer device 612, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive Arrays, disk array (RAID) systems, tape drives, and data backup storage systems, among others.
The processor 616 executes programs stored in the storage device 628, so as to execute various functional applications and data processing, for example, implementing the activation method of the blockchain network provided in the first and second embodiments of the present invention.
That is, the processing unit implements, when executing the program: acquiring an incentive intelligent contract from a history block of a basic chain or a basic chain transaction request; and executing the excitation intelligent contract to transfer the basic chain elements of the specified output account to the specified input account corresponding to the parallel chain links according to the set distribution rule.
And acquiring an incentive intelligent contract from a history block of the basic chain or a basic chain transaction request through the computer equipment, wherein the incentive intelligent contract is an intelligent contract which is initiated by a network node and provided with a specified output account number when the parallel chain is created. After the excited intelligent contract is obtained, the excited intelligent contract can be executed, so that basic chain elements of specified output account numbers specified in the excited intelligent contract are transferred to specified input account numbers corresponding to the parallel chain link points according to a set distribution rule, and therefore, the association between the two block chain networks is established, the problems that the existing block chain networks are difficult to expand and the transaction safety and reliability are low during cross-chain service are solved, the expandability of the block chain networks and the safety and reliability of the transaction during cross-chain service are improved, and the block chain networks can be matched with the requirements of more and more complex application scenes.
EXAMPLE seven
A seventh embodiment of the present invention is a computer device for executing the excitation method of the blockchain network provided by the third embodiment of the present invention, where the computer device includes: one or more processors; storage means for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the excitation method of the blockchain network according to the third embodiment of the present invention: acquiring an allocation intelligent contract from a history block of a parallel chain or a parallel chain transaction request; executing the distribution intelligent contract, generating a notification transaction request based on deployment data of a local basic chain, and transmitting the notification transaction request in a basic chain network, wherein the notification transaction request is used for notifying a network node of the basic chain to transfer basic chain elements of a specified output account to a specified input account corresponding to the parallel chain link points according to a set distribution rule according to an excitation intelligent contract stored in the basic chain. The specific structure and the details thereof can be referred to fig. 6 and the sixth embodiment.
Example eight
An eighth embodiment of the present invention further provides a computer storage medium storing a computer program, which when executed by a computer processor is configured to execute the excitation method for a blockchain network according to the first and second embodiments of the present invention: acquiring an incentive intelligent contract from a history block of a basic chain or a basic chain transaction request; and executing the excitation intelligent contract to transfer the basic chain elements of the specified output account to the specified input account corresponding to the parallel chain links according to the set distribution rule.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. 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 (a non-exhaustive list) of the computer readable storage medium would include the following: 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 context of this document, 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.
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, wireline, optical fiber cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may 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 the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Example nine
An embodiment ninth of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, can implement the excitation method of the blockchain network according to the third embodiment: acquiring an allocation intelligent contract from a history block of a parallel chain or a parallel chain transaction request; executing the distribution intelligent contract, generating a notification transaction request based on deployment data of a local basic chain, and transmitting the notification transaction request in a basic chain network, wherein the notification transaction request is used for notifying a network node of the basic chain to transfer basic chain elements of a specified output account to a specified input account corresponding to the parallel chain link points according to a set distribution rule according to an excitation intelligent contract stored in the basic chain. The specific details thereof are described with reference to example eight.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (16)

1. A method of exciting a blockchain network, performed by a blockchain generating node of an underlying chain network, wherein at least some of the nodes participating in a parallel chain are the same network nodes as at least some of the nodes participating in the underlying chain, and wherein the same network nodes store both deployment data for the underlying chain and deployment data for the parallel chain, the method comprising:
acquiring an incentive intelligent contract from a history block of a basic chain or a basic chain transaction request; wherein the excitation intelligent contract is created by the parallel chain creation node and added into a block by the block generation node of the basic chain for execution, so as to bind the parallel chain;
and executing the excitation intelligent contract to transfer the basic chain elements of the specified output account to the specified input account corresponding to the parallel chain links according to the set distribution rule.
2. The method of claim 1, wherein prior to obtaining the incentive intelligence contracts from the history blocks of the underlying chain, further comprising:
acquiring a basic chain transaction request initiated by a parallel chain creation node, wherein the basic chain transaction request comprises deployment data of the created parallel chain, the specified output account and the set distribution rule;
and writing the transaction data of the basic chain transaction request into a block of a basic chain, wherein the transaction data comprises the incentive intelligent contract.
3. The method of claim 2, wherein writing the transaction data of the base chain transaction request into a block of a base chain further comprises:
and executing the incentive intelligent contract, and freezing or transferring the basic chain elements with the set number in the specified output account number into the specified frozen account number.
4. The method of claim 1, wherein obtaining incentive intelligence contracts from historical blocks of an underlying chain comprises at least one of:
traversing historical blocks in the basic chain to inquire an incentive intelligent contract with the current execution requirement;
if the set condition is monitored to be met, searching a historical block in a basic chain corresponding to the set condition to query and obtain the excitation intelligent contract, wherein the set condition is a set time interval or a set block height;
receiving a notification transaction request transmitted in a parallel chain network, initiating an excitation intelligent contract inquiry transaction request in a basic chain network, and processing the inquiry transaction request to acquire the excitation intelligent contract in a history block of a basic chain.
5. The method of claim 1, wherein executing the incentivized smart contracts to transfer base chain elements of a specified output account to a specified input account corresponding to a parallel chain link point according to a set allocation rule comprises:
executing the incentive intelligent contract, and acquiring a correlation account of a parallel chain network node from a locally stored parallel chain as the specified input account;
generating a basic chain element transfer contract, wherein the basic chain element transfer contract is used for carrying out basic chain element transfer on the specified input account according to the set distribution rule from the specified output account;
and transmitting the basic chain element transfer contract in a network node of a basic chain to request the network node of the basic chain to verify the transaction in the basic chain element transfer contract according to the locally stored parallel chain.
6. The method of claim 5, wherein the setting the allocation rule comprises at least one of:
for block generation nodes of historical blocks with set quantity in a parallel chain, distributing elements of a set numerical value basic chain according to a calculation contribution rule;
distributing basic chain elements to the network nodes distributed with the parallel chain elements according to the distribution proportion of the parallel chain elements in the parallel chain;
and for nodes in the parallel chain, setting the distribution of numerical basic chain elements according to an average rule.
7. The method of claim 1, further comprising:
acquiring a proposal transaction request for changing an incentive intelligent contract;
processing the proposal transaction request and acquiring the vote fed back by the basic link node;
and selecting from the intelligent contract templates set in the proposal transaction request according to the voting result, and updating to be used as a new incentive intelligent contract.
8. A method of exciting a blockchain network, performed by blockchain generating nodes of a parallel chain network, at least some of the nodes participating in a parallel chain being the same network nodes as at least some of the nodes participating in an underlying chain, the same network nodes having stored therein both deployment data for the underlying chain and deployment data for the parallel chain, the method comprising:
acquiring an allocation intelligent contract from a history block of a parallel chain or a parallel chain transaction request;
executing the distribution intelligent contract, generating a notification transaction request based on deployment data of a local basic chain, and transmitting the notification transaction request in a basic chain network, wherein the notification transaction request is used for notifying a network node of the basic chain to transfer basic chain elements of a specified output account number to a specified input account number corresponding to the parallel chain link points according to a set distribution rule according to an excitation intelligent contract stored in the basic chain; wherein the excitation intelligent contract is created by the parallel chain creation node and added to a block by a block generation node of the base chain for binding the parallel chain.
9. The method of claim 8, wherein executing the distribution intelligence contract generates a notification transaction request based on deployment data of a local base chain, and wherein transmitting in the base chain network comprises:
executing the distribution intelligent contract, and if the current state is identified to meet the condition in the distribution intelligent contract, generating a notification transaction request based on the deployment data of the local basic chain and transmitting the notification transaction request in the basic chain network.
10. The method of claim 9, wherein the conditions in the assignment of intelligent contracts comprise at least one of: set time intervals or set block heights.
11. An excitation device for a blockchain network, wherein at least some of nodes participating in a parallel chain are the same network nodes as at least some of nodes participating in an underlying chain, and wherein the same network nodes store deployment data for both the underlying chain and the parallel chain, the excitation device being configured to configure a blockchain generation node in an underlying chain network, the excitation device comprising:
the first contract acquisition module is used for acquiring an excitation intelligent contract from a history block of a basic chain or a basic chain transaction request; wherein the excitation intelligent contract is created by the parallel chain creation node and added into a block by the block generation node of the basic chain for execution, so as to bind the parallel chain;
and the first contract execution module is used for executing the excitation intelligent contract so as to transfer the basic chain elements of the specified output account to the specified input account corresponding to the parallel chain links according to the set distribution rule.
12. An excitation device for a blockchain network, wherein at least some of nodes participating in a parallel chain are the same network nodes as at least some of nodes participating in a base chain, and wherein the same network nodes store deployment data for both the base chain and the parallel chain, the excitation device being configured to a blockchain network, the excitation device comprising:
the second contract acquisition module is used for acquiring the distribution intelligent contract from the history block of the parallel chain or the parallel chain transaction request;
the second contract execution module is used for executing the distributed intelligent contract, generating a notification transaction request based on deployment data of a local basic chain, and transmitting the notification transaction request in a basic chain network, wherein the notification transaction request is used for notifying a network node of the basic chain to transfer basic chain elements of a specified output account number to a specified input account number corresponding to a parallel chain link point according to a set distribution rule according to an excitation intelligent contract stored in the basic chain; wherein the excitation intelligent contract is created by the parallel chain creation node and added to a block by a block generation node of the base chain for binding the parallel chain.
13. A computer device, the device comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of incentivizing a blockchain network as described in any of claims 1-7.
14. A computer device, the device comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of incentivizing a blockchain network as described in any of claims 8-10.
15. A computer storage medium on which a computer program is stored which, when being executed by a processor, carries out the method of excitation of a blockchain network according to any one of claims 1 to 7.
16. A computer storage medium on which a computer program is stored which, when being executed by a processor, carries out the method of excitation of a blockchain network according to any one of claims 8 to 10.
CN201810791959.XA 2018-07-18 2018-07-18 Excitation method, device, equipment and storage medium of block chain network Active CN108985774B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810791959.XA CN108985774B (en) 2018-07-18 2018-07-18 Excitation method, device, equipment and storage medium of block chain network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810791959.XA CN108985774B (en) 2018-07-18 2018-07-18 Excitation method, device, equipment and storage medium of block chain network

Publications (2)

Publication Number Publication Date
CN108985774A CN108985774A (en) 2018-12-11
CN108985774B true CN108985774B (en) 2022-05-31

Family

ID=64549306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810791959.XA Active CN108985774B (en) 2018-07-18 2018-07-18 Excitation method, device, equipment and storage medium of block chain network

Country Status (1)

Country Link
CN (1) CN108985774B (en)

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109670802A (en) * 2018-12-21 2019-04-23 百度在线网络技术(北京)有限公司 A kind of chain currency conversion method, apparatus, equipment and medium based on block chain
CN109711840B (en) * 2018-12-26 2021-08-06 咪咕文化科技有限公司 Transaction data processing method and device and storage medium
CN109727655A (en) * 2018-12-29 2019-05-07 百度在线网络技术(北京)有限公司 Sport health motivational techniques, device, equipment, server and medium
CN109711844A (en) * 2018-12-31 2019-05-03 莆田市烛火信息技术有限公司 A kind of parallel chain management method of block chain network
CN111461468B (en) * 2019-01-02 2023-10-31 中国移动通信有限公司研究院 Data processing method and device, data node and storage medium
CN109873861B (en) * 2019-01-11 2022-04-12 平安科技(深圳)有限公司 Cross-block chain node interaction method and device, storage medium and electronic equipment
CN110166261A (en) * 2019-04-29 2019-08-23 深圳市元征科技股份有限公司 A kind of task management method and block chain node device
CN110096857B (en) * 2019-05-07 2021-03-19 百度在线网络技术(北京)有限公司 Authority management method, device, equipment and medium for block chain system
CN110445852B (en) * 2019-07-29 2021-12-10 杭州复杂美科技有限公司 Method, device and storage medium for issuing general certificate
CN110599132B (en) * 2019-09-24 2024-02-20 腾讯科技(深圳)有限公司 Method and device for generating reward data and computer readable storage medium
CN111177259A (en) * 2019-12-13 2020-05-19 杭州复杂美科技有限公司 Parallel chain transaction encryption method, device and storage medium
CN111144139B (en) * 2019-12-23 2023-05-26 传神语联网网络科技股份有限公司 Uniqueness authentication method and identification system of translation result based on block chain
CN111339202B (en) * 2020-02-28 2023-05-09 百度在线网络技术(北京)有限公司 Data access method, device, equipment and storage medium
CN111404961B (en) * 2020-03-26 2022-06-28 杭州复杂美科技有限公司 Federation link point data transmission method, equipment and storage medium
CN111475572B (en) * 2020-04-02 2023-08-29 百度国际科技(深圳)有限公司 Block generation method, device, equipment and medium
CN111478906B (en) * 2020-04-08 2022-03-04 杭州复杂美科技有限公司 Anti-attack method, equipment and storage medium for parallel chain private transaction
CN111555951A (en) * 2020-05-13 2020-08-18 陈议尊 Enterprise blockchain method and system based on go language contract
CN111555952A (en) * 2020-05-13 2020-08-18 陈议尊 Block chain deployment method and system based on go language
CN112839091B (en) * 2021-01-11 2022-06-24 杭州复杂美科技有限公司 Block generation method, computer device and storage medium
CN113822595B (en) * 2021-10-11 2024-03-19 中国平安人寿保险股份有限公司 Method, device, computer equipment and medium for configuring financial product incentive data
CN113918102B (en) * 2021-12-10 2022-06-17 北京百度网讯科技有限公司 Data processing method, device and equipment based on block chain and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108074081A (en) * 2017-12-08 2018-05-25 上海策赢网络科技有限公司 The transfer method and device of a kind of virtual resource

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170140408A1 (en) * 2015-11-16 2017-05-18 Bank Of America Corporation Transparent self-managing rewards program using blockchain and smart contracts
CN107257374A (en) * 2017-06-15 2017-10-17 中国银行股份有限公司 Transaction processing method and system on a kind of block chain

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108074081A (en) * 2017-12-08 2018-05-25 上海策赢网络科技有限公司 The transfer method and device of a kind of virtual resource

Also Published As

Publication number Publication date
CN108985774A (en) 2018-12-11

Similar Documents

Publication Publication Date Title
CN108985774B (en) Excitation method, device, equipment and storage medium of block chain network
CN108959621B (en) Method, device, equipment and storage medium for realizing block chain network
US11630808B2 (en) Proof of lottery (PoL) blockchain
US10708071B1 (en) Consensus protocols in distributed computing systems
CN108596623B (en) Block chain consensus achieving method
US20180372502A1 (en) Road traffic management
CN109150943B (en) Information transmission method, device and system
CN109063049B (en) Account processing method, device, equipment and storage medium of block chain network
CN110490305A (en) Machine learning model processing method and node based on block chain network
CN109598147B (en) Data processing method and device based on block chain and electronic equipment
EP4318362A1 (en) Blockchain-based data processing method, apparatus and device, and storage medium
CN109886693B (en) Consensus realization method, device, equipment and medium for block chain system
CN109190881A (en) A kind of data assets management method, system and equipment
CN108665363B (en) Block chain consensus achieving device
CN108648082B (en) Computer system for block chain consensus achievement
CN108629588B (en) Computer readable medium for block chain consensus achievement
CN110517020A (en) The node of project development method and block chain network based on block chain network
CN109726249B (en) Decentralized chip research and development transaction data storage method and system
CN107203343A (en) A kind of date storage method, system and equipment
US11245528B1 (en) Protocols for decentralized networks
CN115190122B (en) Travel association method, device, equipment and storage medium based on block chain
US11570001B1 (en) Protocols for decentralized networks
CN112600945B (en) Distributed block chain service system, construction method thereof and storage medium
KR20200022273A (en) Method for performing mining in parallel with machine learning and method for supproting the mining, in a distributed computing resource shring system based on block chain
AU2020224171A1 (en) Energized identity powered 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