CN108985774A - A kind of motivational techniques, device, equipment and the storage medium of block chain network - Google Patents

A kind of motivational techniques, device, equipment and the storage medium of block chain network Download PDF

Info

Publication number
CN108985774A
CN108985774A CN201810791959.XA CN201810791959A CN108985774A CN 108985774 A CN108985774 A CN 108985774A CN 201810791959 A CN201810791959 A CN 201810791959A CN 108985774 A CN108985774 A CN 108985774A
Authority
CN
China
Prior art keywords
chain
block
basic
node
network
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.)
Granted
Application number
CN201810791959.XA
Other languages
Chinese (zh)
Other versions
CN108985774B (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology 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

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

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses motivational techniques, device, equipment and the storage mediums of a kind of block chain network, which comprises obtains from the chain transactions requests of in the history block of basic chain or basis and motivates intelligent contract;The intelligent contract of the excitation is executed, the basic chain element of specified output account is transferred to the corresponding specified input account of parallel chain node according to setting allocation rule.The technical solution of the embodiment of the present invention can be improved the scalability of block chain network and in the safety and reliability trade when across chain service, and block chain network and the demand of more and more complicated application scenarios is enable to match.

Description

A kind of motivational techniques, device, equipment and the storage medium of block chain network
Technical field
The present embodiments relate to block chain technical field more particularly to a kind of motivational techniques of block chain network, device, Equipment and storage medium.
Background technique
Existing block chain network can be roughly divided into three types according to its node size, common recognition mechanism and Run-time scenario, I.e. public chain, alliance's chain and private chain.It is independent to contribute to generation, storage and operation one for various types of block chain networks Block chain is capable of handling corresponding affairs, and store transaction data are into block.The block chain network that every block chain is based on by Multiple nodes participate in, common recognition mechanism needed for operation block chain technology is deployed on node, intelligent contract, incentive mechanism and Data needed for Encryption Algorithm etc..In general, needing node to provide for the normal operation of block chain and calculating power, therefore distribution can be passed through Digital cash is simultaneously allocated, and participates in block processes and storage to reward node.Meanwhile digital cash can also be used as block chain The object of middle transactions requests processing.Typically the corresponding block chain network of bit coin, bit coin are served not only as to miner's node Excitation, also participate in various trade transactions.
With the fast development of block chain technology, the application scenarios of block chain technology have been not limited to digital cash transaction , for example, people, which are not content with, only runs affairs in an independent blocks chain, alternatively, being no longer satisfied with solid using only one There is the block chain of mode to run old affairs, produces the demand for the transaction mode that constantly updates.Therefore, it has currently had already appeared more The mutually independent block chain of kind, the demand of the processing data of across different blocks chains (referred to as across chain) have become current block chain and answer More urgent demand in.The type of traditional block chain can not adapt to the demand of several scenes, and it is existing across The safety and reliability traded when across chain service is not can guarantee again in the solution of chain processing data.
Summary of the invention
The embodiment of the present invention provides motivational techniques, device, equipment and the storage medium of a kind of block chain network, so that block Chain network can match with the demand of more and more complicated application scenarios.
In a first aspect, the embodiment of the invention provides a kind of motivational techniques of block chain network, by the area of basic chain network Block generates node to execute, which comprises
It is obtained from the chain transactions requests of in the history block of basic chain or basis and motivates intelligent contract;
The intelligent contract of the excitation is executed, by the basic chain element of specified output account according to setting allocation rule transfer To the corresponding specified input account of parallel chain node.
Second aspect, the embodiment of the invention also provides a kind of motivational techniques of block chain network, by parallel chain network Block generates node to execute, which comprises
Intelligent contract is distributed from obtaining in the history block of parallel chain or in parallel chain transactions requests;
The intelligent contract of the distribution is executed, the deployment data based on local basic chain generate notice transactions requests, in base It is transmitted in plinth chain network, wherein the notice transactions requests are for notifying the network node of basic chain according to storing in basic chain Excitation intelligence contract, it is corresponding that the basic chain element of specified output account according to setting allocation rule is transferred to parallel chain node Specified input account.
The third aspect, the embodiment of the invention also provides a kind of exciting banks of block chain network, are configured at basic link network The block of network generates node, and described device includes:
First contract obtains module, for obtaining excitation intelligence from the chain transactions requests of in the history block of basic chain or basis It can contract;
First contract execution module, for executing the intelligent contract of the excitation, by the basic chain member of specified output account Element is transferred to the corresponding specified input account of parallel chain node according to setting allocation rule.
Fourth aspect, the embodiment of the invention also provides a kind of exciting banks of block chain network, are configured at parallel link network The block of network generates node, and described device includes:
Second contract obtains module, for from obtaining distribution intelligence in the history block of parallel chain or in parallel chain transactions requests It can contract;
Second contract execution module, for executing the intelligent contract of the distribution, the deployment data based on local basic chain Notice transactions requests are generated, are transmitted in basic chain network, wherein the notice transactions requests are used to notify the network of basic chain Node is according to the excitation intelligence contract stored in basic chain, by the basic chain element of specified output account according to setting allocation rule It is transferred to the corresponding specified input account of parallel chain node.
5th aspect, the embodiment of the invention also provides a kind of computer equipment, the computer equipment includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the motivational techniques of any block chain network in first aspect.
6th aspect, the embodiment of the invention also provides a kind of computer equipment, the computer equipment includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the motivational techniques of any block chain network in second aspect.
7th aspect, the embodiment of the invention also provides a kind of computer storage mediums, are stored thereon with computer program, The motivational techniques of any block chain network in first aspect are realized when the program is executed by processor.
Eighth aspect, the embodiment of the invention also provides a kind of computer storage mediums, are stored thereon with computer program, The motivational techniques of any block chain network in second aspect are realized when the program is executed by processor.
The embodiment of the present invention is by the way that from obtaining in the history block of basic chain or in basic chain transactions requests, excitation is intelligent to be closed About, which is that the regulation that network node is initiated when creating parallel chain has the intelligent contract of specified output account.It obtains The intelligent contract of excitation can be executed after getting the intelligent contract of excitation, will motivate and specify output account specified in intelligent contract Basic chain element is transferred to the corresponding specified input account of parallel chain node according to setting allocation rule, to establish two blocks Association between chain network solves and is difficult to extend existing for existing block chain network and the transaction security when carrying out across chain service Property and the lower problem of reliability, improve block chain network scalability and the safety trade when across chain service with Reliability enables block chain network and the demand of more and more complicated application scenarios to match.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the motivational techniques for block chain network that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart of the motivational techniques of block chain network provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of flow chart of the motivational techniques for block chain network that the embodiment of the present invention three provides;
Fig. 4 is a kind of schematic diagram of the exciting bank for block chain network that the embodiment of the present invention four provides;
Fig. 5 is a kind of schematic diagram of the exciting bank for block chain network that the embodiment of the present invention five provides;
Fig. 6 is a kind of structural schematic diagram for computer equipment that the embodiment of the present invention six provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.
It also should be noted that only the parts related to the present invention are shown for ease of description, in attached drawing rather than Full content.It should be mentioned that some exemplary embodiments are described before exemplary embodiment is discussed in greater detail At the processing or method described as flow chart.Although operations (or step) are described as the processing of sequence by flow chart, It is that many of these operations can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of operations can be by again It arranges.The processing can be terminated when its operations are completed, it is also possible to have the additional step being not included in attached drawing. The processing can correspond to method, function, regulation, subroutine, subprogram etc..
Embodiment one
Fig. 1 is a kind of flow chart of the motivational techniques for block chain network that the embodiment of the present invention one provides, and the present embodiment can The case where participating in parallel chain processing suitable for basic chain, this method can be executed by the exciting bank of block chain network, the dress Setting can be realized by the mode of software and/or hardware, and can generally be integrated in the calculating for undertaking block chain network nodal function In machine equipment, block chain network node specifically can be the block in basic chain network with block processes permission and generate node. As shown in Figure 1, this method includes following operation:
S110, it is obtained from the chain transactions requests of in the history block of basic chain or basis and motivates intelligent contract.
Wherein, it is the node in block chain network with block processes permission that block, which generates node,.Basic chain is a kind of area Block chain can be used for establishing connection between various independent block chains.Basic chain can be associated with corresponding parallel chain, Data exchange is carried out for auxiliary establishing parallel chain, management parallel chain, auxiliary parallel chain.For example, basic chain can be used for existing Connection is established between the block chain independent of each other having, so that the data interaction in block chain is no longer limited to an individual area Block chain, so that the flow range of value is no longer limited to an individual block chain.That is, basic chain can be to entire block chain Operating parameter in network is managed and supervises.Basic chain transactions requests can be in basic chain network to be occurred in a period of time Transaction request or other transactions requests to be processed.Motivate intelligent contract that can be created by parallel chain creation node, and by base The block generation node of plinth chain, which is added in block, to be executed, for binding parallel chain.The content of the intelligence contract can specify that with The related any operation of parallel chain, such as: how in the node of parallel chain distribution excitation currency, the amount of money that can distribute with And rule of distribution etc..Associated account number can be the privately owned account of parallel chain network node, for storing basic chain or parallel chain Digital cash.
In embodiments of the present invention, the block of basic chain network generates node and can obtain in the history block of basic chain Intelligent contract is motivated, the mode of acquisition includes but is not limited to recall history block or timing and positioning searching history block etc..Separately Outside, the block of basic chain network, which generates node, to motivate intelligent contract by obtaining in basic chain transactions requests, for example, can Acquisition to receive the transmission of other nodes motivates the transactions requests of intelligent contract as basic chain transactions requests etc..
S120, the intelligent contract of the excitation is executed, by the basic chain element of specified output account according to setting distribution rule Then it is transferred to the corresponding specified input account of parallel chain node.
Wherein, parallel chain is also a kind of block chain, is opposite concept with basic chain.Parallel chain has general block chain All properties, meanwhile, it may go to establish, be managed and carry out data exchange based on basic chain.Parallel chain can be by base Made of plinth chain derives from, or be also possible to have the function of with basic chain reciprocity status and, mutually auxiliary foundation, manage and data Exchange.Parallel chain can have one, and there may also be a plurality of.And optionally, between a plurality of parallel chain independently of one another, not mutually It influences, alternatively, being also possible between two parallel chains mutually for the relationship of basic chain and parallel chain.
In general, basic chain is established and is run prior to parallel chain, with higher public credibility and appeal, value More obtain everybody approval.So the node of parallel chain can use public credibility and the appeal of basic chain node come by being ready The node for providing calculation power provides service for it.
Basic chain and parallel chain can form super chain network.In super chain network, basic chain be also possible to one or It is a plurality of.It should be noted that between all nodes of the basic chain of participation and all nodes for participating in parallel chain, there are overlapping relations. That is, at least partly node of participation parallel chain and participate in basic chain are at least partly identical network nodes.It is heavy at these In folded network node, it is deployed with all data of the block chain of its participation, that is, the deployment data of basic chain be both stored with, The deployment data of parallel chain are stored with, the block itself of basic chain and parallel chain is gone back while being stored with.Due to being deployed with not simultaneously With the data of block chain, so the transactions requests of different blocks chain can be generated in such network node, and can also be local The Transaction Information in different blocks chain is inquired, it is facilitated to carry out across chain issued transaction.
In addition it should be noted that, basic chain and parallel chain can be swashed using the digital cash of identical or different type Encourage, and the network node of basic chain and parallel chain be used to store digital cash account can store simultaneously it is a variety of different types of Digital cash, the digital cash in each block chain can be interacted with account, such as be transferred to or produce digital cash.Block What chain played incentive action is not limited to digital cash, is also possible to other by the element of account management.Wherein, account can be logical Asymmetric key pair is crossed to manage, public key is exactly account address, and private key is saved by the account owner oneself.Basic chain transactions requests It can be the transaction request or other transactions requests to be processed occurred in a period of time in basic chain network.Basic chain affairs are asked The parallel chain data for including are asked to may include but be not limited in deployment data, transactions requests, intelligent contract or the account of parallel chain Digital cash etc..Specified output account can be the account for exporting the digital cash to circulate in basic chain to other accounts Number.Basic chain element can be the digital cash to be circulated in basic chain network.Setting allocation rule can be parallel chain network To the foundation that basic chain element is allocated, the particular content for setting allocation rule can be formulated according to actual demand, such as average Allocation rule etc., the embodiment of the present invention is to this and is not limited.Specified input account can be each account in parallel chain, such as User account or chain account etc..
In embodiments of the present invention, the block of basic chain network is generated after node gets the intelligent contract of excitation and be can be performed Processing motivates the relevant regulations in intelligent contract.Specifically, the block generation node of basic chain network can be according to excitation intelligence It is corresponding that the basic chain element of specified output account is transferred to parallel chain node according to setting allocation rule by regulation in contract Specified input account.For example, the digital cash of the setting numerical value in specified output account X can be averagely allocated to parallel chain link In point corresponding specified input account Y and Z.
In an alternate embodiment of the present invention where, the setting allocation rule may include following at least one:
Block for setting quantity history block in parallel chain generates node, carries out setting number according to power contribution rule is calculated It is worth the distribution of basic chain element;
According to the allocation proportion of chain element parallel in parallel chain, for the network node distribution basis for being assigned parallel chain element Chain element;
For the node in parallel chain, the distribution of setting numerical value basis chain element is carried out according to average rule.
Wherein, setting quantity can be the numerical value set according to actual needs, such as 10,20 or 50 etc., and the present invention is implemented Example is to this and is not limited.Calculate power contribution rule can be it is artificial as defined in, provide the degree of strength of calculation power for measuring Node institute right of possession corporeal right weight values or sequence etc..For example, generating in node in preceding 5 blocks, each block generates the calculation that node provides The weighted value of power is 0.1,0.2,0.3,0.2 and 0.2, or is generated in node in preceding 5 blocks, and each block generates node and mentions The calculation power of confession by by force to weak sequence successively are as follows: it is raw that block generates node 1, block generates node 3, block generates node 2, block Node 4 is generated at node 5 and block.Setting numerical value can be the numerical value set according to actual needs simultaneously, for example, 100 or 200 etc., it is specific that the total amount according to the basic chain element for including in basic chain is needed to carry out adaptive settings, the embodiment of the present invention pair This is equally not limited.The allocation proportion of chain element can be prepared for parallel chain network node in parallel, for dividing Ratio value with basic chain element.Usually in the operational process of parallel chain, node reward can be generated for the block of each block Certain digital cash distributes the digital cash of parallel chain.It would generally increase with the quantity of block, and have certain decline Subtract.It is referred to the allocation proportion of parallel chain digital cash in distribution basis chain element, carries out the distribution of corresponding proportion.In parallel Chain element can be the digital cash to circulate in parallel chain, can be identical or different with basic chain element.Average rule can be For the mode of all node mean allocations for participating in parallel chain.
In embodiments of the present invention, optionally, setting allocation rule included in the wound generation block of parallel chain can wrap Include following several situations:
Node is generated to block it is possible, firstly, to generate the quantity of node according to block in parallel chain and calculate power contribution rule The basic chain element of distribution setting numerical value.Basic chain network node can be looked by execution and the associated intelligent contract of parallel chain The block data in the parallel chain being locally stored is ask to obtain block in parallel chain and generate nodal information.It illustratively, if will Bit coin is used as basic chain element, and when the quantity that block generates node in parallel chain network often reaches 10, then can be by 100 A bit coin is allocated according to the degree of strength that 10 blocks generate node offer calculation power.If 10 blocks generate node and mention The weighted value of the calculation power of confession is respectively 0.05,0.1,0.15,0.1,0.1,0.2,0.05,0.1,0.05 and 0.1, then is 10 areas Block generates node and distributes 5,10,15,10,10,20,5,10,5 and 10 bit coin respectively.
Secondly, can also be using the allocation proportion of chain element parallel in parallel chain as foundation, only to having in parallel chain network The network node distribution basis chain element of parallel chain element.Illustratively, the node 1 in parallel chain network, node 2 and node 3 There are 5,10 and 15 bit coin respectively, then the allocation proportion of the parallel chain element of three nodes is 1:2:3.It can be saved according to three Bit coin in 120 basic chains is allocated by the allocation proportion of the parallel chain element of point, then node 1, node 2 and node 3 20,40 and 60 bit coin are distributed respectively.
It certainly, also can also be directly according to average rule to the basic chain member of the node distribution setting numerical value in parallel chain Element.Illustratively, there are 15 nodes in parallel chain in total, the bit coin in 300 basic chains can be averagely allocated to 15 A node, each node are assigned to 20 bit coin.
It should be noted that basic chain element can follow with the distribution of parallel chain element and successively decrease in the embodiment of the present invention Rule.And the above-mentioned distribution to basic chain element, it can execute once, can also execute several times, it can be by basic chain affairs Excitation intelligence contract in request provides.The execution of the excitation intelligence contract can be execution when being recalled.
In an alternate embodiment of the present invention where, the method can also include: obtain for motivate intelligent contract into The motion transactions requests of row change;The motion transactions requests are handled, and obtain the ballot of basic chain node feeding back;Root It is selected in the intelligent contract template set in motion transactions requests according to voting results, updates and intelligently closed as new excitation About.
Wherein, motion transactions requests can be what basic chain network node issued, for becoming to the intelligent contract of excitation Transactions requests more, motion transactions requests can provide the intelligent contract module of setting.The intelligent contract module of setting can be Preset various types of intelligent contract modules, for generating corresponding intelligent contract after being edited according to demand, Concrete form and content can design according to actual needs, and the embodiment of the present invention is not to the specific of the intelligent contract module of setting Form and content are defined.
In embodiments of the present invention, if parallel chain network node wants change, parallel chain disposes data, for example, change swashs Mechanism or Encryption Algorithm etc. are encouraged, network node can send the update transactions requests of parallel chain deployment data to basic chain network.It should Update the change content information that transactions requests have included parallel chain deployment data.Node in basic chain network receives update thing After business request, the excitation intelligence contract for needing to modify, and foundation can be got for the related content updated in transactions requests The change request of intelligent contract is motivated to send motion transactions requests in basic chain network.The block of basic chain network generates node After receiving motion transactions requests, motion transactions requests can be handled.Illustratively, the block of basic chain network generates Node can handle motion transactions requests by the way of motion-ballot.Specifically, the block of basic chain network generates node A motion transactions requests can be initiated, which has included the change content information of parallel chain deployment data.Together When, which generates node and also needs regulation motion-ballot process relevant parameter, for example, the setting ratio in basic chain network The node of example (such as 2/3) quantity is agreed to allow the deployment data to parallel chain to be modified after updating transactions requests;Ballot is cut Only time, such as 10 minutes;And frozen capital as ensuring funds etc..Then, the block of basic chain network generate node can be with The voting results of other node feeding backs in basic chain network are collected, and judging whether according to voting results can be to motion affairs Request is handled.When that can be handled motion transactions requests according to voting results determination, the block of basic chain network Generate node can the intelligent contract module of the setting according to specified in motion transactions requests selected and edited, to generate New intelligent contract is as new excitation intelligence contract.Alternatively, the block generation node of basic chain network can also direct basis The related content of motion transactions requests generates the new intelligent contract of meet demand as new excitation intelligence contract.
The embodiment of the present invention is by the way that from obtaining in the history block of basic chain or in basic chain transactions requests, excitation is intelligent to be closed About, which is that the regulation that network node is initiated when creating parallel chain has the intelligent contract of specified output account.It obtains The intelligent contract of excitation can be executed after getting the intelligent contract of excitation, will motivate and specify output account specified in intelligent contract Basic chain element is transferred to the corresponding specified input account of parallel chain node according to setting allocation rule, to establish two blocks Association between chain network solves and is difficult to extend existing for existing block chain network and the transaction security when carrying out across chain service Property and the lower problem of reliability, improve block chain network scalability and the safety trade when across chain service with Reliability enables block chain network and the demand of more and more complicated application scenarios to match.
Preferably, basic chain is that digital cash obtains the block chain that value is approved, and parallel chain is to be worth not recognized Can block chain, usually newly created or founder's influence power is small.In order to encourage network node to provide calculation power for parallel chain It supports, is then motivated with network node of the digital cash of basic chain to parallel chain.Incentive mechanism is by storing in basic chain Excitation intelligence contract reliable executed to guarantee its.
Embodiment two
Fig. 2 is a kind of flow chart of the motivational techniques of block chain network provided by Embodiment 2 of the present invention, the present embodiment with It is embodied based on above-described embodiment, in the present embodiment, gives the producing method for motivating intelligent contract, and execute The basic chain element of specified output account is transferred to parallel chain node according to setting allocation rule by the intelligent contract of the excitation The concrete operations of corresponding specified input account.Correspondingly, as shown in Fig. 2, the method for the present embodiment may include:
S210, the basic chain transactions requests that parallel chain creation node is initiated are obtained, wherein in the basis chain transactions requests Deployment data, the specified output account and the setting allocation rule including the parallel chain created.
Wherein, parallel chain creation node can be the network node of creation parallel chain wound generation block, also be deployed with basis The data of chain, it is possible to initiate basic chain transactions requests.Deployment data can be data Layer, network layer, common recognition in block chain Layer, excitation layer, contract layer and the corresponding data of application layer, such as data block, timestamp, mechanism of transmission, authentication mechanism, issuing machine System, algorithm mechanism, the intelligent data such as contract or programmable currency.
It in embodiments of the present invention, can be by wherein any one node of basic chain network as parallel chain creation node The basic chain transactions requests of creation parallel chain wound generation block are initiated, that is, parallel chain creation node can be by the wound generation of parallel chain Transactions requests of the content of block as a basic chain, request basic chain network node to be written in the block of basic chain, as a result, Basic chain can the wound generation block to parallel chain supervised and recalled.The content of the wound generation block of parallel chain can refer to existing The content of the wound generation block of block chain is established.For example, the write-in common recognition mechanism of parallel chain, incentive mechanism, distribution digital cash And the deployment data such as template of intelligent contract, in addition to this it is possible to which regulation refers to accordingly in the wound generation block of parallel chain Surely output account and setting allocation rule.Also, the wound generation block of parallel chain can control the later period operation of parallel chain.Thus may be used See, parallel chain creation node can provide to build participation parallel chain when creating parallel chain in the basic chain transactions requests of initiation The excited rules of vertical node.
S220, the Transaction Information of the basic chain transactions requests is written in the block of basic chain, in the Transaction Information Including the intelligent contract of the excitation.
Correspondingly, the block in basic chain generates node and gets the basic chain transactions requests that parallel chain creation node is initiated Afterwards, in addition to the wound generation block of parallel chain can be written in the block of basic chain, can also be to basic chain transactions requests at It manages operation and motivates intelligent contract, and intelligence contract will be motivated to be written in the block of basic chain as Transaction Information,
S230, execute the intelligent contract of the excitation, by the specified setting quantity basis chain element exported in account into Row freezes or is transferred to specified freeze in account.
Wherein, setting quantity can be the numerical value set according to actual needs, such as 10,20 or 50 etc., and the present invention is implemented Example is to this and is not limited.It is specified to freeze account and can be any believable account in block chain network, alternatively, can also be straight It connects the parallel chain account that will be bound with parallel chain and freezes account as specified.
In embodiments of the present invention, same in the block that basic chain is written in the Transaction Information of basic chain transactions requests When, the intelligent contract of excitation can be executed, the setting quantity basis chain element in specified output account is freezed or is transferred to It is specified to freeze in account.It is specified to freeze account and store for motivating the basic chain element for participating in parallel link network network node, It cannot arbitrarily be controlled by parallel chain node, to guarantee enough public credibility.
S240, it is obtained from the chain transactions requests of in the history block of basic chain or basis and motivates intelligent contract.
In an alternate embodiment of the present invention where, it is obtained from the history block of basic chain and intelligent contract is motivated to can wrap Include following at least one:
The history block in basic chain is traversed, there is the current excitation intelligence contract for executing demand to inquire;
If monitor that setting condition meets, the history block in the corresponding basic chain that imposes a condition is searched, The intelligent contract of the excitation is obtained with inquiry, wherein described impose a condition is setting time interval or setting block height;
The notice transactions requests transmitted in parallel chain network are received, the excitation intelligence contract inquiry in basic chain network is initiated Transactions requests handle the inquiry transaction request to obtain the intelligent contract of the excitation in the history block of basic chain.
Wherein, imposing a condition can be for monitoring the trigger condition for motivating intelligent contract defined, for example, imposing a condition The block height etc. executed in period or block chain that can be a certain process in basic chain network, imposing a condition specifically can be according to It is set according to actual demand, the embodiment of the present invention is to this and is not limited.It meanwhile can also include having in setting condition Motivate the relevant information of the history block of intelligent contract, such as the block head information of history block.Notice transactions requests can be Parallel chain network node is sent to basic chain network node, for notifying basic chain network node to carry out asking across chain service It asks.It should be noted that notice transactions requests are that network node is generated according to the deployment data in basic chain.Network node can To generate notice transactions requests according to the regulation in the intelligent contract in parallel chain network.For example, when increasing 10 in parallel chain newly When a block, notice transactions requests can be initiated to basic chain network node.Wherein, network node can simultaneously participate in basic chain Network and parallel chain network are deployed with all data of the block chain of its participation, that is, the deployment data of basic chain be both stored with, Also the deployment data of parallel chain are stored with, the block itself of basic chain and parallel chain is gone back while being stored with.Due to being deployed with simultaneously The data of different blocks chain so the transactions requests of different blocks chain can be generated in such network node, and can also this Ground inquires the Transaction Information in different blocks chain, it is facilitated to carry out across chain issued transaction.Intelligent contract inquiry transaction is motivated to ask The transactions requests that can be in basic chain network for the intelligent contract of inquiry excitation in history block are sought, it can be by basic link network Network node is initiated, and can also be initiated by simultaneously participating in basic chain network with the network node of parallel chain network.
In embodiments of the present invention, the block of basic chain network generate node can be by following three kinds of modes from basic chain History block in obtain and motivate intelligent contract:
Firstly, the block generation node of basic chain network can carry out traversal to history block all in basic chain and look into It looks for, meets the current excitation intelligence contract for executing demand to obtain.Although this acquisition modes are simple, work as history block counts When measuring larger, generally require to spend certain resource.
Secondly, the block of basic chain network generates whether node can reach setting condition with monitoring network state, for example, The block of basic chain network, which generates node, can detecte the current point in time distance last time point for obtaining the intelligent contract of excitation Between time interval whether reach setting time interval.Wherein, setting time interval can be sets according to actual needs Interval, such as 10 minutes or 1 hour, the embodiment of the present invention is to this and is not limited.In another example the block of basic chain network is raw It can detecte whether the block height in block chain network reaches setting block height at node.Wherein, setting block height can To be position of the block in block chain (can be basic chain, be also possible to parallel chain), such as every 10 blocks or every 100 A block, similarly, setting block height can be set according to actual needs, and the embodiment of the present invention is equally not limited this. When the block of basic chain network, which generates node, determines that setting condition is triggered, can inquire in the corresponding basic chain that imposes a condition History block relevant information, and corresponding history block is inquired to obtain and motivate intelligent contract according to relevant information.
Finally, the block of basic chain network, which generates node, can also receive that transmit in parallel chain network includes excitation intelligence The notice transactions requests of contract relevant information (such as motivating the title or number of intelligent contract), then according to notice transactions requests Including the intelligent contract of excitation relevant information, issued in basic chain network and handle the intelligent contract inquiry transaction of excitation and asked It asks, to obtain the intelligent contract of corresponding excitation in the history block of basic chain.
S250, the intelligent contract of the excitation is executed, by the basic chain element of specified output account according to setting distribution rule Then it is transferred to the corresponding specified input account of parallel chain node.
Correspondingly, executing the intelligent contract of the excitation, the basic chain element of specified output account is distributed according to setting The operation that rule is transferred to the corresponding specified input account of parallel chain node can be further refined as S251, S252 and S253 These three operations.
S251, the intelligent contract of the excitation is executed, the pass of parallel chain network node is obtained in the parallel chain being locally stored Join account as the specified input account.
Wherein, the associated account number of parallel chain network node can be the privately owned account of network node, for storing basic chain Or the digital cash of parallel chain.
In embodiments of the present invention, the block of basic chain network generates node when executing excitation intelligence contract, Ke Yiyi According to the concrete regulation motivated in intelligent contract, inquired in each block for the parallel chain being locally stored, it is parallel to obtain The associated account number of chain network node is modified as the specified input account, and to the data of specified input account.
It should be noted that motivating the execution time of intelligent contract and motivating the creation time of intelligent contract can be unanimously It can be inconsistent.That is, motivate intelligent contract that can be immediately performed when motivating intelligent contract to generate, it can also be according to parallel chain Time cycle of the quantity of block or setting etc., rule executed in network, and the embodiment of the present invention is not to the intelligent contract of excitation Execution opportunity is defined.
S252, basic chain element transfer contract is generated, the basis chain element transfer contract is used for from the specified output In account, basic chain element transfer is carried out to the specified input account according to setting allocation rule.
Wherein, basic chain element transfer contract, which can be to be directed to, exports basic chain element to the pass of parallel chain network node Join prepared rule of account etc..
It in embodiments of the present invention, can be with after basic chain network node gets the associated account number of parallel chain network node It generates corresponding basis chain element and shifts contract, for dividing from the specified output account motivated in intelligent contract according to setting With rule to the associated account number of parallel chain, namely specified input account, shift corresponding basic chain element.The basis chain element Contract is shifted as a transactions requests, node processing is generated by the block of basic chain.
S253, the basic chain element transfer contract is transmitted in the network node of basic chain, to request basic link network Network node verifies the affairs in the basic chain element transfer contract according to the parallel chain being locally stored.
In embodiments of the present invention, the block of basic chain network generates node and completes to turn to the basic chain element of associated account number After the issued transaction of shifting, corresponding Transaction Information is added in block, and the block is sent to other nodes, request carries out The confirmation of block.After other network nodes receive block, basic chain element can be shifted according to the parallel chain being locally stored The validity of affairs in contract is verified.For example, whether verifying setting allocation rule correct, the account of steering whether with it is flat The node account that records in row chain is consistent etc..Account intelligence contract is correctly performed to guarantee that block generates node.
It should be noted that Fig. 2 is only a kind of schematic diagram of implementation, there is no sequencings between S220 and S230 Relationship, that is, S220 and S230 can the two parallel practice.
By adopting the above technical scheme, by obtaining and executing from the history block of basic chain or in basic chain transactions requests Intelligent contract is motivated, will motivate and specify the basic chain element of output account according to setting allocation rule specified in intelligent contract It is transferred to the corresponding specified input account of parallel chain node, to establish the association between two block chain networks, is solved existing Have and be difficult to extend existing for block chain network and transaction security and the lower problem of reliability when carrying out across chain service, improves The scalability of block chain network and in the safety and reliability trade when across chain service, enable block chain network with The demand of more and more complicated application scenarios matches.
Embodiment three
Fig. 3 is a kind of flow chart of the motivational techniques for block chain network that the embodiment of the present invention three provides, and the present embodiment can The case where participating in parallel chain energized process suitable for basic chain, this method can be executed by the exciting bank of block chain network, The device can be realized by the mode of software and/or hardware, and can be generally integrated in and be undertaken block chain network nodal function In computer equipment, block chain network node specifically can be the block in parallel chain network with block processes permission and generate section Point.As shown in figure 3, this method includes following operation:
S310, intelligent contract is distributed from obtaining in the history block of parallel chain or in parallel chain transactions requests.
Wherein, it distributes intelligent contract and can be and created by parallel chain network node, generated by the block of parallel chain network Node is added to the intelligent contract executed in block, is used to indicate basic chain network node for the basic chain member of specified output account Element is transferred to the corresponding specified input account of parallel chain node according to setting allocation rule.Parallel chain transactions requests are can be flat It is transmitted in row chain network, and by the transactions requests of parallel chain node processing, can be transaction request or other affairs to be processed Request.
In embodiments of the present invention, the block of parallel chain network generates node and can obtain in the history block of parallel chain Intelligent contract is distributed, the mode of acquisition includes but is not limited to recall history block or timing and positioning searching history block etc..Separately Outside, the block of parallel chain network, which generates node, to distribute intelligent contract by obtaining in parallel chain transactions requests, for example, can Acquisition to receive the transmission of other nodes distributes the transactions requests of intelligent contract as parallel chain transactions requests etc..
S320, the intelligent contract of the distribution being executed, the deployment data based on local basic chain generate notice transactions requests, It is transmitted in basic chain network.
Wherein, the notice transactions requests are for notifying the network node of basic chain according to the excitation intelligence stored in basic chain Can contract, by it is specified output account basic chain element according to setting allocation rule be transferred to parallel chain node it is corresponding specify it is defeated Enter account.
In embodiments of the present invention, the block of parallel chain network generates node when executing distribution intelligence contract, due to section Store two kinds of deployment data of basic chain and parallel chain simultaneously in point, thus can the deployment data based on the basic chain of local with And the concrete regulation distributed in intelligent contract generates notice transactions requests, and transmits in basic chain network.Basic chain network Block, which generates node, can receive simultaneously processing notification transactions requests, to execute the relevant regulations motivated in intelligent contract.
In an alternate embodiment of the present invention where, the intelligent contract of the distribution, the portion based on local basic chain are executed It affixes one's name to data and generates notice transactions requests, transmission may include: to execute the intelligent contract of the distribution in basic chain network, if known It is clipped to current state and meets the condition distributed in intelligent contract, then the deployment data based on local basic chain generate notice Transactions requests are transmitted in basic chain network.
Wherein, the condition distributed in intelligent contract can be for triggering the setting condition for generating notice transactions requests.
In embodiments of the present invention, the block of parallel chain network generates node when executing distribution intelligence contract, if known The condition that current state meets in the intelligent contract of distribution is clipped to then may be used for example, the block in parallel chain reaches the height value of setting To generate corresponding notice transactions requests according to the deployment data for the basic chain being locally stored, and transmitted in basic chain network.
In an alternate embodiment of the present invention where, the condition distributed in intelligent contract may include following at least one It is a: setting time interval or setting block height.
It should be noted that also may include setting for setting time interval or setting block height in distributing intelligent contract Fixed condition is used for every setting time interval, or when determining the block height meet demand in parallel chain, into parallel chain Block generates node and issues the prompting message for obtaining and distributing intelligent contract.Prompting message may include having current execution demand Distribute the relevant information of the history block of intelligent contract.Therefore, the block of parallel chain network generates node and can inquire accordingly History block distributes intelligent contract to obtain.Certainly, the block of parallel chain network, which generates node, can also receive parallel chain network Middle transmission includes the notice transactions requests for distributing intelligent contract relevant information (such as distributing the title or number of intelligent contract), Then the relevant information of the intelligent contract of the distribution for including according to notice transactions requests, issues in parallel chain network and handles distribution Intelligent contract inquiry transaction request, to obtain the intelligent contract of corresponding excitation in the history block of parallel chain.
The embodiment of the present invention generates node from the history block of parallel chain or parallel chain by the block of parallel chain network It is obtained in transactions requests and distributes intelligent contract, the distribution intelligence contract is for motivating the node in parallel chain.It gets The intelligent contract of distribution is executed after distributing intelligent contract, and generates notice transactions requests based on the deployment data of local basic chain, It is transmitted in basic chain network, so that the block of basic chain network generates node and initiates and handle the intelligent contract inquiry transaction of excitation Request motivates intelligent contract, and so that the block of basic chain network is generated node and execute the intelligent contract of excitation, will specify defeated The basic chain element of account is transferred to the corresponding specified input account of parallel chain node according to setting allocation rule out, to establish Association between two block chain networks solves and is difficult to extend existing for existing block chain network and when carrying out across chain service Transaction security and the lower problem of reliability improve the scalability of block chain network and trade when across chain service Safety and reliability enables block chain network and the demand of more and more complicated application scenarios to match.
Example IV
Fig. 4 is a kind of schematic diagram of the exciting bank for block chain network that the embodiment of the present invention four provides, and described device is matched The block for being placed in basic chain network generates node, as shown in figure 4, described device includes: that the first contract obtains module 410 and the One contract execution module 420, in which:
First contract obtains module 410, for sharp from obtaining in the history block of basic chain or in basic chain transactions requests Encourage intelligent contract;
First contract execution module 420, for executing the intelligent contract of the excitation, by the basic chain of specified output account Element is transferred to the corresponding specified input account of parallel chain node according to setting allocation rule.
The embodiment of the present invention is by the way that from obtaining in the history block of basic chain or in basic chain transactions requests, excitation is intelligent to be closed About, which is that the regulation that network node is initiated when creating parallel chain has the intelligent contract of specified output account.It obtains The intelligent contract of excitation can be executed after getting the intelligent contract of excitation, will motivate and specify output account specified in intelligent contract Basic chain element is transferred to the corresponding specified input account of parallel chain node according to setting allocation rule, to establish two blocks Association between chain network solves and is difficult to extend existing for existing block chain network and the transaction security when carrying out across chain service Property and the lower problem of reliability, improve block chain network scalability and the safety trade when across chain service with Reliability enables block chain network and the demand of more and more complicated application scenarios to match.
Optionally, described device further include: request module, the basic chain initiated for obtaining parallel chain creation node Transactions requests, wherein include deployment data, the specified output account of created parallel chain in the basis chain transactions requests Number and the setting allocation rule;Data write. module, for base to be written in the Transaction Information of the basic chain transactions requests It include the intelligent contract of the excitation in the block of plinth chain, in the Transaction Information.
Optionally, described device further include: element shift module, for executing the intelligent contract of the excitation, by the finger Surely it exports the setting quantity basis chain element in account and is freezed or be transferred to specified freeze in account.
Optionally, the first contract obtains module 410, specifically for traversing the history block in basic chain, to inquire presence The current excitation intelligence contract for executing demand;If monitor that setting condition meets, it is corresponding to search the setting condition History block in basic chain obtains the intelligent contract of the excitation with inquiry, wherein described impose a condition is setting time interval Or setting block height;The notice transactions requests transmitted in parallel chain network are received, the excitation intelligence in basic chain network is initiated The request of contract inquiry transaction handles the inquiry transaction request and is intelligently closed with obtaining the excitation in the history block of basic chain About.
Optionally, the first contract execution module 420 is specifically used for executing the intelligent contract of the excitation, what is be locally stored The associated account number of parallel chain network node is obtained in parallel chain as the specified input account;Basic chain element transfer is generated to close About, the basic chain element transfer contract is used for from the specified output account, according to the setting allocation rule to described Specified input account carries out basic chain element transfer;The basic chain element transfer contract is passed in the network node of basic chain It is defeated, to request basic chain network node according to the parallel chain being locally stored, to the affairs in the basic chain element transfer contract It is verified.
Optionally, the setting allocation rule includes following at least one: for setting quantity history block in parallel chain Block generate node, according to calculate power contribution rule carry out setting numerical value basis chain element distribution;According to parallel in parallel chain The allocation proportion of chain element, for the network node distribution basis chain element for being assigned parallel chain element;For the section in parallel chain Point carries out the distribution of setting numerical value basis chain element according to average rule.
Optionally, described device further include: contract update module is directed to what the intelligent contract of excitation changed for obtaining Motion transactions requests;The motion transactions requests are handled, and obtain the ballot of basic chain node feeding back;It is tied according to ballot It is selected, is updated as new excitation intelligence contract in the intelligent contract template that fruit sets in motion transactions requests.
Block chain provided by the embodiment of the present invention one and embodiment two can be performed in the exciting bank of above-mentioned block chain network The motivational techniques of network have the corresponding functional module of execution method and beneficial effect.Not detailed description in the present embodiment Technical detail, reference can be made to the motivational techniques for the block chain network that the embodiment of the present invention one and embodiment two provide.
Embodiment five
Fig. 5 is a kind of schematic diagram of the exciting bank for block chain network that the embodiment of the present invention five provides, and described device is matched The block for being placed in parallel chain network generates node, as shown in figure 5, described device includes: that the second contract obtains module 510 and the Two contract execution modules 520, in which:
Second contract obtains module 510, for from obtaining in the history block of parallel chain or in parallel chain transactions requests point With intelligent contract;
Second contract execution module 520, for executing the intelligent contract of the distribution, the deployment number based on local basic chain Transactions requests are notified according to generating, are transmitted in basic chain network, wherein the notice transactions requests are used to notify the net of basic chain Network node is according to the excitation intelligence contract stored in basic chain, by the basic chain element of specified output account according to setting distribution rule Then it is transferred to the corresponding specified input account of parallel chain node.
The embodiment of the present invention generates node from the history block of parallel chain or parallel chain by the block of parallel chain network It is obtained in transactions requests and distributes intelligent contract, the distribution intelligence contract is for motivating the node in parallel chain.It gets The intelligent contract of distribution is executed after distributing intelligent contract, and generates notice transactions requests based on the deployment data of local basic chain, It is transmitted in basic chain network, so that the block of basic chain network generates node and initiates and handle the intelligent contract inquiry transaction of excitation Request motivates intelligent contract, and so that the block of basic chain network is generated node and execute the intelligent contract of excitation, will specify defeated The basic chain element of account is transferred to the corresponding specified input account of parallel chain node according to setting allocation rule out, to establish Association between two block chain networks solves and is difficult to extend existing for existing block chain network and when carrying out across chain service Transaction security and the lower problem of reliability improve the scalability of block chain network and trade when across chain service Safety and reliability enables block chain network and the demand of more and more complicated application scenarios to match.
Optionally, the second contract execution module 520 is specifically used for executing the intelligent contract of the distribution, work as if recognized Preceding state meets the condition distributed in intelligent contract, then the deployment data based on local basic chain generate notice affairs and ask It asks, is transmitted in basic chain network.
Optionally, the condition distributed in intelligent contract include it is following at least one: setting time interval or setting area Block height.
Embodiment six
Fig. 6 is a kind of structural schematic diagram for computer equipment that the embodiment of the present invention six provides.Fig. 6, which is shown, to be suitable for being used to Realize the block diagram of the computer equipment 612 of embodiment of the present invention.The computer equipment 612 that Fig. 6 is shown is only an example, Should not function to the embodiment of the present invention and use scope bring any restrictions.Computer equipment 612 typically undertakes block The calculating equipment of catenary system nodal function.
As shown in fig. 6, computer equipment 612 is showed in the form of universal computing device.The component of computer equipment 612 can To include but is not limited to: one or more processor 616, storage device 628 connect different system components (including storage dress Set 628 and processor 616) bus 618.
Bus 618 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (Industry Standard Architecture, ISA) bus, microchannel architecture (Micro Channel Architecture, MCA) bus, enhancing Type isa bus, Video Electronics Standards Association (Video Electronics Standards Association, VESA) local Bus and peripheral component interconnection (Peripheral Component Interconnect, PCI) bus.
Computer equipment 612 typically comprises a variety of computer system readable media.These media can be it is any can The usable medium accessed by computer equipment 612, including volatile and non-volatile media, moveable and immovable Jie Matter.
Storage device 628 may include the computer system readable media of form of volatile memory, such as arbitrary access Memory (Random Access Memory, RAM) 630 and/or cache memory 632.Computer equipment 612 can be into One step includes other removable/nonremovable, volatile/non-volatile computer system storage mediums.Only as an example, it deposits Storage system 634 can be used for reading and writing immovable, non-volatile magnetic media, and (Fig. 6 do not show, commonly referred to as " hard drive Device ").Although being not shown in Fig. 6, the disk for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") can be provided and driven Dynamic device, and to removable anonvolatile optical disk (such as CD-ROM (Compact Disc-Read Only Memory, CD- ROM), digital video disk (Digital Video Disc-Read Only Memory, DVD-ROM) or other optical mediums) read-write CD drive.In these cases, each driver can pass through one or more data media interfaces and bus 618 It is connected.Storage device 628 may include at least one program product, which has one group of (for example, at least one) program Module, these program modules are configured to perform the function of various embodiments of the present invention.
Program 636 with one group of (at least one) program module 626, can store in such as storage device 628, this The program module 626 of sample includes but is not limited to operating system, one or more application program, other program modules and program It may include the realization of network environment in data, each of these examples or certain combination.Program module 626 usually executes Function and/or method in embodiment described in the invention.
Computer equipment 612 can also with one or more external equipments 614 (such as keyboard, sensing equipment, camera, Display 624 etc.) communication, the equipment interacted with the computer equipment 612 communication can be also enabled a user to one or more, And/or with any equipment (such as net that the computer equipment 612 is communicated with one or more of the other calculating equipment Card, modem etc.) communication.This communication can be carried out by input/output (I/O) interface 622.Also, computer Equipment 612 can also pass through network adapter 620 and one or more network (such as local area network (Local Area Network, LAN), wide area network Wide Area Network, WAN) and/or public network, such as internet) communication.As schemed Show, network adapter 620 is communicated by bus 618 with other modules of computer equipment 612.Although should be understood that in figure not It shows, other hardware and/or software module can be used in conjunction with computer equipment 612, including but not limited to: microcode, equipment Driver, redundant processing unit, external disk drive array, disk array (Redundant Arrays of Independent Disks, RAID) system, tape drive and data backup storage system etc..
The program that processor 616 is stored in storage device 628 by operation, thereby executing various function application and number According to processing, such as realize the motivational techniques of block chain network provided by the above embodiment of the present invention one and embodiment two.
That is, the processing unit is realized when executing described program: from the history block of basic chain or basic chain affairs It is obtained in request and motivates intelligent contract;Execute the intelligent contract of the excitation, by the basic chain element of specified output account according to Setting allocation rule is transferred to the corresponding specified input account of parallel chain node.
It is intelligent from excitation is obtained in the history block of basic chain or in basic chain transactions requests by the computer equipment Contract, the excitation intelligence contract are the intelligent contract that the regulation that network node is initiated when creating parallel chain has specified output account. The intelligent contract of excitation can be executed after getting the intelligent contract of excitation, will motivate and specify output account specified in intelligent contract Basic chain element according to setting allocation rule be transferred to the corresponding specified input account of parallel chain node, to establish the area Liang Ge Association between block chain network solves to be difficult to extend existing for existing block chain network and trade when carrying out across chain service and pacify Full property and the lower problem of reliability, improve the scalability of block chain network and in the safety trade when across chain service And reliability, so that block chain network and the demand of more and more complicated application scenarios is matched.
Embodiment seven
The present embodiment is seventh is that provided in an embodiment of the present invention a kind of for executing block provided by the embodiment of the present invention three The computer equipment of the motivational techniques of chain network, the computer equipment include: one or more processors;Storage device is used for Store one or more programs;When one or more of programs are executed by one or more of processors, so that described one A or multiple processors realize the motivational techniques of the block chain network as provided by the embodiment of the present invention three: from the history of parallel chain It is obtained in block or in parallel chain transactions requests and distributes intelligent contract;The intelligent contract of the distribution is executed, based on local basis The deployment data of chain generate notice transactions requests, transmit in basic chain network, wherein the notice transactions requests are for notifying The network node of basic chain according to the excitation intelligence contract stored in basic chain, by the basic chain element of specified output account according to Setting allocation rule is transferred to the corresponding specified input account of parallel chain node.Its specific structure and detail content can refer to figure 6 and embodiment six.
Embodiment eight
The embodiment of the present invention eight also provides a kind of computer storage medium for storing computer program, the computer program When being executed by computer processor for executing the excitation of the block chain network of the above embodiment of the present invention one and embodiment two Method: it is obtained from the chain transactions requests of in the history block of basic chain or basis and motivates intelligent contract;Execute the excitation intelligence Contract, by it is specified output account basic chain element according to setting allocation rule be transferred to parallel chain node it is corresponding specify it is defeated Enter account.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires (Read Only Memory, ROM), erasable programmable read only memory ((Erasable Programmable Read Only Memory, EPROM) or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic Memory device or above-mentioned any appropriate combination.In this document, computer readable storage medium, which can be, any includes Or the tangible medium of storage program, which can be commanded execution system, device or device use or in connection make With.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, radio frequency (Radio Frequency, RF) etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, Further include conventional procedural programming language --- such as " C " language or similar programming language.Program code can Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package, Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part. In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN) Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service Provider is connected by internet).
Embodiment nine
The embodiment of the present invention nine additionally provides a kind of computer readable storage medium, is stored thereon with computer program, should Program can realize the motivational techniques of block chain network described in above-described embodiment three when being executed by processor: from the history of parallel chain It is obtained in block or in parallel chain transactions requests and distributes intelligent contract;The intelligent contract of the distribution is executed, based on local basis The deployment data of chain generate notice transactions requests, transmit in basic chain network, wherein the notice transactions requests are for notifying The network node of basic chain according to the excitation intelligence contract stored in basic chain, by the basic chain element of specified output account according to Setting allocation rule is transferred to the corresponding specified input account of parallel chain node.The description of its concrete details content can refer to implementation Example eight.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (16)

1. a kind of motivational techniques of block chain network, which is characterized in that executed by the block generation node of basic chain network, institute The method of stating includes:
It is obtained from the chain transactions requests of in the history block of basic chain or basis and motivates intelligent contract;
The intelligent contract of the excitation is executed, the basic chain element of specified output account is transferred to according to setting allocation rule flat The corresponding specified input account of row chain node.
2. motivating intelligent contract the method according to claim 1, wherein obtaining from the history block of basic chain Before, further includes:
Obtain the basic chain transactions requests that parallel chain creation node is initiated, wherein include being created in the basis chain transactions requests The deployment data for the parallel chain built, the specified output account and the setting allocation rule;
The Transaction Information of the basic chain transactions requests is written in the block of basic chain, includes described sharp in the Transaction Information Encourage intelligent contract.
3. according to the method described in claim 2, it is characterized in that, base is written in the Transaction Information of the basic chain transactions requests While in the block of plinth chain, further includes:
The intelligent contract of the excitation is executed, the setting quantity basis chain element in the specified output account is freezed or turned Move on to specified freeze in account.
4. motivating intelligent contract the method according to claim 1, wherein obtaining from the history block of basic chain Including following at least one:
The history block in basic chain is traversed, there is the current excitation intelligence contract for executing demand to inquire;
If monitor that setting condition meets, the history block in the corresponding basic chain that imposes a condition is searched, to look into It askes and obtains the intelligent contract of the excitation, wherein described impose a condition is setting time interval or setting block height;
The notice transactions requests transmitted in parallel chain network are received, the excitation intelligence contract inquiry transaction in basic chain network is initiated Request handles the inquiry transaction request to obtain the intelligent contract of the excitation in the history block of basic chain.
5. the method according to claim 1, wherein the intelligent contract of the excitation is executed, by specified output account Number basic chain element be transferred to the corresponding specified input account of parallel chain node according to setting allocation rule and include:
The intelligent contract of the excitation is executed, the associated account number conduct of parallel chain network node is obtained in the parallel chain being locally stored The specified input account;
It generates basic chain element and shifts contract, the basis chain element transfer contract is used for from the specified output account, presses Basic chain element transfer is carried out to the specified input account according to the setting allocation rule;
The basic chain element transfer contract is transmitted in the network node of basic chain, with request basic chain network node according to The parallel chain being locally stored verifies the affairs in the basic chain element transfer contract.
6. according to the method described in claim 5, it is characterized in that, the setting allocation rule includes following at least one:
Block for setting quantity history block in parallel chain generates node, carries out setting numerical value base according to power contribution rule is calculated The distribution of plinth chain element;
According to the allocation proportion of chain element parallel in parallel chain, for the network node distribution basis chain member for being assigned parallel chain element Element;
For the node in parallel chain, the distribution of setting numerical value basis chain element is carried out according to average rule.
7. the method according to claim 1, wherein further include:
It obtains for the motion transactions requests for motivating intelligent contract to change;
The motion transactions requests are handled, and obtain the ballot of basic chain node feeding back;
It is selected, is updated as new excitation in the intelligent contract template set in motion transactions requests according to voting results Intelligent contract.
8. a kind of motivational techniques of block chain network, which is characterized in that executed by the block generation node of parallel chain network, institute The method of stating includes:
Intelligent contract is distributed from obtaining in the history block of parallel chain or in parallel chain transactions requests;
The intelligent contract of the distribution is executed, the deployment data based on local basic chain generate notice transactions requests, in basic chain It is transmitted in network, wherein the notice transactions requests are used to that the network node of basic chain to be notified to swash according to what is stored in basic chain Intelligent contract is encouraged, the basic chain element of specified output account is transferred to the corresponding finger of parallel chain node according to setting allocation rule Surely account is inputted.
9. according to the method described in claim 8, it is characterized in that, the intelligent contract of the distribution is executed, based on local basis The deployment data of chain generate notice transactions requests, in basic chain network transmission include:
The intelligent contract of the distribution is executed, if recognizing current state meets the condition distributed in intelligent contract, base Notice transactions requests are generated in the deployment data of local basic chain, are transmitted in basic chain network.
10. according to the method described in claim 9, it is characterized in that, the condition distributed in intelligent contract include it is following extremely It is one few: setting time interval or setting block height.
11. a kind of exciting bank of block chain network, which is characterized in that the block for being configured at basic chain network generates node, institute Stating device includes:
First contract obtains module, for from obtaining in the history block of basic chain or in basic chain transactions requests, excitation is intelligent to be closed About;
First contract execution module presses the basic chain element of specified output account for executing the intelligent contract of the excitation The corresponding specified input account of parallel chain node is transferred to according to setting allocation rule.
12. a kind of exciting bank of block chain network, which is characterized in that the block for being configured at parallel chain network generates node, institute Stating device includes:
Second contract obtains module, for from obtaining in the history block of parallel chain or in parallel chain transactions requests, distribution is intelligent to be closed About;
Second contract execution module, for executing the intelligent contract of the distribution, the deployment data based on local basic chain are generated It notifies transactions requests, is transmitted in basic chain network, wherein the notice transactions requests are used to notify the network node of basic chain According to the excitation intelligence contract stored in basic chain, by the basic chain element of specified output account according to setting allocation rule transfer To the corresponding specified input account of parallel chain node.
13. a kind of computer equipment, which is characterized in that the equipment includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now motivational techniques of the block chain network as described in any in claim 1-7.
14. a kind of computer equipment, which is characterized in that the equipment includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now motivational techniques of the block chain network as described in any in claim 8-10.
15. a kind of computer storage medium, is stored thereon with computer program, which is characterized in that the program is executed by processor The motivational techniques of block chain network of the Shi Shixian as described in any in claim 1-7.
16. a kind of computer storage medium, is stored thereon with computer program, which is characterized in that the program is executed by processor The motivational techniques of block chain network of the Shi Shixian as described in any in claim 8-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 true CN108985774A (en) 2018-12-11
CN108985774B 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)

Cited By (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
CN109711844A (en) * 2018-12-31 2019-05-03 莆田市烛火信息技术有限公司 A kind of parallel chain management method of block chain network
CN109711840A (en) * 2018-12-26 2019-05-03 咪咕文化科技有限公司 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
CN109873861A (en) * 2019-01-11 2019-06-11 平安科技(深圳)有限公司 The exchange method and device, storage medium and electronic equipment of transregional piece of chain node
CN110096857A (en) * 2019-05-07 2019-08-06 百度在线网络技术(北京)有限公司 Right management method, device, equipment and the medium of block catenary system
CN110166261A (en) * 2019-04-29 2019-08-23 深圳市元征科技股份有限公司 A kind of task management method and block chain node device
CN110445852A (en) * 2019-07-29 2019-11-12 杭州复杂美科技有限公司 Logical card distribution method, equipment and storage medium
CN110599132A (en) * 2019-09-24 2019-12-20 腾讯科技(深圳)有限公司 Method and device for generating reward data and computer readable storage medium
CN111144139A (en) * 2019-12-23 2020-05-12 传神语联网网络科技股份有限公司 Uniqueness authentication method and identification system of translation result based on block chain
CN111177259A (en) * 2019-12-13 2020-05-19 杭州复杂美科技有限公司 Parallel chain transaction encryption method, device and storage medium
CN111339202A (en) * 2020-02-28 2020-06-26 百度在线网络技术(北京)有限公司 Data access method, device, equipment and storage medium
CN111404961A (en) * 2020-03-26 2020-07-10 杭州复杂美科技有限公司 Federation link point data transmission method, equipment and storage medium
CN111461468A (en) * 2019-01-02 2020-07-28 中国移动通信有限公司研究院 Data processing method and device, data node and storage medium
CN111478906A (en) * 2020-04-08 2020-07-31 杭州复杂美科技有限公司 Anti-attack method, equipment and storage medium for parallel chain private transaction
CN111475572A (en) * 2020-04-02 2020-07-31 百度国际科技(深圳)有限公司 Block generation method, device, equipment and medium
CN111555952A (en) * 2020-05-13 2020-08-18 陈议尊 Block chain deployment method and system based on go language
CN111555951A (en) * 2020-05-13 2020-08-18 陈议尊 Enterprise blockchain method and system based on go language contract
CN112839091A (en) * 2021-01-11 2021-05-25 杭州复杂美科技有限公司 Block generation method, computer device and storage medium
CN113822595A (en) * 2021-10-11 2021-12-21 中国平安人寿保险股份有限公司 Method and device for configuring incentive data of financial products, computer equipment and medium
CN113918102A (en) * 2021-12-10 2022-01-11 北京百度网讯科技有限公司 Data processing method, device and equipment based on block chain and storage medium

Citations (3)

* 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
CN108074081A (en) * 2017-12-08 2018-05-25 上海策赢网络科技有限公司 The transfer method and device of a kind of virtual resource

Patent Citations (3)

* 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
CN108074081A (en) * 2017-12-08 2018-05-25 上海策赢网络科技有限公司 The transfer method and device of a kind of virtual resource

Cited By (32)

* 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
CN109711840A (en) * 2018-12-26 2019-05-03 咪咕文化科技有限公司 Transaction data processing method and device and storage medium
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
CN111461468A (en) * 2019-01-02 2020-07-28 中国移动通信有限公司研究院 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
CN109873861A (en) * 2019-01-11 2019-06-11 平安科技(深圳)有限公司 The exchange method and device, storage medium and electronic equipment of transregional piece of chain node
CN110166261A (en) * 2019-04-29 2019-08-23 深圳市元征科技股份有限公司 A kind of task management method and block chain node device
CN110096857A (en) * 2019-05-07 2019-08-06 百度在线网络技术(北京)有限公司 Right management method, device, equipment and the medium of block catenary system
CN110445852A (en) * 2019-07-29 2019-11-12 杭州复杂美科技有限公司 Logical card distribution method, equipment and storage medium
CN110445852B (en) * 2019-07-29 2021-12-10 杭州复杂美科技有限公司 Method, device and storage medium for issuing general certificate
CN110599132A (en) * 2019-09-24 2019-12-20 腾讯科技(深圳)有限公司 Method and device for generating reward data and computer readable storage medium
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
CN111144139A (en) * 2019-12-23 2020-05-12 传神语联网网络科技股份有限公司 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
CN111339202A (en) * 2020-02-28 2020-06-26 百度在线网络技术(北京)有限公司 Data access method, device, equipment and storage medium
CN111404961A (en) * 2020-03-26 2020-07-10 杭州复杂美科技有限公司 Federation link point data transmission method, equipment and storage medium
CN111475572A (en) * 2020-04-02 2020-07-31 百度国际科技(深圳)有限公司 Block generation method, device, equipment and 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
CN111478906A (en) * 2020-04-08 2020-07-31 杭州复杂美科技有限公司 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
CN112839091A (en) * 2021-01-11 2021-05-25 杭州复杂美科技有限公司 Block generation method, computer device and storage medium
CN112839091B (en) * 2021-01-11 2022-06-24 杭州复杂美科技有限公司 Block generation method, computer device and storage medium
CN113822595A (en) * 2021-10-11 2021-12-21 中国平安人寿保险股份有限公司 Method and device for configuring incentive data of financial products, computer equipment and medium
CN113822595B (en) * 2021-10-11 2024-03-19 中国平安人寿保险股份有限公司 Method, device, computer equipment and medium for configuring financial product incentive data
CN113918102A (en) * 2021-12-10 2022-01-11 北京百度网讯科技有限公司 Data processing method, device and equipment based on block chain and storage medium

Also Published As

Publication number Publication date
CN108985774B (en) 2022-05-31

Similar Documents

Publication Publication Date Title
CN108985774A (en) A kind of motivational techniques, device, equipment and the storage medium of block chain network
CN108959621A (en) A kind of implementation method, device, equipment and the storage medium of block chain network
US10997125B2 (en) Proof of lottery (PoL) blockchain
CN108200203B (en) Block chain system based on double-layer network
US10708071B1 (en) Consensus protocols in distributed computing systems
CN108833398A (en) A kind of block chain intelligence contract update method, device and equipment
CN110417558A (en) Verification method and device, the storage medium and electronic device of signature
US11244311B2 (en) Decentralized smart resource sharing between different resource providers
US20200201910A1 (en) System and Method for Providing a Graph Protocol for Forming a Decentralized and Distributed Graph Database
CN108984784A (en) Application implementation method, device, equipment and storage medium based on block chain network
CN105808634A (en) Distributed map reduce network
CN109523302A (en) Advertisement sending method, device and calculating equipment based on block chain
CN108648084A (en) A kind of data processing method, device, equipment and the storage medium of block chain network
CN107846278A (en) Intelligent contract processing method and processing device
CN109063049B (en) Account processing method, device, equipment and storage medium of block chain network
CN108347483B (en) Decentralized computing system based on double-layer network
CN109102269A (en) Transfer account method and device, block chain node and storage medium based on block chain
CN114172820B (en) Cross-domain SFC dynamic deployment method, device, computer equipment and storage medium
JP2023542681A (en) Integrating device identity into blockchain permission frameworks
CN109298946A (en) Digging mine method, cloud platform, device, equipment and medium based on block chain
CN109584071B (en) Block chain processing method and electronic equipment
CN116614385A (en) Service scheduling path planning method, device and equipment based on digital twin
CN110517145A (en) Data trade method and relevant device based on multi-tiling interchain
CN107634989A (en) A kind of cloud wallet construction method and server
Fan et al. Performance analysis of the IOTA DAG-based distributed ledger

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