WO2019157740A1 - Method for processing data, apparatus for processing data and device for processing data - Google Patents
Method for processing data, apparatus for processing data and device for processing data Download PDFInfo
- Publication number
- WO2019157740A1 WO2019157740A1 PCT/CN2018/076882 CN2018076882W WO2019157740A1 WO 2019157740 A1 WO2019157740 A1 WO 2019157740A1 CN 2018076882 W CN2018076882 W CN 2018076882W WO 2019157740 A1 WO2019157740 A1 WO 2019157740A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- node
- credit
- value
- blockchain network
- credit value
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 154
- 238000012545 processing Methods 0.000 title claims abstract description 92
- 238000004364 calculation method Methods 0.000 claims abstract description 130
- 238000012790 confirmation Methods 0.000 claims description 86
- 230000015654 memory Effects 0.000 claims description 46
- 230000004044 response Effects 0.000 claims description 19
- 238000012795 verification Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 8
- 238000004422 calculation algorithm Methods 0.000 abstract description 16
- 230000007246 mechanism Effects 0.000 description 30
- 238000010586 diagram Methods 0.000 description 21
- 230000008569 process Effects 0.000 description 20
- 238000005516 engineering process Methods 0.000 description 13
- 238000003672 processing method Methods 0.000 description 13
- 230000006870 function Effects 0.000 description 10
- 238000004891 communication Methods 0.000 description 8
- 238000013500 data storage Methods 0.000 description 6
- 238000009825 accumulation Methods 0.000 description 5
- 230000009471 action Effects 0.000 description 5
- 230000001360 synchronised effect Effects 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 4
- 238000005859 coupling reaction Methods 0.000 description 4
- 238000013461 design Methods 0.000 description 4
- 238000013475 authorization Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000002427 irreversible effect Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000008520 organization Effects 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013523 data management Methods 0.000 description 1
- 238000013524 data verification Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000013515 script Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Definitions
- the first node determines that the competition of the consensus confirmation right of the next N blocks is no longer based on the first The target value is used to calculate the workload
- the first node may directly include the credit value of the first node in the first blockchain network in the join request message and send the message to the second node, where the second node receives After the join request message, the credit value of the first node in the first blockchain network can be obtained.
- an apparatus for processing data having the functions of implementing each of the first to fourth aspects and various ones of the various implementations described above.
- This function can be implemented in hardware or in hardware by executing the corresponding software.
- the hardware or software includes one or more modules corresponding to the functions described above.
- FIG. 1 is a schematic diagram showing an example of a blockchain network of a method and apparatus for processing data according to an embodiment of the present application
- FIG. 4 is a schematic diagram of another data processing method provided by an embodiment of the present application.
- FIG. 7 is a schematic diagram of another data processing method provided by an embodiment of the present application.
- FIG. 8 is a schematic block diagram of an example of a data processing device according to an embodiment of the present application.
- the blockchain network 100 may implement the above-described negotiation mechanism based on blockchain techniques.
- the core of the technology to achieve the above process is: consensus mechanism.
- the consensus mechanism is a mechanism in which the blockchain nodes reach a consensus on the whole network for the block information, which can ensure that the latest block is accurately added to the blockchain, and the blockchain information stored by the node is consistent and non-forked and can also resist malicious attacks.
- the node generates block information.
- the workload is mainly reflected in: a random number of blocks that meet the requirements is composed of N leading zeros, and the number of zeros depends on the difficulty value of the network. To get a reasonable random number requires a lot of trial calculations, the calculation time depends on the speed of the machine's hash operation. When a node provides a reasonable random value, the node does undergo a lot of trial calculations.
- the determining, by the first node, the first credit value includes: determining, by the first node, an accumulation algorithm of the first credit value according to an accumulation mechanism of a consensus mechanism in the first blockchain network that belongs to the current node, and then The first credit value is calculated according to an accumulation algorithm of the first credit value.
- the first node calculates the first credit value according to the amount of transaction amount authenticated by the first node.
- the first credit value is subtracted A corresponding amount, get a new credit value.
- FIG. 8 shows a schematic block diagram of a data processing apparatus 500 of an embodiment of the present application.
- the apparatus shown in Figure 8 can be applied to a blockchain network, which can include a plurality of devices 500, each of which can be comprised of one or more of the devices 500,
- the device 500 includes a sending module 501, a receiving module 502, and a processing module 503.
- SDRAM Double Data Rate SDRAM
- DDR SDRAM Double Data Rate SDRAM
- ESDRAM Enhanced Synchronous Dynamic Random Access Memory
- SLDRAM Synchronous Connection Dynamic Random Access Memory
- DR RAM direct memory bus random access memory
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
Provided are a method and apparatus for processing data. The method comprises: a first node determining a first credit value of the first node, wherein the first node is a node in a blockchain network; and where the first node determines that the first credit value is greater than a first pre-set threshold value, calculating proof of work based on a first target value, the first target value being a target value corresponding to a first difficulty, wherein the first difficulty is less than a second difficulty corresponding to calculation of proof of work based on a pre-set target value. The method for processing data of the embodiments of the present application can reduce the difficulty of a consensus algorithm in a blockchain network.
Description
本申请涉及通信领域,更具体地,涉及通信领域中的一种处理数据的方法、处理数据的装置和处理数据的设备。The present application relates to the field of communications, and more particularly to a method of processing data, an apparatus for processing data, and an apparatus for processing data in the field of communications.
在区块链网络中,引入一个共识机制来解决公共节点同意某一个信息并将它更新到总的共享账本中的问题,一种典型共识机制是工作量证明(Proof of work,PoW)。In the blockchain network, a consensus mechanism is introduced to solve the problem that the public node agrees to a certain information and updates it to the total shared ledger. A typical consensus mechanism is Proof of work (PoW).
目前PoW算法是区块链网络中的各个节点比拼计算能力,计算随机数(Nonce)的值,是一个极其消耗资源的过程。因此,如何降低区块链网络中PoW算法的难度是一个亟待解决的问题。At present, the PoW algorithm is a computing power of each node in a blockchain network, and calculating the value of a random number (Nonce) is a process that consumes resources extremely. Therefore, how to reduce the difficulty of the PoW algorithm in the blockchain network is an urgent problem to be solved.
发明内容Summary of the invention
本申请提供一种处理数据的方法、处理数据的装置和处理数据的设备,能够降低区块链网络中PoW算法的难度。The present application provides a method for processing data, an apparatus for processing data, and a device for processing data, which can reduce the difficulty of the PoW algorithm in the blockchain network.
第一方面,提供了一种处理数据的方法,该方法包括:第一节点确定所述第一节点的第一信用值,其中所述第一节点为区块链网络中的一个节点。所述第一节点在确定所述第一信用值大于第一预设阈值的情况下,所述第一节点基于第一目标值进行工作量证明计算,所述第一目标值为对应于第一难度的目标值,其中,所述第一难度小于基于预设目标值进行工作量证明计算对应的第二难度。In a first aspect, a method of processing data is provided, the method comprising: a first node determining a first credit value of the first node, wherein the first node is a node in a blockchain network. If the first node determines that the first credit value is greater than a first preset threshold, the first node performs a workload proof calculation based on the first target value, where the first target value corresponds to the first a target value of the difficulty, wherein the first difficulty is less than a second difficulty corresponding to the workload proof calculation based on the preset target value.
根据本申请实施例的处理数据的方法,区块链中的节点首先确定自己当前的信用值的大小,当信用值超过第一预设阈值时,可以在进行工作量证明计算的时候,计算得到第一目标值即为完成工作量证明计算,且计算第一目标值的难度小于计算预设目标值的难度,则,在节点的信用值满足预设要求时,可以降低节点工作量证明计算的难度,从而能够在节省节点在工作量证明计算上的功耗。According to the method for processing data according to the embodiment of the present application, the node in the blockchain first determines the size of its current credit value. When the credit value exceeds the first preset threshold, the calculation may be performed when the workload proof calculation is performed. The first target value is the calculation of the completed workload proof, and the difficulty of calculating the first target value is less than the difficulty of calculating the preset target value, then, when the credit value of the node satisfies the preset requirement, the calculation of the node workload proof can be reduced. Difficulty, which can save the node's power consumption in the proof of workload calculation.
结合第一方面,在第一方面的一种实现方式中,该方法还包括:所述第一节点确定第一节点的第二信用值。所述第一节点在确定所述第二信用值小于或等于所述第一预设阈值的情况下,所述第一节点基于所述预设目标值进行工作量证明计算。In conjunction with the first aspect, in an implementation manner of the first aspect, the method further includes: the first node determining a second credit value of the first node. The first node, when determining that the second credit value is less than or equal to the first preset threshold, performs, by the first node, a workload proof calculation based on the preset target value.
根据本申请实施例的处理数据的方法,区块链中的节点首先确定自己当前的信用值的大小,当信用值没有超过第一预设阈值时,在进行工作量证明计算的时候,计算得到预设目标值即为完成工作量证明,则,当节点信用值不满足预设要求时,基于现有的工作量证明计算难度进行工作量证明,上述的第二信用值与第一信用的确定可以是在不同的时刻进行的,能够与现有的工作量证明计算方法相互兼容。According to the method for processing data according to the embodiment of the present application, the node in the blockchain first determines the size of its current credit value. When the credit value does not exceed the first preset threshold, when calculating the workload proof, the calculation is performed. The preset target value is the proof of completion workload, then, when the node credit value does not meet the preset requirement, the workload verification is performed based on the existing workload proof calculation difficulty, and the above second credit value and the first credit are determined. It can be done at different times and can be compatible with existing workload proof calculation methods.
结合第一方面及其上述实现方式,在第一方面的另一种实现方式中,该方法还包括: 所述第一节点确定第三信用值,所述第三信用值为第二节点的信用值,其中,所述第二节点为所述区块链网络中的除所述第一节点之外的任意一个节点。所述第一节点确定第四信用值,所述第四信用值为第三节点的信用值,其中,所述第三节点为所述区块链网络中的除所述第一节点和所述第二节点之外的任意一个节点。所述第一节点在确定所述第三信用值高于所述第四信用值的情况下,向所述第二节点发送交易信息。With reference to the first aspect and the foregoing implementation manner, in another implementation manner of the first aspect, the method further includes: the first node determining a third credit value, where the third credit value is a credit of the second node a value, wherein the second node is any one of the blockchain networks except the first node. Determining, by the first node, a fourth credit value, where the fourth credit value is a credit value of a third node, wherein the third node is in the blockchain network except the first node and the Any node other than the second node. The first node sends transaction information to the second node if it is determined that the third credit value is higher than the fourth credit value.
根据本申请实施例的处理数据的方法,区块链中的第一节点可以计算区块链中各个节点的信用值,当第二节点的信用值的大小满足第二预设阈值,第三节点的信用值的大小满足第二预设阈值时,第一节点可以认为第二节点为可信任的节点,在第一节点有交易需要发出的时候,可以仅向信任的第二节点发送所述交易,能够降低工作量证明计算的功耗。According to the method for processing data in the embodiment of the present application, the first node in the blockchain may calculate the credit value of each node in the blockchain, and when the size of the credit value of the second node meets the second preset threshold, the third node When the size of the credit value satisfies the second preset threshold, the first node may consider the second node to be a trusted node, and may send the transaction only to the trusted second node when the first node has a transaction to issue. , can reduce the workload to prove the calculated power consumption.
结合第一方面及其上述实现方式,在第一方面的另一种实现方式中,该方法还包括:所述第一节点确定第三信用值,所述第三信用值为第二节点的信用值,其中,所述第二节点为所述区块链网络中的除所述第一节点之外的任意一个节点。所述第一节点确定第四信用值,所述第四信用值为第三节点的信用值,其中,所述第三节点为所述区块链网络中的除所述第一节点和所述第二节点之外的任意一个节点。所述第一节点在确定所述第三信用值高于所述第四信用值的情况下,向所述第二节点发送交易信息,并在发送所述交易信息至所述第二节点之后,向所述第三节点发送所述交易信息。With reference to the first aspect and the foregoing implementation manner, in another implementation manner of the first aspect, the method further includes: the first node determining a third credit value, where the third credit value is a credit of the second node a value, wherein the second node is any one of the blockchain networks except the first node. Determining, by the first node, a fourth credit value, where the fourth credit value is a credit value of a third node, wherein the third node is in the blockchain network except the first node and the Any node other than the second node. The first node, after determining that the third credit value is higher than the fourth credit value, sending transaction information to the second node, and after transmitting the transaction information to the second node, Transmitting the transaction information to the third node.
根据本申请实施例的处理数据的方法,区块链中的第一节点可以计算区块链中各个节点的信用值,当第二节点的信用值的大小满足第二预设阈值,第三节点的信用值的大小满足第二预设阈值时,第一节点可以认为第二节点为可信任的节点,在第一节点有交易需要发出的时候,可以先向信任的第二节点发送所述交易,在将交易发送第二节点之后再向第三节点发送所述交易,能够降低工作量证明计算的功耗。例如,在第四时刻发送交易信息至上述第二节点,在第五时刻发送交易信息至上述第三节点,所述第五时刻晚于所述第四时刻。According to the method for processing data in the embodiment of the present application, the first node in the blockchain may calculate the credit value of each node in the blockchain, and when the size of the credit value of the second node meets the second preset threshold, the third node When the size of the credit value satisfies the second preset threshold, the first node may consider the second node to be a trusted node, and may send the transaction to the trusted second node first when there is a transaction to be sent by the first node. The transaction is sent to the third node after the transaction is sent to the second node, which can reduce the power consumption of the workload proof calculation. For example, the transaction information is sent to the second node at the fourth time, the transaction information is sent to the third node at the fifth time, and the fifth time is later than the fourth time.
可选地,第二预设阈值可以是系统规定的与上述第一预设阈值相等的值,也可以是系统设置的与上述第一预设阈值不同的值。Optionally, the second preset threshold may be a value that is equal to the first preset threshold specified by the system, or may be a value that is different from the first preset threshold that is set by the system.
结合第一方面及其上述实现方式,在第一方面的另一种实现方式中,在所述第一节点确定第一信用值之前,所述方法还包括:所述第一节点向所述区块链网络中的X个节点发送加入请求消息,所述加入请求消息包括信用度信息,所述信用度信息用于指示所述第一节点的最新信用值,其中,X为大于或等于1的整数。In conjunction with the first aspect and the foregoing implementation manner, in another implementation manner of the first aspect, before the determining, by the first node, the first credit value, the method further includes: the first node to the area The X nodes in the blockchain network send a join request message, the join request message includes credit information, and the credit information is used to indicate the latest credit value of the first node, where X is an integer greater than or equal to 1.
根据本申请实施例的处理数据的方法,第一节点在不是所述区块链网络中的节点的时候,需要首先向所述区块链网络发送加入请求消息,其中,可选地,第一节点的加入请求消息可以是广播在所述区块链网络中,第一节点的加入请求消息中包括信用度信息,所述区块链网络中的节点可以对第一节点的加入请求消息进行认证,判断第一节点所提供的信用值的可信度,增加了区块链网络的安全性。According to the method for processing data according to the embodiment of the present application, when the first node is not a node in the blockchain network, the first request to send a join request message to the blockchain network, where, optionally, the first The join request message of the node may be broadcasted in the blockchain network, and the join request message of the first node includes credit information, and the node in the blockchain network may authenticate the join request message of the first node. Judging the credibility of the credit value provided by the first node increases the security of the blockchain network.
结合第一方面及其上述实现方式,在第一方面的另一种实现方式中,所述方法还包括:所述第一节点接收所述X个节点中的至少一个节点发出的认证确认消息并加入所述区块链网络,所述认证确认消息用于指示所述第一节点能够加入所述区块链网络;或者,所述第一节点从所述区块链网络中查询所述认证确认消息并加入所述区块链网络,所述认证确 认消息用于确认所述第一节点能够加入所述区块链网络。With reference to the first aspect and the foregoing implementation manner, in another implementation manner of the first aspect, the method further includes: the first node receiving an authentication confirmation message sent by at least one of the X nodes and Adding to the blockchain network, the authentication confirmation message is used to indicate that the first node can join the blockchain network; or the first node queries the authentication confirmation from the blockchain network The message joins the blockchain network, and the authentication confirmation message is used to confirm that the first node can join the blockchain network.
根据本申请实施例的处理数据的方法,对第一节点的加入请求消息进行认证的节点可以是所述区块链网络中的X个节点,当X个节点中至少一个节点发出的认证确认消息时,或者,第一节点可以在所述区块链网络中查询认证确认消息,并加入所述区块链网络,能够让第一节点加入所述区块链网络时携带自身当前信用度信息,有利于第一节点后续基于信用值进行工作量证明。According to the method for processing data according to the embodiment of the present application, the node that authenticates the join request message of the first node may be the X nodes in the blockchain network, and the authentication confirmation message sent by at least one of the X nodes. Or, the first node may query the authentication acknowledgement message in the blockchain network, and join the blockchain network, so that the first node joins the blockchain network and carries its current credit information, It is advantageous for the first node to perform workload verification based on the credit value.
结合第一方面及其上述实现方式,在第一方面的另一种实现方式中,该方法还包括:所述第一节点向信用统计区块链网络中的节点发送信用统计信息。In conjunction with the first aspect and the foregoing implementation manner, in another implementation manner of the first aspect, the method further includes: the first node sending credit statistics information to a node in a credit statistic blockchain network.
根据本申请实施例的处理数据的方法,第一节点可以首先将信用统计信息发送给信用统计区块链网络,有利于后续信用值的获取。According to the method for processing data according to the embodiment of the present application, the first node may first send the credit statistics information to the credit statistic blockchain network, which facilitates the acquisition of subsequent credit values.
结合第一方面及其上述实现方式,在第一方面的另一种实现方式中,所述第一节点基于第一目标值进行工作量证明计算,包括:所述第一节点基于第一目标值进行工作量证明计算获得共识确认权。所述第一节点生成目标区块。In conjunction with the first aspect and the foregoing implementation manner, in another implementation manner of the first aspect, the first node performs a workload proof calculation based on the first target value, including: the first node is based on the first target value The workload proof calculation is used to obtain the consensus confirmation right. The first node generates a target block.
根据本申请实施例的处理数据的方法,第一节点可以在基于第一目标值进行工作量证明计算之后获得共识确认权,并生成目标区块,能够降低第一节点工作量证明计算的功耗。According to the method for processing data according to the embodiment of the present application, the first node may obtain the consensus confirmation right after performing the workload proof calculation based on the first target value, and generate a target block, which can reduce the power consumption of the first node workload proof calculation. .
结合第一方面及其上述实现方式,在第一方面的另一种实现方式中,所述方法还包括:所述第一节点确定第五信用值;所述目标区块包括所述第五信用值;所述第一节点确定第五信用值为所述第一信用值减去预设的信用消耗值。In conjunction with the first aspect and the foregoing implementation manner, in another implementation manner of the first aspect, the method further includes: the first node determining a fifth credit value; the target block including the fifth credit a value; the first node determines that the fifth credit value is the first credit value minus a preset credit consumption value.
根据本申请实施例的处理数据的方法,第一节点在基于第一目标值进行工作量证明计算获得共识确认权之后,重新确定自己当前的信用值大小,当前信用值的大小比第一节点的第一信用值小,减去了第一节点进行工作量证明计算的信用消耗值,能够避免第一节点连续多次基于一目标值进行工作量证明计算影响区块链网络的安全性。According to the method for processing data according to the embodiment of the present application, after the first node performs the workload confirmation calculation based on the first target value to obtain the consensus confirmation right, the first node re-determines the current credit value, and the current credit value is larger than the first node. The first credit value is small, and the credit consumption value calculated by the first node for the workload proof calculation is subtracted, which can prevent the first node from performing the workload proof calculation based on a target value for a plurality of times to affect the security of the blockchain network.
结合第一方面及其上述实现方式,在第一方面的另一种实现方式中,所述预设的信用消耗值为所述第一节点基于第一目标值进行工作量证明计算获得共识确认权时消耗的信用值。In another implementation manner of the first aspect, the preset credit consumption value is that when the The credit value consumed.
根据本申请实施例的处理数据的方法,第一节点在基于第一目标值进行工作量证明计算获得共识确认权时消耗的信用值在重新确定信用值的时候减去所述消耗的信用值,能够准确确定第一节点最新信用值。According to the method for processing data according to the embodiment of the present application, the credit value consumed by the first node when obtaining the consensus confirmation right by performing the workload proof calculation based on the first target value is subtracted from the consumed credit value when the credit value is re-determined, Accurately determine the latest credit value of the first node.
结合第一方面及其上述实现方式,在第一方面的另一种实现方式中,所述目标区块还包括高度差,所述高度差用于指示所述第一节点上一次基于所述第一目标值获得所述共识确认权的区块与当次基于所述第一目标值获得共识确认权的区块之间的区块高度差。In combination with the first aspect and the foregoing implementation manner, in another implementation manner of the first aspect, the target block further includes a height difference, where the height difference is used to indicate that the first node is based on the first A target value obtains a block height difference between the block in which the consensus confirmation right is obtained and the block in which the consensus confirmation right is obtained based on the first target value.
根据本申请实施例的处理数据的方法,第一节点生成的区块还包括第一节点计算所述第一目标值获得所述共识确认权与当前计算所述第一目标值获得共识确认权之间进行工作量证明计算的次数,使得区块链网络中的其他节点能够得知第一节点是否有权计算所述第一目标值获得所述共识确认权。According to the method for processing data according to the embodiment of the present application, the block generated by the first node further includes: the first node calculates the first target value, obtains the consensus confirmation right, and currently calculates the first target value to obtain a consensus confirmation right. The number of times the workload proof calculation is performed, so that other nodes in the blockchain network can know whether the first node has the right to calculate the first target value to obtain the consensus confirmation right.
结合第一方面及其上述实现方式,在第一方面的另一种实现方式中,所述方法还包括:所述第一节点接收第一交易信息,所述第一交易信息中包含信用需求值信息,所述信用需求信息用于指示所述第一交易被所述区块链节点进行共识确认所要求的信用值。In conjunction with the first aspect and the foregoing implementation manner, in another implementation manner of the first aspect, the method further includes: the first node receiving first transaction information, where the first transaction information includes a credit demand value Information, the credit demand information is used to indicate a credit value required for the first transaction to be confirmed by the blockchain node for consensus confirmation.
根据本申请实施例的处理数据的方法,第一节点在进行工作量证明计算之前会接收到区块链网络中的第一交易信息,第一节点获取进行第一交易所需的信用需求值,判断自身信用值是否满足第一交易所需的信用需求值,能够提高区块链网络中交易的完成速度。According to the method for processing data according to the embodiment of the present application, the first node receives the first transaction information in the blockchain network before performing the workload proof calculation, and the first node acquires the credit demand value required to perform the first transaction, Judging whether the credit value of the self meets the credit demand value required for the first transaction can improve the completion speed of the transaction in the blockchain network.
结合第一方面及其上述实现方式,在第一方面的另一种实现方式中,所述第一节点基于第一目标值进行工作量证明计算,还包括:In conjunction with the first aspect and the foregoing implementation manner, in another implementation manner of the first aspect, the first node performs a workload verification calculation based on the first target value, and further includes:
可选地,所述第一节点基于第一目标值进行工作量证明计算获得共识确认权后,所述第一节点确定在之后的N个区块的共识确认权的竞争中不再基于第一目标值进行工作量证明计算;Optionally, after the first node performs the workload proof calculation based on the first target value to obtain the consensus confirmation right, the first node determines that the competition of the consensus confirmation right of the next N blocks is no longer based on the first The target value is used to calculate the workload;
可选地,所述第一节点基于第一目标值进行工作量证明计算获得共识确认权后,所述第一节点确定在之后的Y个时间单位内的区块的共识确认权的竞争中不再基于第一目标值进行工作量证明计算;Optionally, after the first node performs the workload proof calculation based on the first target value to obtain the consensus confirmation right, the first node determines that the competition of the consensus confirmation right of the block in the subsequent Y time units is not Performing a workload proof calculation based on the first target value;
可选地,所述第一节点基于第一目标值进行工作量证明计算获得共识确认权后,所述第一节点确定在之后的N个区块的共识确认权的竞争中基于预设目标值或第二目标值进行工作量证明计算,所述第二目标值为对应于第三难度的目标值,所述第三难度小于第二难度且大于第一难度;Optionally, after the first node performs the workload proof calculation to obtain the consensus confirmation right based on the first target value, the first node determines that the competition of the consensus confirmation right of the subsequent N blocks is based on the preset target value. Or the second target value is subjected to the workload proof calculation, the second target value is a target value corresponding to the third difficulty, and the third difficulty is less than the second difficulty and greater than the first difficulty;
可选地,所述第一节点基于第一目标值进行工作量证明计算获得共识确认权后,所述第一节点确定在之后的Y个时间单位内的共识确认权的竞争中基于所述预设目标值或所述第二目标值进行工作量证明计算;其中,所述N和所述Y为正整数。Optionally, after the first node performs the workload proof calculation to obtain the consensus confirmation right based on the first target value, the first node determines, according to the pre-competition of the consensus confirmation right in the subsequent Y time units. Setting a target value or the second target value to perform a workload proof calculation; wherein the N and the Y are positive integers.
根据本申请实施例的处理数据的方法,区块链网络规定第一节点基于第一目标值进行工作量证明计算获得共识确认权后,在接下来的N次或者Y个时间单位内的交易处理中不能再次基于第一目标值进行工作量证明计算,能够避免第一节点多次基于第一目标值进行工作量证明计算获得共识确认权降低区块链网络的安全性。According to the method for processing data according to the embodiment of the present application, the blockchain network specifies that the first node performs transaction processing in the next N times or Y time units after performing the workload verification calculation based on the first target value to obtain the consensus confirmation right. The workload proof calculation cannot be performed again based on the first target value, and the first node can be prevented from performing the workload verification calculation based on the first target value multiple times to obtain the consensus confirmation right to reduce the security of the blockchain network.
应理解,上述第一节点可以是区块链网络中的任意一个节点,例如,网络中互联的计算机或者服务器。It should be understood that the first node described above may be any one of the blockchain networks, for example, a computer or server interconnected in the network.
第二方面,提供了一种处理数据的方法,该方法包括:第二节点接收第一节点发送的加入请求消息,所述加入请求消息包括信用度信息,所述信用度信息用于指示所述第一节点在第一区块链网络中的信用值,所述第二节点为第二区块链网络中的一个节点,所述第一节点为所述第一区块链网络中的一个节点。所述第二节点根据所述信用度信息,获取所述第一节点在所述第一区块链网络中的信用值。A second aspect provides a method for processing data, the method comprising: receiving, by a second node, a join request message sent by a first node, where the join request message includes credit information, where the credit information is used to indicate the first The credit value of the node in the first blockchain network, the second node is a node in the second blockchain network, and the first node is a node in the first blockchain network. And obtaining, by the second node, a credit value of the first node in the first blockchain network according to the credit information.
根据本申请实施例的处理数据的方法,第二节点接收第一节点发送的请求信息,并确定第一节点的最新信用值,能够在第一节点加入区块链网络时,得到当前的信用值信息,有利于第一节点后续基于信用值进行工作量证明计算。According to the method for processing data according to the embodiment of the present application, the second node receives the request information sent by the first node, and determines the latest credit value of the first node, and can obtain the current credit value when the first node joins the blockchain network. The information is beneficial to the first node to perform workload proof calculation based on the credit value.
结合第二方面,在第二方面的一种实现方式中,所述第二节点根据所述信用度信息,获取所述第一节点在所述第一区块链网络中的信用值包括:With reference to the second aspect, in an implementation manner of the second aspect, the acquiring, by the second node, the credit value of the first node in the first blockchain network according to the credit information includes:
所述信用度信息为所述第一节点在第一区块链网络中的信用值,所述第二节点根据所述信用度信息,获取所述信用值。The credit information is a credit value of the first node in the first blockchain network, and the second node acquires the credit value according to the credit information.
根据本申请实施例的处理数据的方法,第一节点可以直接将所述第一节点在第一区块链网络中的信用值包括在加入请求消息中发送给第二节点,第二节点接收到所述加入请求 消息之后能够获取第一节点在第一区块链网络中的信用值。According to the method for processing data according to the embodiment of the present application, the first node may directly include the credit value of the first node in the first blockchain network in the join request message and send the message to the second node, where the second node receives After the join request message, the credit value of the first node in the first blockchain network can be obtained.
结合第二方面及其上述实现方式,在第二方面的另一种实现方式中,所述第二节点根据所述信用度信息,获取所述第一节点在所述第一区块链网络中的信用值包括:所述信用度信息包括目标区块链网络中的记录所述信用值的目标区块信息。所述第二节点根据所述目标区块信息向所述目标区块链网络发送查询请求消息,所述查询请求消息用于请求获取所述信用值。所述第二节点接收第三节点发送的查询响应信息,所述查询响应信息包括所述信用值,所述第三节点为所述目标区块链网络中的一个节点。With reference to the second aspect and the foregoing implementation manner, in another implementation manner of the second aspect, the second node acquires, according to the credit information, the first node in the first blockchain network. The credit value includes: the credit information includes target block information in the target blockchain network that records the credit value. And the second node sends a query request message to the target blockchain network according to the target block information, where the query request message is used to request to acquire the credit value. The second node receives the query response information sent by the third node, where the query response information includes the credit value, and the third node is a node in the target blockchain network.
根据本申请实施例的处理数据的方法,第二节点可以从目标区块链网络中查询第一节点的信用值信息,增加了第一节点的信用值获取的方法。According to the method for processing data according to the embodiment of the present application, the second node may query the credit value information of the first node from the target blockchain network, and increase the method for obtaining the credit value of the first node.
可选地,在一些实施例中,目标区块链网络可以是第一节点所属的第一区块链网络,即,第一节点发送的加入请求消息中包括第一节点在所属第一区块链网络中的信用值所在的区块信息,第二节点根据该区块信息查询所述信用值,第一区块链网络中的第三节点将所述信用值包括在查询响应信息中,发送给第二节点。Optionally, in some embodiments, the target blockchain network may be the first blockchain network to which the first node belongs, that is, the join request message sent by the first node includes the first node in the first block to which the first node belongs. The block information of the credit value in the chain network, the second node queries the credit value according to the block information, and the third node in the first blockchain network includes the credit value in the query response information, and sends Give the second node.
可选地,在另一些实施例中,目标区块链网络可以是信用统计区块链网络,即,第一节点发送的加入请求消息中包括第一节点在所属第一区块链网络中的信用值所在信用统计区块链网络的区块信息,第二节点根据该区块信息查询所述信用值,信用统计区块链网络中的第三节点将所述信用值包括在查询响应信息中,发送给第二节点。Optionally, in other embodiments, the target blockchain network may be a credit statistic blockchain network, that is, the join request message sent by the first node includes the first node in the first blockchain network to which the first node belongs. The credit value is located in the block information of the credit statistic blockchain network, and the second node queries the credit value according to the block information, and the third node in the credit statistic blockchain network includes the credit value in the query response information. , sent to the second node.
第三方面,提供了一种处理数据的方法,该方法包括:第三节点接收第一节点发送的信用统计信息,所述第三节点为信用统计区块链网络中的一个节点;所述第三节点根据所述信用统计信息,确定所述第一节点的信用值。In a third aspect, a method for processing data is provided, the method comprising: receiving, by a third node, credit statistics information sent by a first node, where the third node is a node in a network of credit statistics blockchains; The three nodes determine the credit value of the first node according to the credit statistical information.
根据本申请实施例的处理数据的方法,第三节点可以作为信用统计区块链网络中的计算第一节点最新信用值的节点,计算第一节点的信用值,能够为后续第一节点的最新信用值的查询提供便利。According to the method for processing data according to the embodiment of the present application, the third node may be used as a node for calculating the latest credit value of the first node in the credit statistic blockchain network, and calculate the credit value of the first node, which can be the latest of the subsequent first node. The credit value inquiry is convenient.
结合第三方面,在第三方面的一种实现方式中,该方法还包括:所述第三节点接收第二节点发送的查询请求信息,所述查询请求信息用于请求获取所述第一节点的信用值,所述第二节点为第一区块链网络中的一个节点。所述第三节点向所述第二节点发送查询反馈信息,所述查询反馈信息包括所述第一节点的信用值。With reference to the third aspect, in an implementation manner of the third aspect, the method further includes: the third node receiving the query request information sent by the second node, where the query request information is used to request to acquire the first node The credit value, the second node is a node in the first blockchain network. The third node sends query feedback information to the second node, where the query feedback information includes a credit value of the first node.
根据本申请实施例的处理数据的方法,第三节点可以向查询第一节点的最新信用值的第二节点反馈第一节点的最新信用值,增加了第二节点获取第一节点的信用值的方法。According to the method for processing data according to the embodiment of the present application, the third node may feed back the latest credit value of the first node to the second node that queries the latest credit value of the first node, and increase the second node to acquire the credit value of the first node. method.
第四方面,提供了一种处理数据的方法,该方法包括:第一节点获取第一区块链网络中的N个节点的信用值,其中所述第一节点为所述第一区块链网络中的任意一个节点。所述第一节点根据所述第一区块链网络中的所述N个节点的信用值,确定采用第一方案进行工作量证明计算或采用第二方案进行工作量证明计算,其中采用所述第一方案进行所述工作量证明计算为基于第一目标值进行所述工作量证明计算,其中所述第一目标值为对应于第一难度的目标值,采用所述第二方案进行所述工作量证明计算为基于预设目标值进行所述工作量证明计算,其中所述预设目标值为对应于第二难度的目标值,所述第一难度小于所述第二难度。A fourth aspect provides a method for processing data, the method comprising: a first node acquiring a credit value of N nodes in a first blockchain network, wherein the first node is the first blockchain Any node in the network. Determining, according to the credit value of the N nodes in the first blockchain network, the first node to perform workload proof calculation or using the second scheme to perform workload proof calculation, where The first solution performs the workload proof calculation to perform the workload proof calculation based on the first target value, wherein the first target value is a target value corresponding to the first difficulty, and the second scenario is used to perform the The workload proof is calculated to perform the workload proof calculation based on the preset target value, wherein the preset target value is a target value corresponding to the second difficulty, and the first difficulty is less than the second difficulty.
根据本申请实施例的处理数据的方法,第一节点可以在进行工作量证明计算之前计算 区块链网络中的N个节点的信用值,其中,所述N个节点可以是区块链网络中的全部节点根据计算得到的N个节点信用值大小判断进行工作量证明计算的方案,能够提供区块链网络中的N个节点降低功耗进行工作量证明计算的方法。According to the method for processing data according to an embodiment of the present application, the first node may calculate the credit value of the N nodes in the blockchain network before performing the workload proof calculation, wherein the N nodes may be in the blockchain network. All the nodes judge the calculation method of the workload proof according to the calculated N node credit value, and can provide the method for reducing the power consumption of the N nodes in the blockchain network to perform the workload proof calculation.
结合第四方面,在第四方面的一种实现方式中,所述第一节点根据所述第一区块链网络中的N个节点的信用值,确定采用第一方案进行工作量证明计算或采用第二方案进行工作量证明计算,包括:所述第一节点在确定所述第一区块链网络中的N个节点的信用值均大于第一预设阈值的情况下,确定采用所述第一方案进行所述工作量证明计算。所述第一节点在确定所述第一区块链网络中的M个节点的信用值小于或等于所述第一预设阈值的情况下,确定采用所述第二方案进行所述工作量证明计算,其中,所述M为大于或者等于0且小于或者等于N的正整数。With reference to the fourth aspect, in an implementation manner of the fourth aspect, the first node determines, according to the credit value of the N nodes in the first blockchain network, the first solution to perform workload verification calculation or The second scenario is used to perform the workload verification calculation, including: determining, by the first node, that the credit value of the N nodes in the first blockchain network is greater than a first preset threshold, The first scheme performs the workload proof calculation. Determining, by the first node, that the workload is proved by using the second scheme, if the first node determines that a credit value of the M nodes in the first blockchain network is less than or equal to the first preset threshold. The calculation, wherein the M is a positive integer greater than or equal to 0 and less than or equal to N.
根据本申请实施例的处理数据的方法,当区块链网络中的N个节点的信用值均大于第一预设值的情况下,N个节点均可以降低难度进行所述工作量证明计算,能够降低全网计算功耗。According to the method for processing data according to the embodiment of the present application, when the credit values of the N nodes in the blockchain network are greater than the first preset value, the N nodes can reduce the difficulty and perform the workload proof calculation. Can reduce the power consumption of the entire network.
结合第四方面及其上述实现方式,在第四方面的另一种实现方式中,所述第一节点根据所述第一区块链网络中的N个节点的信用值,确定采用第一方案进行工作量证明计算或采用第二方案进行工作量证明计算,包括:所述第一节点在确定所述第一区块链网络中的信用值大于第二预设值的节点数目与所述第一区块链网络中的全部节点数目的比值大于第三预设值的情况下,或者,确定所述第一区块链网络中的信用值大于第二预设值的节点数目大于第四预设值的情况下,确定采用所述第一方案进行所述工作量证明计算。所述第一节点在确定所述第一区块链网络中的信用值大于第二预设值的节点数目与所述第一区块链网络中的全部节点数目的比值小于或等于第三预设值的情况下,或者,确定所述第一区块链网络中的信用值大于第二预设值的节点数目小于或等于第四预设值的情况下,确定采用所述第二方案进行所述工作量证明计算。With reference to the fourth aspect and the foregoing implementation manner, in another implementation manner of the fourth aspect, the first node determines, according to the credit value of the N nodes in the first blockchain network, that the first solution is adopted. Performing a workload proof calculation or performing a workload proof calculation by using the second scheme, including: determining, by the first node, a number of nodes whose credit value in the first blockchain network is greater than a second preset value, and the number If the ratio of the number of all nodes in the blockchain network is greater than the third preset value, or determining that the number of nodes in the first blockchain network is greater than the second preset value is greater than the fourth pre- In the case of setting a value, it is determined that the workload proof calculation is performed using the first scheme. The ratio of the number of nodes determining that the credit value in the first blockchain network is greater than the second preset value to the total number of nodes in the first blockchain network is less than or equal to the third pre-determination In the case of setting the value, or determining that the number of nodes in the first blockchain network that is greater than the second preset value is less than or equal to the fourth preset value, determining to adopt the second scheme The workload is calculated.
根据本申请实施例的处理数据的方法,当区块链网络中的全部节点的中的部分节点信用值大于第一预设值的情况下,全部节点或者信用值大于第一预设值的节点均可以降低难度进行所述工作量证明计算,能够降低全网计算功耗。According to the method for processing data according to the embodiment of the present application, when a part of the nodes in the blockchain network has a credit value greater than a first preset value, all nodes or nodes whose credit value is greater than the first preset value Both can reduce the difficulty to carry out the workload proof calculation, and can reduce the power consumption of the whole network.
第五方面,提供了一种处理数据的装置,其中,所述处理数据的装置可以配置为第一方面中的第一节点或者可以为多个计算机装置配置为第一节点,包括用于执行上述第一方面以及第一方面的各实现方式中的处理数据的方法的各步骤的单元。A fifth aspect, an apparatus for processing data, wherein the apparatus for processing data may be configured as a first node in a first aspect or may be configured as a first node for a plurality of computer devices, including The first aspect and the units of the steps of the method of processing data in each implementation of the first aspect.
第六方面,提供了一种处理数据的装置,其中,所述处理数据的装置可以配置为第二方面中的第二节点或者可以为多个计算机装置配置为第二节点,包括用于执行上述第二方面以及第二方面的各实现方式中的处理数据的方法的各步骤的单元。In a sixth aspect, an apparatus for processing data is provided, wherein the apparatus for processing data may be configured as a second node in the second aspect or may be configured as a second node for the plurality of computer devices, including The second aspect and the units of the steps of the method of processing data in each implementation of the second aspect.
第七方面,提供了一种处理数据的装置,其中,所述处理数据的装置可以配置为第三方面中的第三节点或者可以为多个计算机装置配置为第三节点,包括用于执行上述第三方面以及第三方面的各实现方式中的处理数据的方法的各步骤的单元。In a seventh aspect, an apparatus for processing data is provided, wherein the apparatus for processing data may be configured as a third node in the third aspect or may be configured as a third node for the plurality of computer devices, including The third aspect and the units of the steps of the method of processing data in each implementation of the third aspect.
第八方面,提供了一种处理数据的装置,其中,所述处理数据的装置可以配置为第四方面中的第一节点或者可以为多个计算机装置配置为第一节点,包括用于执行上述第四方面以及第四方面的各实现方式中的处理数据的方法的各步骤的单元。In an eighth aspect, an apparatus for processing data is provided, wherein the apparatus for processing data may be configured as a first node in the fourth aspect or may be configured as a first node for a plurality of computer devices, including A unit of each step of the method of processing data in the fourth aspect and the respective implementations of the fourth aspect.
第九方面,提供了一种处理数据的设备,该设备具有实现上述第一至第四方面中的任一方面及其各种实现方式中的各个节点的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多于一个与上述功能相对应的模块。In a ninth aspect, there is provided an apparatus for processing data, the apparatus having the functions of implementing each of the first to fourth aspects and various ones of the various implementations described above. This function can be implemented in hardware or in hardware by executing the corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
第十方面,提供了一种服务器,服务器的结构中包括处理器。该处理器被配置为支持服务器执行上述第一至第四方面中的任一方面及其各种实现方式中的功能,在一个可能的设计中,该服务器还可以包括收发器,用于支持服务器接收或发送信息。在一个可能的设计中,该服务器还可以包括存储器,该存储器用于与处理器耦合,保存服务器必要的程序指令和数据。或者说,该服务器包括存储器和处理器,该存储器用于存储计算机程序,该处理器用于从存储器中调用并运行该计算机程序,使得服务器执行上述第一至第四方面中的任一方面及其各种实现方式中的任一种处理数据的方法。In a tenth aspect, a server is provided, the processor comprising a processor. The processor is configured to support a server to perform the functions of any of the above first to fourth aspects and various implementations thereof. In one possible design, the server may further include a transceiver for supporting the server Receive or send a message. In one possible design, the server may also include a memory for coupling with the processor to store the necessary program instructions and data for the server. Alternatively, the server includes a memory and a processor for storing a computer program for calling and running the computer program from the memory, such that the server performs any of the above first to fourth aspects and A method of processing data in any of various implementations.
第十一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有程序,所述程序使得服务器执行上述第一至第四方面中的任一方面及其各种实现方式中的任一种处理数据的方法。或者说,该计算机可读存储介质用于储存为上述服务器所用的计算机软件指令,其包含用于执行上述第一方面的方法所设计的程序。In an eleventh aspect, a computer readable storage medium storing a program causing a server to perform any of the above first to fourth aspects and various implementations thereof Any of the methods of processing data. Alternatively, the computer readable storage medium is for storing computer software instructions for use in the server described above, comprising a program designed to perform the method of the first aspect described above.
第十二方面,提供了一种芯片系统,该芯片系统包括处理器,用于支持服务器实现上述第一至第四方面中的任一方面及其各种实现方式中所涉及的功能。In a twelfth aspect, a chip system is provided, the chip system comprising a processor for supporting a server to implement the functions involved in any of the first to fourth aspects described above and various implementations thereof.
从而,本申请提出的处理数据的方法、处理数据的装置和处理数据的设备,在节点的信用值满足预设值时,能够降低区块链网络中共识算法的难度。Therefore, the method for processing data, the device for processing data, and the device for processing data proposed by the present application can reduce the difficulty of the consensus algorithm in the blockchain network when the credit value of the node satisfies a preset value.
图1是适用本申请实施例的处理数据的方法和装置的区块链网络的一例的示意图;1 is a schematic diagram showing an example of a blockchain network of a method and apparatus for processing data according to an embodiment of the present application;
图2是工作量证明的示意性流程图;Figure 2 is a schematic flow chart of proof of workload;
图3是本申请实施例提供的一种数据处理方法示意图;3 is a schematic diagram of a data processing method according to an embodiment of the present application;
图4是本申请实施例提供的另一种数据处理方法示意图;4 is a schematic diagram of another data processing method provided by an embodiment of the present application;
图5是本申请实施例提供的另一种数据处理方法示意图;FIG. 5 is a schematic diagram of another data processing method according to an embodiment of the present application; FIG.
图6是本申请实施例提供的另一种数据处理方法示意图;6 is a schematic diagram of another data processing method provided by an embodiment of the present application;
图7是本申请实施例提供的另一种数据处理方法示意图;FIG. 7 is a schematic diagram of another data processing method provided by an embodiment of the present application; FIG.
图8是本申请实施例的数据处理装置的一例的示意性框图;8 is a schematic block diagram of an example of a data processing device according to an embodiment of the present application;
图9是本申请实施例的数据处理装置的另一例的示意性框图;9 is a schematic block diagram of another example of a data processing device according to an embodiment of the present application;
图10是本申请实施例的数据处理装置的另一例的示意性框图。FIG. 10 is a schematic block diagram of another example of the data processing device of the embodiment of the present application.
下面将结合附图,对本申请中的技术方案进行描述。The technical solutions in the present application will be described below with reference to the accompanying drawings.
本申请实施例提供的缓存数据的方法,可以应用于计算机上,该计算机包括硬件层、运行在硬件层之上的操作系统层,以及运行在操作系统层上的应用层。The method for caching data provided by the embodiment of the present application can be applied to a computer, which includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer.
该硬件层包括中央处理器(Central Processing Unit,CPU)、内存管理单元(Memory Management Unit,MMU)和内存(也称为主存)等硬件。The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and a memory (also referred to as main memory).
该操作系统可以是任意一种或多种通过进程(Process)实现业务处理的计算机操作系 统,例如,Linux操作系统、Unix操作系统、Android操作系统、iOS操作系统或windows操作系统等。The operating system may be any one or more computer operating systems that implement business processing through a process, such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a Windows operating system.
该应用层包含浏览器、通讯录、文字处理软件、即时通信软件等应用。并且,本申请实施例并未对本申请实施例提供的方法的执行主体的具体结构特别限定,只要能够通过运行记录有本申请实施例的提供的方法的代码的程序,以根据本申请实施例提供的方法进行通信即可,例如,本申请实施例提供的方法的执行主体可以是计算机设备,或者,是计算机设备中能够调用程序并执行程序的功能模块。The application layer includes applications such as browsers, contacts, word processing software, and instant messaging software. Moreover, the specific structure of the execution body of the method provided by the embodiment of the present application is not particularly limited as long as the program of the code of the method provided by the embodiment of the present application can be run by using the program according to the present application. The method can be communicated. For example, the execution body of the method provided by the embodiment of the present application may be a computer device or a functional module of the computer device capable of calling a program and executing the program.
并且,在本申请实施例中,该计算机设备可以是智能手机等手持设备,也可以是个人计算机等终端设备,或者,该计算机也可以是服务器,本申请实施例并未特别限定,只要能够通过运行记录有本申请实施例的处理数据的方法的代码,以根据本申请实施例的处理数据的方法处理数据即可。In addition, in the embodiment of the present application, the computer device may be a handheld device such as a smart phone, or may be a terminal device such as a personal computer, or the computer may be a server. The code of the method of processing the data of the embodiment of the present application is run, and the data is processed by the method of processing data according to the embodiment of the present application.
其中,服务器,也称伺服器,是提供计算服务的设备。由于服务器需要响应服务请求,并进行处理,因此一般来说服务器应具备承担服务并且保障服务的能力。服务器的构成包括处理器、硬盘、内存、系统总线等,和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。本申请实施例的路径检测的执行主体可以是计算机设备,或者,是计算机设备中能够调用程序并执行程序的功能模块。Among them, the server, also called the server, is a device that provides computing services. Since the server needs to respond to service requests and process them, the server should generally have the ability to take on the service and secure the service. The server consists of a processor, a hard disk, a memory, a system bus, etc., similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power, stability, reliability, security, scalability, and Management and other aspects are more demanding. The execution subject of the path detection in the embodiment of the present application may be a computer device or a functional module in the computer device capable of calling a program and executing the program.
本文所描述的节点是指能够进行共识运算、存储数据、转发数据、验证数据等行为的基本单元,可以由一台或多台计算机装置组成,例如,可以是计算机、便携式计算机、服务器、穿戴设备等。The nodes described in this document are basic units capable of performing consensus operations, storing data, forwarding data, verifying data, etc., and may be composed of one or more computer devices, for example, computers, portable computers, servers, wearable devices. Wait.
在本申请实施例中,该区块链网络100包括区块链网络设备用于执行共识机制的架构,如图1所示。In the embodiment of the present application, the blockchain network 100 includes an architecture of a blockchain network device for performing a consensus mechanism, as shown in FIG. 1.
如图1所示该区块链网络100包括节点130。The blockchain network 100 includes a node 130 as shown in FIG.
节点130(包括如图1所示的节点130a-节点130e),图中的节点130可以简单的理解为电脑或者服务器,但不限于电脑或者服务器。The node 130 (including the node 130a-node 130e shown in FIG. 1), the node 130 in the figure can be simply understood as a computer or a server, but is not limited to a computer or a server.
在本申请实施例中,各节点130彼此之间通信连接。In the embodiment of the present application, each node 130 is in communication connection with each other.
从而,各节点130可以基于通信连接,基于协商机制进行决策。Thus, each node 130 can make a decision based on a negotiation mechanism based on the communication connection.
例如,该区块链网络100中的部分(例如,至少两个)或全部节点130之间能够针对由一个或多个节点发起的判定的协商,从而确定该判定的结果。For example, a portion (eg, at least two) or all of the nodes 130 in the blockchain network 100 can negotiate a decision initiated by one or more nodes to determine the outcome of the determination.
例如,在本申请实施例中,每个参与协商的节点可基于预设的判定规则针对某一事件的判定,从而,每个参与协商的节点可以分别得到针对该事件的判定结果,例如,该判定结果可以为“是”或“否”。这里,需要说明的是,参与协商的各节点使用的判定规则可以相同也可以不同,本申请并未特别限定。For example, in the embodiment of the present application, each node participating in the negotiation may determine a certain event based on a preset determination rule, so that each node participating in the negotiation may respectively obtain a determination result for the event, for example, the The determination result can be "yes" or "no". Here, it should be noted that the determination rules used by the nodes participating in the negotiation may be the same or different, and the present application is not particularly limited.
其后,参与协商的各节点之间可以进行通信,以确定参与协商的各节点的判定结果。从而,能够基于参与协商的各节点判定结果的分布,确定区块链网络100做出的针对该事件的最终判定结果。作为示例而非限定,该区块链网络100可以是基于区块链技术实现上述协商机制。Thereafter, communication between the nodes participating in the negotiation may be performed to determine the determination result of each node participating in the negotiation. Thereby, the final determination result for the event made by the blockchain network 100 can be determined based on the distribution of the determination results of the respective nodes participating in the negotiation. By way of example and not limitation, the blockchain network 100 may implement the above-described negotiation mechanism based on blockchain techniques.
区块链网络100,区块链网络100是由上述节点130构成的,从图1中可以看出各个 节点之间是平等的,没有一个节点是中心节点,即,在区块链网络中不需要中心化。区块链是一种去中心化的数据库区块链网络由数据层、网络层、共识层、激励层、合约层和应用层组成。其中,数据层封装了底层数据区块以及相关的数据加密和时间戳等技术,网络层则包括分布式组网机制、数据传播机制和数据验证机制等,共识层主要封装网络节点的各类共识算法,激励层将经济因素集成到区块链技术体系中来,主要包括经济激励的发行机制和分配机制等。合约层主要封装各类脚本、算法和智能合约,是区块链可编程特性的基础;应用层则封装了区块链的各种应用场景和案例。该模型中,基于时间戳的链式区块结构、分布式节点的共识机制、基于共识计算能力的经济激励和灵活可编程的智能合约是区块链技术最具代表性的创新点。The blockchain network 100, the blockchain network 100 is constituted by the above-mentioned node 130. It can be seen from FIG. 1 that each node is equal, and no node is a central node, that is, not in the blockchain network. Need to be centralized. A blockchain is a decentralized database blockchain network consisting of a data layer, a network layer, a consensus layer, an incentive layer, a contract layer, and an application layer. The data layer encapsulates the underlying data block and related data encryption and time stamping technologies. The network layer includes a distributed networking mechanism, a data propagation mechanism, and a data verification mechanism. The consensus layer encapsulates various types of consensus of network nodes. The algorithm, the incentive layer integrates economic factors into the blockchain technology system, mainly including the issuance mechanism and distribution mechanism of economic incentives. The contract layer mainly encapsulates various scripts, algorithms and smart contracts, and is the basis of the blockchain programmable features; the application layer encapsulates various application scenarios and cases of the blockchain. In this model, the time-stamp-based chain block structure, the consensus mechanism of distributed nodes, the economic incentives based on consensus computing capabilities, and the flexible and programmable smart contracts are the most representative innovations of blockchain technology.
应理解,图1中所示的区块链网络100由上述节点130构成只是一个区块链网络的例子,在另一些实施例中,构成区块链网络的节点的数目可以与图1中所示的不同。It should be understood that the blockchain network 100 shown in FIG. 1 is constituted by the above-mentioned node 130 as an example of only one blockchain network. In other embodiments, the number of nodes constituting the blockchain network may be the same as that in FIG. The difference is shown.
区块链网络根据应用场景和设计体系的不同,一般分为公有链、联盟链和专有链。其中:The blockchain network is generally divided into a public chain, an alliance chain, and a proprietary chain according to different application scenarios and design systems. among them:
公有链的各个节点可以自由加入和退出网络,并参加链上数据的读写,运行时以扁平的拓扑结构互联互通,网络中不存在任何中心化的服务端节点。Each node of the public chain can freely join and exit the network, and participate in the reading and writing of data on the chain. The runtime is interconnected in a flat topology, and there is no centralized server node in the network.
联盟链的各个节点通常有与之对应的实体机构组织,通过授权后才能加入与退出网络。各机构组织组成利益相关的联盟,共同维护区块链的健康运转。Each node of the alliance chain usually has an organization corresponding to it, and can only join and exit the network after authorization. Each organization organizes an interest-based alliance to jointly maintain the healthy operation of the blockchain.
专有链的各个节点的写入权限收归内部控制,而读取权限可视需求有选择性地对外开放。专有链仍然具备区块链多节点运行的通用结构,适用于特定机构的内部数据管理与审计。The write permission of each node of the proprietary chain is controlled internally, and the read permission is selectively open to the public. The proprietary chain still has a common structure for multi-node operation of the blockchain, which is suitable for internal data management and auditing of specific organizations.
区块链技术不是单项的技术,而是作为点对点传输、共识机制、分布式数据存储和密码学原理集成应用的系统,该系统具有全公开和防篡改的技术特性。Blockchain technology is not a single-item technology, but a system that integrates applications as a point-to-point transmission, consensus mechanism, distributed data storage, and cryptography principles. The system has full-featured and tamper-proof technical features.
第一、点对点传输:参与区块链的节点是独立的、对等的,节点与节点之间通过点对点传输技术实现数据和信息的同步。节点可以是不同的物理机器,也可以是云端不同的实例。First, point-to-point transmission: the nodes participating in the blockchain are independent and peer-to-peer, and the nodes and nodes synchronize data and information through point-to-point transmission technology. Nodes can be different physical machines or different instances of the cloud.
第二、共识机制:区块链的共识机制是指多方参与的节点在预设的逻辑规则下,通过节点间的交互实现各节点对特定数据和信息达成一致的过程。共识机制需要依赖于良好设计的算法,因此不同的共识机制性能(如:交易的吞吐量(Transaction Per Second,TPS)交易/秒、达成共识的时延、耗费的计算资源、耗费的传输资源等)存在一定的差异。Second, the consensus mechanism: the consensus mechanism of the blockchain refers to the process in which the nodes participating in the multi-party participate in the agreement of specific data and information through the interaction between the nodes under the preset logic rules. The consensus mechanism needs to rely on well-designed algorithms, so different consensus mechanism performance (such as Transaction Per Second (TPS) transactions / sec, consensus delay, costly computing resources, costly transmission resources, etc. There are certain differences.
第三、分布式数据存储:区块链中的分布式存储是参与该区块链的节点各自都存有独立的、完整的数据,保证了数据存储在节点间全公开。与传统的分布式数据存储不同,传统的分布式数据存储按照一定规则将数据分成多份进行备份或同步存储,而区块链分布式数据存储则依赖于区块链中各地位对等的、独立的节点间的共识来实现高一致性的数据存储。Third, distributed data storage: Distributed storage in the blockchain is that each node participating in the blockchain has independent and complete data, which ensures that the data is stored in the entire node. Unlike traditional distributed data storage, traditional distributed data storage divides data into multiple copies for backup or synchronous storage according to certain rules, while blockchain distributed data storage relies on peer-to-peer in the blockchain. A consensus between independent nodes to achieve highly consistent data storage.
第四、密码学原理:区块链通常是基于非对称加密技术实现可信的信息传播、校验等。Fourth, the principle of cryptography: blockchain is usually based on asymmetric encryption technology to achieve reliable information dissemination, verification and so on.
其中“区块”的概念是将一条或多条数据记录以“块”的形式组织,“区块”的大小可以根据实际应用场景自定义;而“链”是一种数据结构,该数据结构将存储数据记录的“区块”按照时间顺序并以哈希(HASH)技术相连。在区块链中,每个“区块”包含“区 块头”和“区块体”两个部分,其中“区块体”包含打包进“区块”的交易记录;“区块头”包含“区块”中所有交易的根HASH和前一“区块”的HASH。区块链的数据结构保证了区块链上存储的数据具有不可篡改的特性。The concept of "block" is to organize one or more data records in the form of "blocks". The size of "blocks" can be customized according to the actual application scenario; and "chain" is a data structure, the data structure The "tiles" that store the data records are chronologically connected and connected by Hash technology. In the blockchain, each "block" contains two parts, "block header" and "block body", where "block body" contains transaction records packed into "blocks"; "block headers" contain " The root HASH of all transactions in the block and the HASH of the previous "block". The data structure of the blockchain ensures that the data stored on the blockchain has non-tamperable characteristics.
本申请中对于区块链的构成并不限制,例如,本申请可以应用于上述公有链、联盟链或专有链,本申请主要涉及的是区块链中的上述共识机制。下面首先介绍一下区块链中的共识机制。The composition of the blockchain in the present application is not limited. For example, the present application can be applied to the above-mentioned public chain, alliance chain or proprietary chain. The present application mainly relates to the above-mentioned consensus mechanism in the blockchain. Let's first introduce the consensus mechanism in the blockchain.
区块链要成为一个难以攻破的、公开的、不可篡改数据记录的去中心化诚实可信系统,需要在尽可能短的时间内做到分布式数据记录的安全、明确及不可逆,提供一个最坚实且去中心化的系统。在实践中,该流程分为两个方面:Blockchain should become a decentralized, open, non-tamperable data record decentralized honest and trustworthy system, which needs to be as secure, clear and irreversible as possible in the shortest possible time. Solid and decentralized system. In practice, the process is divided into two areas:
(1)、选择一个独特的节点来产生一个区块;(1) Select a unique node to generate a block;
(2)、使分布式数据记录不可逆。(2) Make distributed data records irreversible.
实现上述流程的技术核心就是:共识机制。共识机制是区块链节点就区块信息达成全网一致共识的机制,可以保证最新区块被准确添加至区块链、节点存储的区块链信息一致不分叉甚至可以抵御恶意攻击。The core of the technology to achieve the above process is: consensus mechanism. The consensus mechanism is a mechanism in which the blockchain nodes reach a consensus on the whole network for the block information, which can ensure that the latest block is accurately added to the blockchain, and the blockchain information stored by the node is consistent and non-forked and can also resist malicious attacks.
当前主流的共识机制包括:工作量证明、权益证明、工作量证明与权益证明混合、股份授权证明、瑞波共识协议等。The current mainstream consensus mechanisms include: workload proof, equity certificate, workload proof and equity certificate mix, share authorization certificate, and Ruibo consensus agreement.
下面以工作量证明为例,结合图2简单介绍一下目前区块链中的共识机制。Let's take the workload proof as an example, and briefly introduce the consensus mechanism in the current blockchain with Figure 2.
图2是工作量证明的示意性流程图。该示意图包括S210-S240。Figure 2 is a schematic flow chart of the proof of workload. The schematic includes S210-S240.
工作量证明的基本原理:工作量证明系统主要特征是客户端(节点)需要做一定难度的工作得出一个结果,验证方却很容易通过结果来检查出客户端是不是做了相应的工作。这种方案的一个核心特征是不对称性:工作对于请求方是适中的,对于验证方则是易于验证的。它与验证码不同,验证码的设计出发点是易于被人类解决而不易被计算机解决。下面对S210-S240四个步骤进行详细的介绍。The basic principle of workload proof: The main feature of the workload proof system is that the client (node) needs to do a certain difficulty to get a result, but the verifier can easily check whether the client has done the corresponding work through the result. A core feature of this approach is asymmetry: work is moderate for the requester and easy to verify for the verifier. Unlike the verification code, the verification code is designed to be easily solved by humans and not easily solved by computers. The four steps of S210-S240 are described in detail below.
S210,节点获取数据记录。S210. The node acquires a data record.
在区块链中,各个节点会监听全网数据记录,将通过基本合法性验证的数据记录进行暂存。In the blockchain, each node listens to the entire network data record and temporarily stores the data record verified by the basic legality.
S220,节点计算目标值。S220, the node calculates a target value.
节点消耗自身计算能力尝试不同的随机数(Nonce),进行指定哈希计算,并不断重复该过程直至找到合理的随机数,例如,给定的一个基本的字符串"Hello,world!",区块链网络给出的工作量要求是,可以在这个字符串后面添加一个叫做Nonce的整数值,对变更后(添加Nonce)的字符串进行SHA256哈希运算,如果得到的目标值是哈希结果(以16进制的形式表示)以"0000"开头的,则验证通过。为了达到这个工作量证明的目标,进行工作量证明计算的节点需要不停的变更Nonce值,对得到的新字符串进行SHA256哈希运算。按照这个规则,我们需要经过4251次计算才能找到恰好前4位为0的哈希散列。The node consumes its own computing power to try different random numbers (Nonce), performs the specified hash calculation, and repeats the process until a reasonable random number is found, for example, a given basic string "Hello, world!" The workload requirement given by the blockchain network is that you can add an integer value called Nonce after the string, and perform a SHA256 hash on the changed (added Nonce) string if the resulting target value is a hash result. (in hexadecimal form) starting with "0000", the verification is passed. In order to achieve the goal of this workload proof, the node performing the workload proof calculation needs to continuously change the Nonce value and perform a SHA256 hash operation on the obtained new string. According to this rule, we need to calculate 4251 times to find a hash hash with the first 4 digits being 0.
S230,节点生成区块信息。S230. The node generates block information.
节点找到合理的随机数后,生成区块信息。生成区块信息包括:输入区块头信息,以及输入区块记录信息到生成的区块信息中。区块头信息包括版本号、上一区块的散列值等信息。区块记录信息包括交易列表附加在区块头信息后面。After the node finds a reasonable random number, it generates block information. Generating the block information includes: inputting the block header information, and inputting the block record information into the generated block information. The block header information includes the version number, the hash value of the previous block, and the like. The block record information includes a list of transactions appended to the block header information.
S240,节点广播区块信息。S240. The node broadcasts block information.
节点生成区块信息后,在区块链网络中将区块信息广播出去。区块链网络中的其他节点验证该区块信息通过后,将该区块信息连接至区块链中,主链高度加一,然后区块链网络中所有节点切换至新区块链后面继续进行工作量证明计算产生新的区块信息。After the node generates the block information, the block information is broadcasted in the blockchain network. After the other nodes in the blockchain network verify that the block information is passed, the block information is connected to the blockchain, and the height of the main chain is increased by one, and then all the nodes in the blockchain network are switched to the new blockchain to continue. The workload proof calculation produces new block information.
工作量证明体现在S220中,节点需要不断消耗计算能力,进行哈希计算,以找到期望的随机数。如果两个节点在同一时间广播区块信息,那么区块链网络中的节点将根据后续节点的区块信息生成情况来确定哪个区块构建最终区块链,置于如何选择本申请不做限制。The proof of workload is reflected in S220. Nodes need to continuously consume computing power and perform hash calculation to find the desired random number. If two nodes broadcast block information at the same time, the nodes in the blockchain network will determine which block constructs the final blockchain according to the block information generation of the subsequent nodes, and how to choose this application without limitation. .
其工作量主要体现在:一个符合要求的区块随机数由N个前导零构成,零的个数取决于网络的难度值。要得到合理的随机数需要经过大量尝试计算,计算时间取决于机器的哈希运算速度。当某个节点提供出一个合理的随机数值,说明该节点确实经过了大量的尝试计算。The workload is mainly reflected in: a random number of blocks that meet the requirements is composed of N leading zeros, and the number of zeros depends on the difficulty value of the network. To get a reasonable random number requires a lot of trial calculations, the calculation time depends on the speed of the machine's hash operation. When a node provides a reasonable random value, the node does undergo a lot of trial calculations.
根据图2中所示的共识机制,各个节点需要通过比拼计算能力计算上述随机值,这是一个消耗资源的过程。随着区块链技术的演进,越来越多的机构开始重视并参与到区块链技术的探索中来。从最初的以比特币、以太坊等公有链项目开源社区,到各种类型的区块链创业公司、风险投资基金、金融机构、信息技术(Information Technology,IT)企业及监管机构,区块链的发展生态也在逐渐得到发展与丰富。在物联网上运用区块链技术时,由于物联网中设备本身对功耗非常敏感,所以上述工作量证明机制制约了区块链物联网的发展。针对上述问题,本申请提出一种能够降低资源消耗的共识机制。According to the consensus mechanism shown in Figure 2, each node needs to calculate the above random value by the competing computing power, which is a process of consuming resources. With the evolution of blockchain technology, more and more organizations have begun to pay attention to and participate in the exploration of blockchain technology. From the original open source community of public chain projects such as Bitcoin and Ethereum, to various types of blockchain startups, venture capital funds, financial institutions, information technology (IT) companies and regulators, blockchain The development ecology is gradually developing and enriching. When the blockchain technology is applied to the Internet of Things, since the device itself in the Internet of Things is very sensitive to power consumption, the above-mentioned workload proof mechanism restricts the development of the blockchain Internet of Things. In response to the above problems, the present application proposes a consensus mechanism capable of reducing resource consumption.
图3是本申请实施例提供的一种数据处理方法示意图。该示意图包括S310和S320,下面对这两个步骤进行详细的描述。FIG. 3 is a schematic diagram of a data processing method according to an embodiment of the present application. The schematic diagram includes S310 and S320, which are described in detail below.
S310,第一节点确定该第一节点的第一信用值。S310. The first node determines a first credit value of the first node.
可选地,第一节点根据当前所属的第一区块链网络中的共识认证记录,确定该第一节点的第一信用值,所述第一信用值为所述第一节点在第一时刻的信用值,第一时刻可以是当前计算信用值的时刻,也可以是在一个时间段内的任意一个时刻,在该时间段内第一节点的第一信用值大小一致。Optionally, the first node determines, according to the consensus authentication record in the first blockchain network to which the first node belongs, the first credit value of the first node, where the first credit value is the first node at the first moment. The first time may be the time at which the credit value is currently calculated, or may be any time in a time period during which the first credit value of the first node is the same size.
可选地,在一些实施例中,第一节点确定第一信用值包括:第一节点根据当前所属的第一区块链网络中的共识机制的累加机制确定第一信用值的累加算法,再根据第一信用值的累加算法计算第一信用值。Optionally, in some embodiments, the determining, by the first node, the first credit value includes: determining, by the first node, an accumulation algorithm of the first credit value according to an accumulation mechanism of a consensus mechanism in the first blockchain network that belongs to the current node, and then The first credit value is calculated according to an accumulation algorithm of the first credit value.
可选地,在一些实施例中,第一节点根据第一节点认证的交易量的多少计算第一信用值。Optionally, in some embodiments, the first node calculates the first credit value according to the amount of transaction amount authenticated by the first node.
可选地,在另一些实施例中,第一节点根据第一节点认证的交易费率确定第一节点可以累加的信用值,根据可以累加的信用值累加得到第一信用值。Optionally, in other embodiments, the first node determines, according to the transaction rate of the first node authentication, a credit value that the first node can accumulate, and accumulates the first credit value according to the credit value that can be accumulated.
可选地,第一节点依据上述认证的交易量的多少或者交易费率确定第一节点可以累加的信用值时,可以根据第一节点历史认证交易中,对高费用交易、中费用交易或者低费用交易的比重作为其累加计算信用值的权重,以鼓励区块链网络中的节点处理低费用的小交易。Optionally, when the first node determines the credit value that the first node can accumulate according to the amount of the verified transaction volume or the transaction rate, the first node may perform the high-rate transaction, the medium-cost transaction, or the low according to the first node history authentication transaction. The proportion of the expense transaction is used as the weight of its accumulated calculated credit value to encourage nodes in the blockchain network to handle small transactions with low fees.
例如,第一节点根据认证记录计算第一信用值时,在历史认证交易中,使认证高费用 交易在累加计算第一信用值的权重为1/6,认证中费用交易在累加计算第一信用值的权重为1/3,认证低费用交易在累加计算第一信用值的权重为1/2,这样在根据历史认证交易计算信用值时,低费用交易占比较大可以鼓励节点处理低费用的小交易,因为这样在后续计算信用值时累加权重大。For example, when the first node calculates the first credit value according to the authentication record, in the historical authentication transaction, the weight of the authentication high-rate transaction is calculated by accumulating the first credit value to be 1/6, and the fee transaction in the authentication is cumulatively calculating the first credit. The weight of the value is 1/3, and the weight of the certified low-cost transaction in calculating the first credit value is 1/2, so that when the credit value is calculated according to the historical authentication transaction, the low-cost transaction accounts for a relatively large amount, which can encourage the node to handle the low cost. Small transactions, because this is heavily weighted when the credit value is subsequently calculated.
应理解,上述第一节点根据认证记录计算第一信用值只是一种举例的形式,不能限制本申请的保护范围,其他能够确认第一信用值大小的方法也在本申请的保护范围之内。It should be understood that the foregoing first node calculates the first credit value according to the authentication record, which is only an exemplary form, and cannot limit the protection scope of the present application. Other methods capable of confirming the size of the first credit value are also within the protection scope of the present application.
可选地,第一节点确定第一信用值可以是周期性进行,也可以是区块链网络中规定各个节点计算信用值的时间,本申请对此并不限定。Optionally, the first node determines that the first credit value may be performed periodically, or may be a time in the blockchain network that specifies each node to calculate the credit value, which is not limited in this application.
S320,第一节点进行工作量证明计算。S320, the first node performs workload proof calculation.
在第一节点确定第一信用值之后,第一节点判断第一信用值与第一预设阈值的大小。After the first node determines the first credit value, the first node determines the size of the first credit value and the first preset threshold.
可选地,在一些实施例中,第一预设阈值可以是系统规定的阈值。Optionally, in some embodiments, the first preset threshold may be a system-defined threshold.
可选地,在另一些实施例中,第一预设阈值可以是区块链网络中的各个节点约定的阈值。Optionally, in other embodiments, the first preset threshold may be a threshold agreed by each node in the blockchain network.
可选的,在一些实施例中,该第一信用值大于该第一预设阈值。在此情况下,该第一节点基于第一目标值进行工作量证明计算,该第一目标值为对应于第一难度的目标值,其中,该第一难度小于基于该预设目标值进行工作量证明计算对应的第二难度。Optionally, in some embodiments, the first credit value is greater than the first preset threshold. In this case, the first node performs a workload proof calculation based on the first target value, where the first target value is a target value corresponding to the first difficulty, wherein the first difficulty is less than working based on the preset target value. The quantity proof calculates the corresponding second difficulty.
例如,假设该第一信用值为11,该第一预设阈值为10,则该第一信用值大于该第一预设阈值。假设在该第一节点基于该预设目标值进行工作量证明计算的情况下,若该第一节点计算的哈希结果是以"0000"开头,则证明验证通过。以"0000"开头的哈希结果就是该预设目标值。那么,在该第一节点基于第一目标值进行工作量证明计算的情况下,若该第一节点计算的哈希结果是以"000"开头,则可以通过验证获得工作量证明。以“000”开头的结果就是该第一目标值。For example, if the first credit value is 11, and the first preset threshold is 10, the first credit value is greater than the first preset threshold. Assuming that the first node performs the workload proof calculation based on the preset target value, if the hash result calculated by the first node starts with "0000", the verification is passed. The hash result starting with "0000" is the preset target value. Then, if the first node performs the workload proof calculation based on the first target value, if the hash result calculated by the first node starts with "000", the workload proof can be obtained by verification. The result starting with "000" is the first target value.
可选地,第一节点基于第一目标值进行工作量计算证明计算之前,接收第一交易信息,所述第一交易信息中包含信用需求值信息,所述信用需求信息用于指示第一交易信息被区块链网络中节点进行共识确认所要求的信用值,其中,第一交易信息可以是整个区块链里包含的交易的数量,第一交易信息包括在区块链中的区块头里,第一节点能够根据区块头获取第一交易信息。Optionally, the first node receives the first transaction information, where the first transaction information includes credit demand value information, where the first node information is used to indicate the first transaction. The information is determined by the nodes in the blockchain network to confirm the required credit value, wherein the first transaction information may be the number of transactions included in the entire blockchain, and the first transaction information is included in the block header in the blockchain. The first node is capable of acquiring the first transaction information according to the block header.
可选地,第一节点确定所述第一信用值大于或等于所述第一交易信息中包含的信用值,则所述第一节点可以与区块链网络中的其他节点竞争第一交易信息的共识确认权,并在获得共识确认权后在生成的区块中包含所述第一交易信息。Optionally, the first node determines that the first credit value is greater than or equal to a credit value included in the first transaction information, and the first node may compete with other nodes in the blockchain network for the first transaction information. The consensus confirmation right, and the first transaction information is included in the generated block after obtaining the consensus confirmation right.
可选地,在一些实施例中,该第一信用值的小于或者等于该第一预设阈值。在此情况下,该第一节点基于预设目标值进行工作量证明计算,该预设目标值为对应于第二难度的目标值。Optionally, in some embodiments, the first credit value is less than or equal to the first preset threshold. In this case, the first node performs a workload proof calculation based on the preset target value, and the preset target value is a target value corresponding to the second difficulty.
例如,假设该第一信用值为9,该第一预设阈值为10,则该第一信用值小于该第一预设阈值。假设在该第一节点基于该预设目标值进行工作量证明计算的情况下,若该第一节点计算的哈希结果是以"0000"开头,则证明验证通过。以"0000"开头的哈希结果就是该预设目标值。那么,在该第一节点基于预设目标值进行工作量证明计算的情况下,需要得到哈希结果是以"0000"开头,才可以通过验证获得工作量证明。For example, if the first credit value is 9, and the first preset threshold is 10, the first credit value is less than the first preset threshold. Assuming that the first node performs the workload proof calculation based on the preset target value, if the hash result calculated by the first node starts with "0000", the verification is passed. The hash result starting with "0000" is the preset target value. Then, in the case that the first node performs the workload proof calculation based on the preset target value, the hash result needs to start with "0000", and the workload proof can be obtained through verification.
第一节点计算出以"0000"开头的哈希结果的难度要高于计算出以“000”开头的哈希结果的难度。因此,该第一节点基于第一目标值进行工作量证明计算的难度要低于第一节点基于该预设目标值进行工作量证明计算的难度。因此,第一节点基于第一目标值进行工作量证明计算的时候,计算的次数可以少于第一节点基于预设目标值进行工作量证明计算的次数。The difficulty of calculating the hash result starting with "0000" by the first node is higher than the difficulty of calculating the hash result starting with "000". Therefore, the difficulty of the first node performing the workload proof calculation based on the first target value is lower than the difficulty of the first node performing the workload proof calculation based on the preset target value. Therefore, when the first node performs the workload proof calculation based on the first target value, the number of calculations may be less than the number of times the first node performs the workload proof calculation based on the preset target value.
可选地,在一些实施例中,第一节点基于第一目标值进行工作量证明计算之前,第一节点确定所述第一节点连续基于第一目标值进行工作量证明计算的次数小于N次,其中N为大于0的整数。Optionally, in some embodiments, before the first node performs the workload proof calculation based on the first target value, the first node determines that the first node continuously performs the workload proof calculation based on the first target value less than N times Where N is an integer greater than zero.
例如,在第一节点连续使用两次基于第一目标值进行工作量证明计算之后,系统规定即使第一节点的第一信用值大于第一预设阈值值,第一节点再次基于第一目标值进行工作量证明计算获得共识确认权后广播的区块信息将不被区块链网络中的其他节点接受。For example, after the first node continuously uses the workload verification calculation based on the first target value twice, the system provides that the first node is again based on the first target value even if the first credit value of the first node is greater than the first preset threshold value. The block information broadcast after the workload proof calculation is obtained with the consensus confirmation right will not be accepted by other nodes in the blockchain network.
可选地,在另一些实施例中,第一节点基于第一目标值进行工作量证明计算之前,第一节点确定所述第一节点连续基于预设目标值进行工作量证明计算的次数大于M次,其中M为大于0的整数。Optionally, in other embodiments, before the first node performs the workload proof calculation based on the first target value, the first node determines that the first node continuously performs the workload proof calculation based on the preset target value by more than M. Times, where M is an integer greater than zero.
例如,在第一节点连续使用两次基于预设目标值进行工作量证明计算之后,第一节点的第一信用值大于第一预设阈值的情况下,第一节点可以基于第一目标值进行工作量证明计算获得共识确认权。For example, after the first node continuously uses the workload proof calculation based on the preset target value twice, if the first credit value of the first node is greater than the first preset threshold, the first node may perform the first target value based on the first target value. The workload proof calculation is subject to consensus confirmation.
可选地,第一节点基于第一目标值进行工作量证明计算之前,第一节点确定Y个时间单位内第一节点基于预设目标值或第二目标值进行工作量证明计算,其中,基于第二目标值进行工作量证明计算的难度小于基于预设目标值进行工作量证明计算的难度且大于基于第一目标值进行工作量证明计算的难度,其中Y为大于0的整数。一个时间单位可以是1ms、0.5ms、2ms、5ms等,本申请实施例对时间单位的具体长度并不限制。例如,以1ms为一个时间单位,可以确定2ms内第一节点是基于预设目标值或第二目标值进行工作量证明计算之后第一节点可以基于第一目标值进行工作量证明计算。Optionally, before the first node performs the workload proof calculation based on the first target value, the first node determines that the first node performs the workload proof calculation based on the preset target value or the second target value in the Y time units, where The difficulty of the second target value for performing the workload proof calculation is less than the difficulty of performing the workload proof calculation based on the preset target value and greater than the difficulty of the workload proof calculation based on the first target value, where Y is an integer greater than 0. A time unit may be 1 ms, 0.5 ms, 2 ms, 5 ms, etc., and the specific length of the time unit is not limited in the embodiment of the present application. For example, with 1 ms as a time unit, it can be determined that the first node can perform the workload proof calculation based on the first target value after the first node is performing the workload proof calculation based on the preset target value or the second target value within 2 ms.
例如,在第一节点连续两个时间单位内基于第一目标值进行工作量证明计算之后,系统规定即使第一节点的第一信用值大于第一预设阈值,第一节点再次基于第一目标值进行工作量证明计算获得共识确认权后广播的区块信息将不被区块链网络中的其他节点接受。For example, after performing the workload proof calculation based on the first target value in two consecutive time units of the first node, the system specifies that the first node is based on the first target again even if the first credit value of the first node is greater than the first preset threshold. The value of the workload proof that the block information broadcast after obtaining the consensus confirmation right will not be accepted by other nodes in the blockchain network.
具体地说,以图1中区块链网络为例节点130a已经连续两次,或者,连续两个时间单位内进行工作量证明计算的时候是得到的计算结果是一个前3位为0的哈希散列,节点130a进行工作量证明计算之后会生成区块信息并广播区块信息,那么,节点130a再次以得到的计算结果是一个前3位为0的哈希散列进行工作量证明计算并广播区块信息,图1中的其他节点(如图1所示的节点130b-节点130n)将不接受节点130a广播的区块信息。Specifically, taking the blockchain network in FIG. 1 as an example, the node 130a has been successively twice, or when the workload proof calculation is performed in two consecutive time units, the obtained calculation result is that the first three digits are 0. In the hash, after the node 130a performs the workload proof calculation, the block information is generated and the block information is broadcasted. Then, the node 130a performs the workload proof calculation again with the hash result of the first 3 digits being 0. And the block information is broadcast, and other nodes in FIG. 1 (node 130b-node 130n as shown in FIG. 1) will not accept the block information broadcast by node 130a.
可选地,为了使得第一节点不会连续基于第一目标值进行工作量证明计算,在第一节点第一次基于第一目标值进行工作量证明计算之后,将上述第一信用值减去一个相应的量,得到一个新的信用值。Optionally, in order to prevent the first node from continuously performing the workload proof calculation based on the first target value, after the first node performs the workload proof calculation based on the first target value for the first time, the first credit value is subtracted A corresponding amount, get a new credit value.
可选的,在一些实施例中,所述相应的量的大小可以是区块链网络规定的预设的信用消耗值。Optionally, in some embodiments, the size of the corresponding quantity may be a preset credit consumption value specified by the blockchain network.
可选的,在一些实施例中,所述相应的量的大小可以是区块链网络中各个节点之间约 定的预设的信用消耗值。Optionally, in some embodiments, the size of the corresponding quantity may be a predetermined preset credit consumption value between respective nodes in the blockchain network.
可选的,在一些实施例中,所述相应的量的大小可以是第一节点基于第一目标值进行工作量证明计算获得共识确认权时消耗的信用值。Optionally, in some embodiments, the size of the corresponding quantity may be a credit value that is consumed when the first node performs a workload verification calculation based on the first target value to obtain a consensus confirmation right.
可选的,第一节点可以将新的信用值的信息包括在广播的区块信息中,使得区块链网络中的其他节点能够得知第一节点新的信用值,第一节点再次进行工作量证明计算之前会判断新的信用值与第一预设阈值的大小,工作量证明计算与上述确定第一信用值之后的方法类似,这里不再赘述。Optionally, the first node may include the information of the new credit value in the broadcasted block information, so that other nodes in the blockchain network can learn the new credit value of the first node, and the first node works again. Before the calculation of the quantity proof, the new credit value and the size of the first preset threshold are determined, and the workload proof calculation is similar to the method after determining the first credit value, and details are not described herein again.
可选地,第一节点在获得共识确认权生成区块信息之后,将上述第一信用值在所属的区块链网络中广播,例如,在生成的区块信息中增加上述第一信用值。Optionally, after obtaining the consensus confirmation right to generate the block information, the first node broadcasts the first credit value in the associated blockchain network, for example, adding the first credit value to the generated block information.
可选地,在一些实施例中,所述第一节点在生成的区块信息中增加上述第一信用值可以是在每次获得共识确认权产生新区块信息时,都将信用值记录在新区块信息中,更新自己的信用值。Optionally, in some embodiments, the adding, by the first node, the first credit value in the generated block information may be that the credit value is recorded in the new area each time the consensus confirmation right is generated to generate new block information. In the block information, update your own credit value.
可选地,在一些实施例中,所述第一节点在生成的区块信息中增加上述第一信用值也可以是通过预设的控制机制,例如周期性或者满足信用值累加门限后再增加信用值,本申请对此不做限制。Optionally, in some embodiments, the adding, by the first node, the foregoing first credit value in the generated block information may also be performed by using a preset control mechanism, such as periodically or satisfying a credit value accumulation threshold. Credit value, this application does not limit this.
第一节点将上述第一信用值广播之后,第一节点所属的区块链网络中其他节点会对第一节点广播的第一信用值进行共识认证,即判断第一节点是否能够基于第一信用值进行工作量证明,如果共识认证通过则全网节点接受第一节点基于第一信用值进行工作量证明生成的区块。After the first node broadcasts the first credit value, the other nodes in the blockchain network to which the first node belongs may perform consensus authentication on the first credit value broadcast by the first node, that is, whether the first node can be based on the first credit. The value carries out the workload proof. If the consensus authentication is passed, the whole network node accepts the block generated by the first node based on the first credit value for the workload proof.
应理解,第一节点可以是图1中所示的区块链网络中的任意一个节点130,不能限制本申请的保护范围。It should be understood that the first node may be any one of the node chains 130 in the blockchain network shown in FIG. 1, and the scope of protection of the present application is not limited.
图4是本申请实施例提供的另一种数据处理方法示意图。该示意图包括S410-S420,下面对这两个步骤进行详细的描述。FIG. 4 is a schematic diagram of another data processing method provided by an embodiment of the present application. The schematic includes S410-S420, which are described in detail below.
S410,第一节点确定第三信用值以及第四信用值。S410. The first node determines a third credit value and a fourth credit value.
所述第一节点确定第三信用值,所述第三信用值为第二节点的信用值,其中,所述第二节点为所述区块链网络中的除所述第一节点之外的任意一个节点;Determining, by the first node, a third credit value, where the third credit value is a credit value of the second node, where the second node is other than the first node in the blockchain network Any one node;
所述第一节点确定第四信用值,所述第四信用值为第三节点的信用值,其中,所述第三节点为所述区块链网络中的除所述第一节点和所述第二节点之外的任意一个节点。Determining, by the first node, a fourth credit value, where the fourth credit value is a credit value of a third node, wherein the third node is in the blockchain network except the first node and the Any node other than the second node.
S420,第一节点发送交易信息。S420. The first node sends the transaction information.
可选地,在一些实施例中,所述第一节点在确定所述第三信用值高于所述第四信用值的情况下,向所述第二节点发送交易信息,例如,第一节点确定第二节点的第三信用值为2,第一节点确定第三节点的第四信用值为1,则第一节点可以只向第二节点发送交易信息。Optionally, in some embodiments, the first node sends transaction information to the second node, for example, the first node, if the third credit value is determined to be higher than the fourth credit value. Determining that the third credit value of the second node is 2, and the first node determines that the fourth credit value of the third node is 1, the first node may only send the transaction information to the second node.
可选地,在一些实施例中,所述第一节点在确定所述第三信用值高于所述第四信用值的情况下,向所述第二节点发送交易信息,并在发送所述交易信息至所述第二节点之后,向所述第三节点发送所述交易信息,例如,第一节点确定第二节点的第三信用值为2,第一节点确定第三节点的第四信用值为1,则第一节点可以向第二节点发送交易信息之后再向第三节点发送交易信息。Optionally, in some embodiments, the first node sends transaction information to the second node, where the third credit value is higher than the fourth credit value, and sends the After the transaction information is sent to the second node, the transaction information is sent to the third node, for example, the first node determines that the third credit value of the second node is 2, and the first node determines the fourth credit of the third node. A value of 1, the first node may send transaction information to the second node and then send the transaction information to the third node.
图5是本申请实施例提供的另一种数据处理方法示意图。该示意图包括S510-S520,下面对这两个步骤进行详细的描述。FIG. 5 is a schematic diagram of another data processing method provided by an embodiment of the present application. The schematic diagram includes S510-S520, which are described in detail below.
S510,第一节点向第二节点发送加入请求消息。S510. The first node sends a join request message to the second node.
第一节点希望加入新的区块链(第二区块链网络)时,第一节点向第二节点发送加入请求消息,其中,该第一节点属于第一区块链网络,该第二节点属于第二区块链网络。When the first node wishes to join the new blockchain (the second blockchain network), the first node sends a join request message to the second node, where the first node belongs to the first blockchain network, and the second node Belongs to the second blockchain network.
可选的,在一些实施例中,第一节点将上述加入请求消息发送至第二节点。Optionally, in some embodiments, the first node sends the join request message to the second node.
可选的,在一些实施例中,第一节点将上述加入请求消息发送至第二区块链网络中多个节点,第二节点获得所述加入请求消息的共识确认权。Optionally, in some embodiments, the first node sends the foregoing join request message to multiple nodes in the second blockchain network, and the second node obtains the consensus confirmation right of the join request message.
可选的,在一些实施例中,第一节点将上述加入请求消息广播在第二节点所属的第二区块链网络中,第二节点获得所述加入请求消息的共识确认权。Optionally, in some embodiments, the first node broadcasts the foregoing join request message in a second blockchain network to which the second node belongs, and the second node obtains a consensus confirmation right of the join request message.
可选地,在一些实施例中,第一节点将第一节点在第一区块链网络中(即第一节点当前所属区块链)的信用值增加在加入请求消息中。Optionally, in some embodiments, the first node increases the credit value of the first node in the first blockchain network (ie, the blockchain to which the first node currently belongs) in the join request message.
可选的,在一些实施例中,第一节点在加入请求消息中提供第一节点当前的信用值所在第一区块链网络中区块信息。该区块信息供第二区块链中共识认证的第二节点进行第一节点信用值的查询。Optionally, in some embodiments, the first node provides the block information in the first blockchain network where the current credit value of the first node is located in the join request message. The block information is used by the second node in the second blockchain to perform the query of the first node credit value.
可选的,在一些实施例中,第一节点在加入请求消息中提供第一节点当前的信用值所在信用统计区块链网络中区块信息。该区块信息供第二区块链中共识认证的第二节点进行第一节点信用值的查询。Optionally, in some embodiments, the first node provides the block information in the credit statistic blockchain network where the current credit value of the first node is located in the join request message. The block information is used by the second node in the second blockchain to perform the query of the first node credit value.
可选的,在一些实施例中,在第一节点请求加入第二区块链网络时,第一节点可以向所述第二区块链网络支付加入请求消息费用。Optionally, in some embodiments, when the first node requests to join the second blockchain network, the first node may pay the join request message fee to the second blockchain network.
可选地,在一些实施例中,第一节点支付上述费用的方式可以是在加入请求消息中包含所述费用,其中请求费用可以是实际的费用,也可以是间接费用,实际的费用可以是以多少比特币或者以太币作为交易费用,间接费用可以是在一定的时间内,当第一节点加入到第二区块链网络时,获得的认证费用的一部分按照一定的比例分给当时对加入请求消息进行共识认证的第二区块链网络中的认证节点。Optionally, in some embodiments, the manner in which the first node pays the foregoing fee may be that the fee is included in the join request message, where the request fee may be an actual fee or an indirect fee, and the actual fee may be How much bitcoin or Ethereum is used as the transaction fee, and the indirect cost can be a certain period of time. When the first node joins the second blockchain network, part of the obtained certification fee is distributed to the current party according to a certain proportion. An authentication node in a second blockchain network that requests a message for consensus authentication.
S520,第二节点获取第一节点的信用值。S520. The second node acquires a credit value of the first node.
可选的,在一些实施例中,第一节点发送的加入请求消息中包括第一节点的信用值,第二节点可以在接收到所述加入请求消息时获取所述第一节点的信用值。Optionally, in some embodiments, the join request message sent by the first node includes a credit value of the first node, and the second node may obtain the credit value of the first node when receiving the join request message.
可选的,在另一些实施例中,第二节点根据加入请求消息中包括第一节点在所属第一区块链网络中的记录所述信用值的区块信息,向第一节点所属的第一区块链网络发送查询请求消息,第四节点可以向该第二节点发送查询响应信息,所述查询响应信息包括所述信用值,第二节点根据查询响应信息获取所述第一节点的信用值,该第四节点为该第一区块链网络中除该第一节点以外的任意一个节点。Optionally, in another embodiment, the second node includes, according to the block information in the join request message that the first node records the credit value in the first blockchain network, to the first node. A blockchain network sends a query request message, and the fourth node may send query response information to the second node, where the query response information includes the credit value, and the second node acquires the credit of the first node according to the query response information. a value, the fourth node is any one of the first blockchain networks except the first node.
可选的,在另一些实施例中,第二节点根据加入请求消息中包括第一节点在信用统计区块链网络中的记录所述信用值的区块信息,向信用统计区块链网络发送查询请求消息,信用统计区块链网络中第三节点发送查询响应信息,所述查询响应信息包括所述信用值,第二节点根据查询响应信息获取所述第一节点的信用值,该第三节点为该信用统计区块链网络中的任意一个节点。Optionally, in another embodiment, the second node sends, according to the block information in the join request message that the first node records the credit value in the credit statistic blockchain network, to the credit statistic blockchain network. Querying the request message, the third node in the credit statistic blockchain network sends the query response information, the query response information includes the credit value, and the second node acquires the credit value of the first node according to the query response information, the third The node is any node in the credit statistics blockchain network.
可选地,第二节点在获取第一节点的信用值之前,获取第一节点的加入请求消息的共识确认权包括:Optionally, before obtaining the credit value of the first node, the second node acquires the consensus confirmation right of the join request message of the first node, including:
可选的,在一些实施例中,第一节点将上述加入请求消息广播在第二节点所属的第二区块链网络中,则第二区块链网络中的所有节点均会得知第一节点的加入请求消息。Optionally, in some embodiments, the first node broadcasts the foregoing join request message in a second blockchain network to which the second node belongs, and all nodes in the second blockchain network learn the first The join request message of the node.
可选地,在另一些实施例中,第一节点将上述加入请求消息发送至第二区块链网络中多个节点,则该多个节点均会得知第一节点的加入请求消息。Optionally, in another embodiment, the first node sends the foregoing join request message to multiple nodes in the second blockchain network, and the multiple nodes all know the join request message of the first node.
那么在第二区块链网络中的所有节点或多个节点都对第一节点的加入请求消息进行共识认证时,第二区块链中的所有节点或多个节点之间的认证竞争方式可以是依据图3所示的方法,信用值高的节点进行难度低的工作量证明计算,获得第一节点的加入请求消息认证,例如,在第二区块链中第二节点的当前信用值较高,获得第一节点的加入请求消息共识认证权。Then, when all nodes or multiple nodes in the second blockchain network perform consensus authentication on the join request message of the first node, the authentication competition mode between all nodes or multiple nodes in the second blockchain may be According to the method shown in FIG. 3, the node with high credit value performs low-hardness proof calculation, and obtains the join request message authentication of the first node, for example, the current credit value of the second node in the second blockchain is compared. High, obtain the first node's join request message consensus authentication right.
可选的,在一些实施例中,该第二节点也可以无需竞争得到该共识认证权。例如,第一节点仅向第二节点发送加入请求消息,第二节点对该加入请求消息共识确认。Optionally, in some embodiments, the second node may also obtain the consensus authentication right without competition. For example, the first node sends a join request message only to the second node, and the second node confirms the join request message consensus.
可选地,第二节点在对第一节点的加入请求消息的共识确认之后,第二节点向第一节点发送认证确认消息。Optionally, after the second node receives the consensus confirmation of the join request message of the first node, the second node sends an authentication confirmation message to the first node.
可选的,在一些实施例中,第二节点将认证确认消息发送至第一节点,确认第一节点可以加入第二节点所属的第二区块链网络。Optionally, in some embodiments, the second node sends an authentication confirmation message to the first node, and confirms that the first node can join the second blockchain network to which the second node belongs.
可选的,在另一些实施例中,第二节点将认证确认消息广播在第二区块链网络中,第一节点在第二区块链网络中查询所述认证确认消息,确认加入第二区块链网络。Optionally, in another embodiment, the second node broadcasts the authentication confirmation message in the second blockchain network, and the first node queries the authentication confirmation message in the second blockchain network, and confirms to join the second Blockchain network.
可选的,第二节点在完成认证第一节点的加入请求消息后,需要将该认证结果通知该第二区块链网络中的其他节点。Optionally, after completing the join request message of the first node, the second node needs to notify the other nodes in the second blockchain network of the authentication result.
可选的,在一些实施例中,该第二节点可以将获取的第一节点的信用值添加在生成的区块信息中,并将区块信息广播在该第二区块链网络中。该第二区块链中的其他节点在确定接收到由第二节点广播的该区块信息的情况下,可以确定该第二节点已经完成对第一节点的认证。Optionally, in some embodiments, the second node may add the acquired credit value of the first node in the generated block information, and broadcast the block information in the second blockchain network. The other nodes in the second block chain may determine that the second node has completed authentication of the first node in the case of determining that the block information broadcast by the second node is received.
可选的,在另一些实施例中,第二节点确定了第一节点的信用值,该信息输入在第二节点生成的区块信息中,广播出去。该第二区块链中的其他节点可以根据该区块信息,确定该第一节点加入该第二区块链网络可选地,可选的,在另一些实施例中,该第二区块链网络中可以有X个节点用于认证该第一节点的加入请求消息。该第二节点是该X该节点中的一个节点。Optionally, in other embodiments, the second node determines the credit value of the first node, and the information is input in the block information generated by the second node and broadcasted. The other nodes in the second blockchain may determine, according to the block information, that the first node joins the second blockchain network. Optionally, in other embodiments, the second block There may be X nodes in the chain network for authenticating the join request message of the first node. The second node is one of the nodes of the X.
可选地,在一些实施例中,只有X个节点中的每个节点都发送认证确认消息,第一节点才能确认加入。Optionally, in some embodiments, only each of the X nodes sends an authentication confirmation message before the first node can confirm the join.
可选地,在另一些实施例中,第二区块链网络中的X个节点中的大于或等于特定比例(例如51%)的节点发送认证确认消息,第一节点才能够确认加入,其中,X为大于或等于1的整数。Optionally, in other embodiments, a node greater than or equal to a specific ratio (eg, 51%) of the X nodes in the second blockchain network sends an authentication confirmation message, and the first node can confirm the join, where , X is an integer greater than or equal to 1.
可选地,在另一些实施例中,第二区块链网络中的X个节点中的几个节点依次确认,然后最后一个节点发送认证确认消息就好,例如假设第二区块链网络中存在3个节点,节点1确认能加入,然后节点2确认,节点2确认能加入,然后节点3确认,节点3确认能 加入后由节点3发送认证确认消息就好。如果节点1确认不能加入,节点2都无需确认。Optionally, in other embodiments, several of the X nodes in the second blockchain network are sequentially confirmed, and then the last node sends an authentication confirmation message, for example, assuming a second blockchain network. There are 3 nodes, node 1 confirms that it can join, then node 2 confirms, node 2 confirms that it can join, and then node 3 confirms that node 3 confirms that it can join and then node 3 sends an authentication confirmation message. If node 1 confirms that it cannot join, node 2 does not need to confirm.
可选地,在另一些实施例中,上述认证确认消息可以是由上述第二区块链中的X个节点中的每个节点、第二区块链网络中的X个节点中的大部分节点或第二区块链网络中的X个节点中的几个节点依次确认,然后最后一个节点广播在第二区块链网络中,第一节点可以从第二区块链网络中查询得到认证确认消息。Optionally, in other embodiments, the foregoing authentication confirmation message may be a majority of the X nodes in the second blockchain and the X nodes in the second blockchain network. Several nodes of the X nodes in the node or the second blockchain network are sequentially confirmed, and then the last node is broadcasted in the second blockchain network, and the first node can be authenticated from the second blockchain network. Confirm the message.
可选地,在一些实施例中,认证确认消息可以是由上述第二区块链中的X个节点中的每个节点、第二区块链网络中的X个节点中的大部分节点或第二区块链网络中的X个节点中的几个节点依次确认,然后最后一个节点直接发送给第一节点。Optionally, in some embodiments, the authentication confirmation message may be by each of the X nodes in the second blockchain, most of the X nodes in the second blockchain network, or Several of the X nodes in the second blockchain network are sequentially confirmed, and then the last node is directly sent to the first node.
可选地,第一节点获取到所述认证确认消息后,第一节点的加入请求消息认证成功,第一节点可以作为一个新的区块链节点加入上述第二区块链网络中,经过初始信用值计算后,第一节点确定当前自己在上述第二区块链中的初始信用值。Optionally, after the first node obtains the authentication confirmation message, the first node join request message is successfully authenticated, and the first node may join the second blockchain network as a new blockchain node, after initial After the credit value is calculated, the first node determines the initial credit value of the current self in the second blockchain.
可选地,在一些实施例中,上述第一节点初始信用值计算可以是对X次共识认证中各个发送认证确认消息的节点提供的信用值进行平均或累加后确定的初始信用值。Optionally, in some embodiments, the foregoing first node initial credit value calculation may be an initial credit value determined by averaging or accumulating credit values provided by each node that sends the authentication confirmation message in the X times consensus authentication.
可选地,第一节点根据初始信用值,确定是否可以降低Nonce值计算难度,以获得在第二区块链网络中区块共识确认权,具体地,第一节点可以根据图3提供的方法确定在所述第二区块链网络中的共识确认权,这里不再赘述。Optionally, the first node determines, according to the initial credit value, whether the Nonce value calculation difficulty can be reduced to obtain a block consensus confirmation right in the second blockchain network. Specifically, the first node may provide the method according to FIG. The consensus confirmation right in the second blockchain network is determined, and details are not described herein again.
可选地,在一些实施例中,第一节点可以在发送所述加入请求消息之后直接加入上述第二区块链网络。Optionally, in some embodiments, the first node may directly join the second blockchain network after sending the join request message.
图6是本申请实施例提供的另一种数据处理方法示意图。该示意图包括S610-S640,下面对这四个步骤进行详细的描述。FIG. 6 is a schematic diagram of another data processing method provided by an embodiment of the present application. The schematic includes S610-S640, which are described in detail below.
S610,第一节点向第二节点发送加入请求消息。S610. The first node sends a join request message to the second node.
所述加入请求消息用于请求加入第二区块链网络,第二节点接收第一节点发送的加入请求消息。所述加入请求消息包括信用度信息,所述信用度信息用于指示所述第一节点在第一区块链网络中的信用值,其中所述第二节点为第二区块链网络中的一个节点,所述第一节点为第一区块链网络中的一个节点。所述第二节点根据所述信用度信息,获取所述第一节点在所述第一区块链网络中的信用值。The join request message is used to request to join the second blockchain network, and the second node receives the join request message sent by the first node. The join request message includes credit information for indicating a credit value of the first node in a first blockchain network, wherein the second node is a node in a second blockchain network The first node is a node in the first blockchain network. And obtaining, by the second node, a credit value of the first node in the first blockchain network according to the credit information.
可选的,在一些实施例中,第一节点将上述加入请求消息发送至第二节点。Optionally, in some embodiments, the first node sends the join request message to the second node.
可选的,在一些实施例中,第一节点将上述加入请求消息广播在第二节点所属的第二区块链网络中,第二节点获得所述加入请求消息的共识确认权。Optionally, in some embodiments, the first node broadcasts the foregoing join request message in a second blockchain network to which the second node belongs, and the second node obtains a consensus confirmation right of the join request message.
可选的,在一些实施例中,上述加入请求消息中包括所述第一节点在所属第一区块链网络中的信用值。Optionally, in some embodiments, the foregoing join request message includes a credit value of the first node in the first blockchain network.
可选的,在另一些实施例中,上述加入请求消息中包括第一节点在所属第一区块链网络中的记录所述信用值的区块信息,第二节点可以根据所述目标区块信息向所述第一区块链网络发送查询请求消息,所述查询请求消息用于请求获取所述信用值。Optionally, in another embodiment, the foregoing join request message includes the block information of the first node in the first blockchain network to record the credit value, and the second node may be according to the target block. The information sends a query request message to the first blockchain network, the query request message being used to request to acquire the credit value.
S620,第一节点向第三节点发送信用统计信息。S620. The first node sends credit statistics information to the third node.
所述信用统计信息用于计算所述第一节点的信用值。所述第三节点为信用统计区块链网络中的任意一个节点。The credit statistic information is used to calculate a credit value of the first node. The third node is any one of the credit statistics blockchain networks.
所述第三节点根据所述信用统计信息,确定所述第一节点的信用值。The third node determines a credit value of the first node according to the credit statistics information.
例如,所述信用统计区块链可以要求所述第一节点提供一些信息,例如第一节点的交易费用,认证的区块个数,认证的区块中的交易个数等信息。所述第一节点可以将所述信用统计区块链的要求提供信息发送至所述信用统计区块链中的节点。所述信用统计区块链的要求提供信息即为所述信用统计信息。For example, the credit statistic blockchain may require the first node to provide some information, such as the transaction cost of the first node, the number of authenticated blocks, and the number of transactions in the authenticated block. The first node may send request information of the credit statistic blockchain to a node in the credit statistic blockchain. The request information provided by the credit statistic blockchain is the credit statistic information.
可选的,在一些实施例中,所述第一节点可以定期地将所述信用统计信息发送至所述信用统计区块链中的节点。Optionally, in some embodiments, the first node may periodically send the credit statistics information to nodes in the credit statistic blockchain.
可选的,在另一些实施例中,所述第一节点可以根据由事件触发将所述信用统计信息发送至所述信用统计区块链中的节点。Optionally, in other embodiments, the first node may send the credit statistics information to a node in the credit statistic block chain according to an event trigger.
例如,所述第一节点在确定认证的交易增加超过一定个数的情况下,将所述信用统计信息发送至所述第三节点。又如,所述第一节点可以在获得共识确认权之后将所述信用统计信息发送至所述第三节点。又如,所述第一节点可以在确定所述第一节点的信用值高于一个预设阈值的情况下将所述信用统计信息发送至所述第三节点。For example, the first node sends the credit statistics information to the third node if it is determined that the authenticated transaction increases by more than a certain number. For another example, the first node may send the credit statistics information to the third node after obtaining the consensus confirmation right. For another example, the first node may send the credit statistics information to the third node if it is determined that the credit value of the first node is higher than a preset threshold.
可选的,在一些实施例中,所述第一节点可以通过广播的方式将所述信用统计信息广播至所述信用统计区块链。Optionally, in some embodiments, the first node may broadcast the credit statistics information to the credit statistic blockchain by means of a broadcast.
可选的,在另一些实施例中,所述第一节点可以直接向所述信用统计信息广播中的一个或多个节点发送所述信用统计信息,然后该一个或多个节点可以将在该信用统计区块链中广播该信用统计信息。Optionally, in other embodiments, the first node may send the credit statistics directly to one or more nodes in the credit statistics broadcast, and then the one or more nodes may be in the The credit statistics information is broadcast in the credit statistics blockchain.
所述信用统计区块链中的接收到所述第一节点发送的所述信用统计信息的节点可以基于所述信用统计信息以及自身的信用值大小进行共识认证,以竞争所述信用统计信息的共识确认权,可选地,可以是图3中所示的工作量证明计算的方式竞争,这里不再赘述,例如,其中信用统计区块链中的所述第三节点为获得共识确认权的节点。The node in the credit statistic blockchain that receives the credit statistic information sent by the first node may perform consensus authentication based on the credit statistic information and its own credit value to compete for the credit statistic information. The consensus confirmation right, optionally, may compete in the manner of the workload proof calculation shown in FIG. 3, and is not described here again, for example, where the third node in the credit statistic blockchain is to obtain the consensus confirmation right. node.
所述第三节点可以基于预设算法,根据所述信用度统计信息确定所述第一节点在所述信用统计区块链中的信用度,并进行共识认证和维护。该预设算法可以是经过所述信用统计区块链本身共识的一套累加机制,例如根据一个节点经过认证的交易量的数目确定该节点的信用度。又如,可以根据一个节点的交易费率确定该节点的信用度。The third node may determine, according to the preset algorithm, the credit degree of the first node in the credit statistic blockchain according to the credit statistic information, and perform consensus authentication and maintenance. The preset algorithm may be a set of accumulation mechanism that is consistent with the credit statistic block chain itself, for example, determining the credit degree of the node according to the number of authenticated transaction quantities of a node. As another example, the credit rating of the node can be determined based on the transaction rate of a node.
S630,第二节点向第三节点发送查询请求消息。S630. The second node sends a query request message to the third node.
所述查询请求消息用于查询第一节点的信用值。第二区块链网络中的第二节点获得共识确认权,对第一节点的加入请求消息认证。The query request message is used to query the credit value of the first node. The second node in the second blockchain network obtains the consensus confirmation right, and authenticates the join request message of the first node.
可选的,在一些实施例中,第一节点发送的加入请求消息中包括第一节点的信用值,第二节点可以在接收到所述加入请求消息时获取所述第一节点的信用值。Optionally, in some embodiments, the join request message sent by the first node includes a credit value of the first node, and the second node may obtain the credit value of the first node when receiving the join request message.
可选的,在另一些实施例中,第二节点根据加入请求消息中包括第一节点在所属第一区块链网络中的记录所述信用值的区块信息,向第一节点所属的第一区块链网络发送查询请求消息,第四节点可以向该第二节点发送查询响应信息,所述查询响应信息包括所述信用值,第二节点根据查询响应信息获取所述第一节点的信用值,该第四节点为该第一区块链网络中除该第一节点以外的任意一个节点。Optionally, in another embodiment, the second node includes, according to the block information in the join request message that the first node records the credit value in the first blockchain network, to the first node. A blockchain network sends a query request message, and the fourth node may send query response information to the second node, where the query response information includes the credit value, and the second node acquires the credit of the first node according to the query response information. a value, the fourth node is any one of the first blockchain networks except the first node.
可选的,在另一些实施例中,第二节点根据加入请求消息中包括第一节点在信用统计区块链网络中的记录所述信用值的区块信息,向信用统计区块链网络发送查询请求消息,信用统计区块链网络中第三节点发送查询响应信息,所述查询响应信息包括所述信用值, 第二节点根据查询响应信息获取所述第一节点的信用值,该第三节点为该信用统计区块链网络中的任意一个节点。Optionally, in another embodiment, the second node sends, according to the block information in the join request message that the first node records the credit value in the credit statistic blockchain network, to the credit statistic blockchain network. Querying the request message, the third node in the credit statistic blockchain network sends the query response information, the query response information includes the credit value, and the second node acquires the credit value of the first node according to the query response information, and the third The node is any node in the credit statistics blockchain network.
可选的,在一些实施例中,所述第二节点可以向所述信用统计区块链或第一区块链网络支付查询费用。所述第二节点在查询到第一节点的信用度的情况下,对第一节点的加入请求消息进行确认,并在新广播的区块中增加认证通过第一节点加入请求消息的指示信息。Optionally, in some embodiments, the second node may pay a query fee to the credit statistic blockchain or the first blockchain network. When the second node queries the credit of the first node, the second node confirms the join request message of the first node, and adds the indication information that the first node join request message is authenticated in the newly broadcasted block.
可选地,第二节点发送查询请求消息可以是在信用统计区块链网络或第一区块链网络中广播出去,然后信用统计区块链网络或第一区块链网络中的节点对查询请求消息进行共识认证,例如,信用统计区块链网络或第一区块链网络中的第三节点获得第二节点发送查询请求消息的共识确认权。Optionally, the second node sending the query request message may be broadcasted in the credit statistic blockchain network or the first blockchain network, and then the node pair query in the credit statistic blockchain network or the first blockchain network The request message is used for consensus authentication. For example, the third node in the credit statistic blockchain network or the first blockchain network obtains the consensus confirmation right of the second node to send the query request message.
可选地,第三节点将第一节点的当前信用值信息直接发送给第二节点,或者第三节点将第一节点的当前信用值信息广播出去,第二节点在信用统计区块链网络第一区块链网络中查询获得第一节点的当前信用值。Optionally, the third node directly sends the current credit value information of the first node to the second node, or the third node broadcasts the current credit value information of the first node, and the second node is in the credit statistics blockchain network. The current credit value of the first node is obtained by querying in a blockchain network.
所述第二节点通过上述三个步骤(接收所述第一节点发送加入请求消息,向所述第三节点发送查询请求消息,接收所述第三节点发送的所述第一节点的当前信用值)可以完成一次共识认证过程。The second node receives the first node sending a join request message, sends a query request message to the third node, and receives the current credit value of the first node sent by the third node. ) A consensus certification process can be completed.
可选的,在一些实施例中,所述第一节点可以与所述第二区块链网络中的其他节点也进行上述共识认证过程。所述第一节点可以与所述第二区块链中的节点共进行X次共识认证过程。可以理解的是,该X次共识认证过程是由所述第二区块链中的X个不同的节点完成的。Optionally, in some embodiments, the first node may perform the foregoing consensus authentication process with other nodes in the second blockchain network. The first node may perform a total of X consensus authentication processes with nodes in the second blockchain. It can be understood that the X-time consensus authentication process is completed by X different nodes in the second blockchain.
S640,第一节点获取认证确认消息。S640. The first node acquires an authentication confirmation message.
可选的,在一些实施例中,所述第二节点向所述第一节点发送认证确认消息。所述加入确认消息用于确认所述第一节点能够加入所述区块链网络。Optionally, in some embodiments, the second node sends an authentication confirmation message to the first node. The join confirmation message is used to confirm that the first node can join the blockchain network.
可选的,在另一些实施例中,所述第二节点将所述认证确认消息广播在第二节点所属的第二区块链网络中。第一节点可以在所述第二区块链网络中查询所述认证确认消息。Optionally, in some other embodiments, the second node broadcasts the authentication confirmation message in a second blockchain network to which the second node belongs. The first node may query the authentication confirmation message in the second blockchain network.
可选的,在一些实施例中,在所述第一节点与所述第二区块链中的X个节点进行X次共识认证的情况下,向所述第一节点发送确认消息的节点是最后一次进行共识认证的节点。显然,图6所示的实施例中将所述第二节点作为在进行X次共识认证的情况下的最后一次共识认证的节点。Optionally, in some embodiments, in the case that the first node and the X nodes in the second block chain perform X-time consensus authentication, the node that sends the confirmation message to the first node is The last node to perform consensus authentication. Obviously, in the embodiment shown in FIG. 6, the second node is used as the node of the last consensus authentication in the case of performing X times of consensus authentication.
可选的,在另一些实施例中,若所述第一节点仅与所述第二区块链网络中的一个节点进行共识认证,则所述认证确认消息就是由进行共识认证的节点发送的。Optionally, in another embodiment, if the first node only performs consensus authentication with one of the nodes in the second blockchain network, the authentication confirmation message is sent by a node that performs consensus authentication. .
可选的,第一节点可以定期对自己在新旧两个区块链中的交易认证记录进行统计,并发送到信用统计区块链中进行信用度的确认和记录。Optionally, the first node may periodically count the transaction authentication records in the old and new blockchains, and send them to the credit statistics blockchain for credit confirmation and recording.
可选地,当某个节点在区块链网络中发送交易数据进行区块链认证时,该节点可以在交易数据中协助带“信用值”需求指示,指示相关交易被区块链网络节点进行认证的信用值要求。Optionally, when a node sends transaction data in the blockchain network for blockchain authentication, the node may assist the “credit value” demand indication in the transaction data, indicating that the related transaction is performed by the blockchain network node. Certified credit value requirements.
图7是本申请实施例提供的另一种数据处理方法示意图。该示意图包括S710-S720,下面对这两个步骤进行详细的描述。FIG. 7 is a schematic diagram of another data processing method provided by an embodiment of the present application. The schematic diagram includes S710-S720, which are described in detail below.
S710,区块链网络确定多个节点的信用值。S710. The blockchain network determines a credit value of multiple nodes.
可选地,在一些实施例中,区块链网络确定多个节点的信用值,包括:第一节点获取区块链网络中的N个节点的信用值,其中所述第一节点为所述区块链网络中的任意一个节点,其中,所述N个节点的信用值为第一节点分别获取的信用值,所述N为正整数。例如,所述区块链网络中有10个节点,第一节点获取得到10个节点中5个节点的信用值分别为1、2、3、4、5。该第一节点是该区块链网络中的任一个节点。换句话说,该区块链网络中的任一个节点都需要执行该第一节点执行的动作。Optionally, in some embodiments, the blockchain network determines a credit value of the plurality of nodes, including: the first node acquires a credit value of the N nodes in the blockchain network, wherein the first node is the Any one of the nodes in the blockchain network, wherein the credit value of the N nodes is a credit value respectively acquired by the first node, and the N is a positive integer. For example, there are 10 nodes in the blockchain network, and the first node obtains 5 nodes of 10 nodes with credit values of 1, 2, 3, 4, and 5, respectively. The first node is any one of the blockchain networks. In other words, any node in the blockchain network needs to perform the actions performed by the first node.
可选地,在另一些实施例中,区块链网络确定多个节点的信用值,包括:该区块链网络中的M个节点获取区块链网络中的N个节点的信用值,其中所述M节点为所述区块链网络中的任意M个节点,其中,所述N个节点的信用值为M个节点获取的M次信用值的平均值,或者,所述N个节点的信用值为M个节点获取的M次信用值的最大值,所M、N为正整数。例如,所述区块链网络中有10个节点,第一节点获取得到10个节点中5个节点的信用值分别为1、2、3、4、5,第二节点获取得到10个节点中该5个节点的信用值分别为2、3、4、5、6,则该5个节点的信用值分别为1.5、2.5、3.5、4.5、5.5或者则该5个节点的信用值分别为2、3、4、5、6。Optionally, in other embodiments, the blockchain network determines the credit values of the multiple nodes, including: the M nodes in the blockchain network acquire the credit values of the N nodes in the blockchain network, where The M node is any M nodes in the blockchain network, wherein the credit value of the N nodes is an average value of M credits acquired by M nodes, or the N nodes are The credit value is the maximum value of the M credits obtained by the M nodes, and M and N are positive integers. For example, the blockchain network has 10 nodes, and the first node obtains 5 nodes of 10 nodes, and the credit values are 1, 2, 3, 4, and 5, respectively, and the second node obtains 10 nodes. The credit values of the five nodes are 2, 3, 4, 5, and 6, respectively, and the credit values of the five nodes are 1.5, 2.5, 3.5, 4.5, 5.5, respectively, or the credit values of the five nodes are respectively 2 , 3, 4, 5, 6.
应理解,上述10个节点中5个节点的形式是一种举例的形式,根据上述方法可以获取区块链网络中的所有节点的信用值。It should be understood that the form of 5 nodes among the above 10 nodes is an exemplary form, and the credit values of all nodes in the blockchain network can be obtained according to the above method.
S720,确定工作量证明计算算法。S720, determining a workload proof calculation algorithm.
可选地,区块链网络中的所有节点当前的信用值大小均大于第一预设阈值,其中,该所有节点的信用值可以是在S710中确定的,则区块链网络确定第一信用值大于第一预设阈值,例如,所述区块链网络中有10个节点,并且10个节点当前信用值大小均大于第一预设阈值,所述区块链网络确定第一信用值大于第一预设阈值。Optionally, the current credit value of all nodes in the blockchain network is greater than a first preset threshold, wherein the credit value of all the nodes may be determined in S710, and the blockchain network determines the first credit. The value is greater than the first preset threshold, for example, there are 10 nodes in the blockchain network, and the current credit value of each of the 10 nodes is greater than a first preset threshold, and the blockchain network determines that the first credit value is greater than The first preset threshold.
可选地,区块链网络中的部分节点当前的信用值大小均大于第一预设阈值,其中,该部分节点的信用值可以是在S710中确定的,则区块链网络确定第一信用值大于第一预设阈值,其中,部分节点可以是系统规定的超过一半的节点,例如,所述区块链网络中有10个节点,其中6个节点当前信用值大小均大于第一预设阈值,所述区块链网络确定第一信用值大于第一预设阈值。Optionally, the current credit value of the part of the node in the blockchain network is greater than a first preset threshold, where the credit value of the partial node may be determined in S710, and the blockchain network determines the first credit. The value is greater than the first preset threshold, wherein some of the nodes may be more than half of the nodes specified by the system. For example, there are 10 nodes in the blockchain network, and the current credit value of the six nodes is greater than the first preset. a threshold, the blockchain network determining that the first credit value is greater than a first predetermined threshold.
可选地,区块链网络中的节点当前信用值大第一预设阈值的节点数目与所述区块链网络中的全部节点数目的比值大于第三预设值的情况下,区块链网络确定第一信用值大于第一预设阈值,例如,所述区块链网络中有10个节点,其中6个节点当前信用值大小均大于第一预设阈值,上述比值为0.6,可以确定当上述比值大于0.5时确定第一信用值大于第一预设阈值。Optionally, in a case where the ratio of the number of nodes whose current credit value is greater than the first preset threshold in the blockchain network to the total number of nodes in the blockchain network is greater than the third preset value, the blockchain The network determines that the first credit value is greater than the first preset threshold. For example, there are 10 nodes in the blockchain network, wherein the current credit value of the six nodes is greater than the first preset threshold, and the ratio is 0.6, which can be determined. When the ratio is greater than 0.5, it is determined that the first credit value is greater than the first preset threshold.
可选的,在一些实施例中,当区块链网络确定第一信用值大于第一预设阈值时,可选地,可以执行全网工作量证明计算算法复杂度的一次降低。Optionally, in some embodiments, when the blockchain network determines that the first credit value is greater than the first preset threshold, optionally, a one-time reduction of the complexity of the network-wide workload proof calculation algorithm may be performed.
可选的,在另一些实施例中,当区块链网络确定第一信用值大于第一预设阈值时,只允许信用度高于第一预设阈值的节点可以执行全网工作量证明计算算法复杂度的一次降低。待后续难度恢复后区块链网络开始接纳新的低信用度节点的参与。Optionally, in other embodiments, when the blockchain network determines that the first credit value is greater than the first preset threshold, only the node whose credit is higher than the first preset threshold may perform a network-wide workload proof calculation algorithm. A decrease in complexity. After the subsequent difficulty recovery, the blockchain network begins to accept the participation of new low-credit nodes.
应理解,图3至图7中的第一节点可以是同一个节点或者区块链网络中的一个节点能 执行图3至图7中的第一节点的动作。It should be understood that the first node in Figures 3 through 7 may be the same node or one of the blockchain networks capable of performing the actions of the first node of Figures 3-7.
图8示出了本申请实施例的数据处理装置500的示意性框图。图8所示的装置可以应用于区块链网络,所述区块链网络可以包括多个装置500,所述区块链网络中的各个节点可以由一个或者多个所述装置500组成,所述装置500包括:发送模块501、接收模块502和处理模块503。FIG. 8 shows a schematic block diagram of a data processing apparatus 500 of an embodiment of the present application. The apparatus shown in Figure 8 can be applied to a blockchain network, which can include a plurality of devices 500, each of which can be comprised of one or more of the devices 500, The device 500 includes a sending module 501, a receiving module 502, and a processing module 503.
发送模块501,用于发送信息。The sending module 501 is configured to send information.
例如,用于第一节点向第二节点所属的区块链网络发送加入请求消息,或者,用于第一节点向信用统计区块链网络发送信用统计信息,或者,用于第二节点向信用统计区块链网络发送查询请求信息,或者,用于第二节点向第一节点发送/在所属的区块链网络广播认证确认消息,或者,用于第三节点向第二节点发送/在所属的信用统计区块链网络广播查询反馈信息。For example, the first node sends a join request message to the blockchain network to which the second node belongs, or is used for the first node to send credit statistics information to the credit statistic blockchain network, or for the second node to credit The statistical blockchain network sends the query request information, or is used by the second node to send/receive the authentication confirmation message to the associated node chain network, or for the third node to send/in the second node to the second node Credit statistics blockchain network broadcast query feedback information.
接收模块502,用于接收信息。The receiving module 502 is configured to receive information.
例如,用于第一节点接收/在区块链网络中查询认证确认消息,或者,用于第二节点接收/在区块链网络中查询查询反馈信息,或者,用于第三节点接收/在信用统计区块链网络中查询第一节点的信用统计信息,或者,用于第三节点接收/在信用统计区块链网络中查询第二节点发送查询请求消息。For example, for the first node to receive/query the authentication confirmation message in the blockchain network, or for the second node to receive/query the query feedback information in the blockchain network, or for the third node to receive/in the third node The credit statistic blockchain network queries the credit statistic information of the first node, or is used by the third node to receive/query the second node to send a query request message in the credit statistic blockchain network.
处理模块503,包括确定单元、计算单元、生成单元等用于处理信息。The processing module 503 includes a determining unit, a calculating unit, a generating unit, and the like for processing information.
例如,确定单元,用于第一节点确定第一节点的第一信用值,或者,用于第一节点确定所属的区块链网络中其他节点的信用值,或者,用于第一节点确定所述第一信用值大于或等于所述第一交易信息中包含的信用值,或者,用于第一节点确定在基于第一目标值进行工作量证明计算之后的N个区块/Y个时间单位内的共识确认权的竞争中不再基于第一目标值进行工作量证明计算;用于第二节点根据第一节点发送的信用度信息确定第一节点的信用值。用于第三节点根据第一节点发送的信用统计信息,确定所述第一节点的信用值。For example, the determining unit is configured to determine, by the first node, a first credit value of the first node, or for determining, by the first node, a credit value of other nodes in the associated blockchain network, or for determining, by the first node, The first credit value is greater than or equal to the credit value included in the first transaction information, or is used by the first node to determine N blocks/Y time units after the workload proof calculation based on the first target value In the competition of the consensus confirmation right, the workload proof calculation is no longer performed based on the first target value; and the second node determines the credit value of the first node according to the credit information sent by the first node. And determining, by the third node, the credit value of the first node according to the credit statistics information sent by the first node.
例如,计算单元,用于第一节点在所述第一信用值大于第一预设阈值的情况下,基于第一目标值进行工作量证明计算或者在所述第二信用值小于或等于所述第一预设阈值的情况下,所述第一节点基于所述预设目标值进行工作量证明计算,或者,用于第二节点或第三节点进行工作量证明计算。For example, the calculating unit is configured to: when the first credit value is greater than the first preset threshold, the first node performs a workload proof calculation based on the first target value or the second credit value is less than or equal to the In the case of the first preset threshold, the first node performs workload proof calculation based on the preset target value, or is used for the second node or the third node to perform workload proof calculation.
例如,生成单元,用于第一节点、第二节点或第三节点生成新的区块信息,广播到所属的区块链网络中。For example, the generating unit is configured to generate new block information for the first node, the second node, or the third node, and broadcast to the associated blockchain network.
图9示出了本申请实施例的数据处理装置600的示意性框图。如图9所示的装置600可以包括处理单元601和通信单元602。FIG. 9 shows a schematic block diagram of a data processing apparatus 600 of an embodiment of the present application. The apparatus 600 shown in FIG. 9 may include a processing unit 601 and a communication unit 602.
可选的,在一些实施例中,装置600可以是上述处理方法描述的第一节点,例如,装置600可以被配置为该第一节点。又如,装置600本身即为该第一节点。又如,该第一节点可以配置于装置600。装置600可以执行如上述方法中第一节点所执行的各动作或处理过程。这里,为了避免赘述,省略其详细说明。Optionally, in some embodiments, the device 600 may be the first node described by the foregoing processing method. For example, the device 600 may be configured as the first node. As another example, device 600 is itself the first node. As another example, the first node can be configured in the device 600. Apparatus 600 can perform the various actions or processes performed by the first node in the method described above. Here, in order to avoid redundancy, a detailed description thereof will be omitted.
可选的,在另一些实施例中,装置600可以是上述处理方法描述的第一节点,例如,装置600可以被配置为该第二节点。又如,装置600本身即为该第二节点。又如,该第二节点可以配置于装置600。装置600可以执行如上述方法中第二节点所执行的各动作或处 理过程。这里,为了避免赘述,省略其详细说明。Optionally, in other embodiments, the device 600 may be the first node described by the foregoing processing method. For example, the device 600 may be configured as the second node. As another example, device 600 is itself the second node. As another example, the second node can be configured in the device 600. Apparatus 600 can perform the various actions or processes performed by the second node in the method described above. Here, in order to avoid redundancy, a detailed description thereof will be omitted.
装置600可以是上述处理方法描述的第三节点,例如,装置600可以被配置为该第一节点。又如,装置600本身即为该第三节点。又如,该第一节点可以配置于装置600。装置600可以执行如上述方法中第三节点所执行的各动作或处理过程。这里,为了避免赘述,省略其详细说明。The device 600 may be a third node described by the above processing method, for example, the device 600 may be configured as the first node. As another example, device 600 is itself the third node. As another example, the first node can be configured in the device 600. Apparatus 600 can perform the various actions or processes performed by the third node in the method described above. Here, in order to avoid redundancy, a detailed description thereof will be omitted.
可选地,该装置600还包括存储单元,存储单元与处理单元通信连接。下面结合图10进一步说明本申请实施例的数据处理装置。Optionally, the device 600 further includes a storage unit communicatively coupled to the processing unit. The data processing apparatus of the embodiment of the present application will be further described below with reference to FIG.
图10是根据本申请实施例提供的另一数据处理装置的结构框图。如图10所示的数据处理装置700包括存储器701和处理器702。FIG. 10 is a structural block diagram of another data processing apparatus according to an embodiment of the present application. The data processing device 700 shown in FIG. 10 includes a memory 701 and a processor 702.
存储器701,用于存储程序。The memory 701 is configured to store a program.
处理器702,用于执行存储器701存储的程序,当程序被执行时,使得交换设备700可以实现上述图2-图7实施例提供的方法。The processor 702 is configured to execute a program stored in the memory 701. When the program is executed, the switching device 700 can implement the method provided in the foregoing embodiments of FIG. 2-7.
利用交换设备700可以将图2-图7所示的方法中的部分或全部通过软件来实现。Some or all of the methods shown in Figures 2-7 can be implemented by software using switching device 700.
存储器701可以是物理上独立的单元,也可以与处理器702集成在一起。 Memory 701 can be a physically separate unit or can be integrated with processor 702.
可选的,当图2-图7所示的方法中的部分或全部通过软件实现时,交换设备700也可以只包括处理器702。用于存储程序的存储器701位于装置700之外,处理器702通过电路/电线与存储器701连接,用于读取并执行存储器701中存储的程序。Optionally, when some or all of the methods shown in FIG. 2-7 are implemented by software, the switching device 700 may also include only the processor 702. The memory 701 for storing programs is located outside the device 700, and the processor 702 is connected to the memory 701 through circuits/wires for reading and executing programs stored in the memory 701.
处理器702可以是中央处理器(central processing unit,CPU),网络处理器(network processor,NP)或者CPU和NP的组合。The processor 702 can be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and an NP.
处理器702还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。 Processor 702 can also further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof.
存储器701可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器701也可以包括非易失性存储器(non-volatile memory),例如快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器701还可以包括上述种类的存储器的组合。The memory 701 may include a volatile memory such as a random-access memory (RAM); the memory 701 may also include a non-volatile memory such as a flash memory (flash) Memory), hard disk drive (HDD) or solid-state drive (SSD); the memory 701 may also include a combination of the above types of memories.
本申请的又一方面提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当该指令在计算机上运行时,使得计算机执行上述如图3-图8所示的方法中第一节点执行的各个步骤。Yet another aspect of the present application provides a computer readable storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the method illustrated in Figures 3-8 above The various steps performed by the first node.
本申请的又一方面提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当该指令在计算机上运行时,使得计算机执行上述如图4-图6所示的方法中第二节点执行的各个步骤。Yet another aspect of the present application provides a computer readable storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the method illustrated in Figures 4-6 above The various steps performed by the second node.
本申请的又一方面提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当该指令在计算机上运行时,使得计算机执行上述如图6所示的方法中第三节点执行的各个步骤。Yet another aspect of the present application provides a computer readable storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the third of the methods illustrated in FIG. 6 above The various steps performed by the node.
本申请的又一方面提供了一种包含指令的计算机程序产品,当该计算机程序产品在计 算机上运行时,使得计算机执行如图3-图7所示的方法中第一节点执行的各个步骤。Yet another aspect of the present application provides a computer program product comprising instructions which, when executed on a computer, cause the computer to perform the various steps performed by the first node in the method illustrated in Figures 3-7.
本申请的又一方面提供了一种包含指令的计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行如图4-图6所示的方法中第二节点执行的各个步骤。Yet another aspect of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the various steps performed by the second node in the method illustrated in Figures 4-6.
本申请的又一方面提供了一种包含指令的计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行如图6所示的方法中第三节点执行的各个步骤。Yet another aspect of the present application provides a computer program product comprising instructions that, when executed on a computer, cause the computer to perform the various steps performed by the third node in the method illustrated in FIG.
应注意,上述方法实施例可以应用于处理器中,或者由处理器实现。处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。It should be noted that the above method embodiments may be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the foregoing method embodiment may be completed by an integrated logic circuit of hardware in a processor or an instruction in a form of software. The processor may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a Field Programmable Gate Array (FPGA), or the like. Programming logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by the hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor. The software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in the memory, and the processor reads the information in the memory and combines the hardware to complete the steps of the above method.
可以理解,本申请实施例中的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It is to be understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), a programmable read only memory (PROM), an erasable programmable read only memory (Erasable PROM, EPROM), or an electric Erase programmable read only memory (EEPROM) or flash memory. The volatile memory can be a Random Access Memory (RAM) that acts as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (Synchronous DRAM). SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Synchronous Connection Dynamic Random Access Memory (Synchlink DRAM, SLDRAM) ) and direct memory bus random access memory (DR RAM). It should be noted that the memories of the systems and methods described herein are intended to comprise, without being limited to, these and any other suitable types of memory.
应理解,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" herein is merely an association relationship describing an associated object, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists separately, and A and B exist simultaneously. There are three cases of B alone. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
应理解,在本申请实施例的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that, in various embodiments of the embodiments of the present application, the size of the sequence numbers of the foregoing processes does not mean the order of execution sequence, and the execution order of each process should be determined by its function and internal logic, and should not be applied to this application. The implementation of the embodiments constitutes any limitation.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可 以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product. Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The foregoing is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application. It should be covered by the scope of protection of this application. Therefore, the scope of protection of the present application should be determined by the scope of the claims.
Claims (28)
- 一种处理数据的方法,其特征在于,所述方法包括:A method of processing data, the method comprising:第一节点确定所述第一节点的第一信用值,其中所述第一节点为区块链网络中的一个节点;Determining, by the first node, a first credit value of the first node, where the first node is a node in a blockchain network;所述第一节点在确定所述第一信用值大于第一预设阈值的情况下,基于第一目标值进行工作量证明计算,所述第一目标值为对应于第一难度的目标值,其中,所述第一难度小于基于预设目标值进行工作量证明计算对应的第二难度。And determining, by the first node, that the first credit value is greater than the first preset threshold, performing a workload proof calculation based on the first target value, where the first target value is a target value corresponding to the first difficulty, The first difficulty is less than the second difficulty corresponding to the workload proof calculation based on the preset target value.
- 如权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 wherein the method further comprises:所述第一节点确定第一节点的第二信用值;The first node determines a second credit value of the first node;所述第一节点在确定所述第二信用值小于或等于所述第一预设阈值的情况下,基于所述预设目标值进行工作量证明计算。The first node performs a workload proof calculation based on the preset target value if it is determined that the second credit value is less than or equal to the first preset threshold.
- 如权利要求1或2所述的方法,其特征在于,所述方法还包括:The method of claim 1 or 2, wherein the method further comprises:所述第一节点确定第三信用值,所述第三信用值为第二节点的信用值,其中,所述第二节点为所述区块链网络中的除所述第一节点之外的任意一个节点;Determining, by the first node, a third credit value, where the third credit value is a credit value of the second node, where the second node is other than the first node in the blockchain network Any one node;所述第一节点确定第四信用值,所述第四信用值为第三节点的信用值,其中,所述第三节点为所述区块链网络中的除所述第一节点和所述第二节点之外的任意一个节点;Determining, by the first node, a fourth credit value, where the fourth credit value is a credit value of a third node, wherein the third node is in the blockchain network except the first node and the Any node other than the second node;所述第一节点在确定所述第三信用值高于所述第四信用值的情况下,向所述第二节点发送交易信息。The first node sends transaction information to the second node if it is determined that the third credit value is higher than the fourth credit value.
- 如权利要求1或2所述的方法,其特征在于,所述方法还包括:The method of claim 1 or 2, wherein the method further comprises:所述第一节点确定第三信用值,所述第三信用值为第二节点的信用值,其中,所述第二节点为所述区块链网络中的除所述第一节点之外的任意一个节点;Determining, by the first node, a third credit value, where the third credit value is a credit value of the second node, where the second node is other than the first node in the blockchain network Any one node;所述第一节点确定第四信用值,所述第四信用值为第三节点的信用值,其中,所述第三节点为所述区块链网络中的除所述第一节点和所述第二节点之外的任意一个节点;Determining, by the first node, a fourth credit value, where the fourth credit value is a credit value of a third node, wherein the third node is in the blockchain network except the first node and the Any node other than the second node;所述第一节点在确定所述第三信用值高于所述第四信用值的情况下,向所述第二节点发送交易信息,并在发送所述交易信息至所述第二节点之后,向所述第三节点发送所述交易信息。The first node, after determining that the third credit value is higher than the fourth credit value, sending transaction information to the second node, and after transmitting the transaction information to the second node, Transmitting the transaction information to the third node.
- 如权利要求1至4中任一项所述的方法,其特征在于,在所述第一节点确定第一信用值之前,所述方法还包括:The method according to any one of claims 1 to 4, wherein before the first node determines the first credit value, the method further comprises:所述第一节点向所述区块链网络中的X个节点发送加入请求消息,所述加入请求消息包括信用度信息,所述信用度信息用于指示所述第一节点的最新信用值,其中,X为大于或等于1的整数。The first node sends a join request message to the X nodes in the blockchain network, where the join request message includes credit information, where the credit information is used to indicate the latest credit value of the first node, where X is an integer greater than or equal to 1.
- 如权利要求5所述的方法,其特征在于,所述方法还包括:The method of claim 5, wherein the method further comprises:所述第一节点接收所述X个节点中的至少一个节点发出的认证确认消息并加入所述区块链网络,所述认证确认消息用于指示所述第一节点能够加入所述区块链网络;或者,The first node receives an authentication confirmation message sent by at least one of the X nodes and joins the blockchain network, where the authentication confirmation message is used to indicate that the first node can join the blockchain Network; or,所述第一节点从所述区块链网络中查询所述认证确认消息并加入所述区块链网络,所述认证确认消息用于确认所述第一节点能够加入所述区块链网络。The first node queries the authentication acknowledgement message from the blockchain network and joins the blockchain network, and the authentication confirmation message is used to confirm that the first node can join the blockchain network.
- 如权利要求1至6中任一项所述的方法,其特征在于,所述方法还包括:The method of any of claims 1 to 6, wherein the method further comprises:所述第一节点向信用统计区块链网络中的节点发送信用统计信息。The first node sends credit statistics information to nodes in the credit statistic blockchain network.
- 如权利要求1至7中任一项所述的方法,其特征在于,所述第一节点基于第一目标值进行工作量证明计算,包括:The method according to any one of claims 1 to 7, wherein the first node performs a workload proof calculation based on the first target value, comprising:所述第一节点基于第一目标值进行工作量证明计算获得共识确认权;The first node performs a workload proof calculation based on the first target value to obtain a consensus confirmation right;所述第一节点生成目标区块。The first node generates a target block.
- 如权利要求8所述的方法,其特征在于,所述目标区块包括第五信用值,所述第五信用值为所述第一信用值与预设的信用消耗值之差。The method of claim 8 wherein said target block comprises a fifth credit value and said fifth credit value is a difference between said first credit value and a predetermined credit consumption value.
- 如权利要求9所述的方法,其特征在于,所述预设的信用消耗值为预设的所述第一节点基于第一目标值进行工作量证明计算获得共识确认权时消耗的信用值。The method according to claim 9, wherein the preset credit consumption value is a preset credit value consumed by the first node based on the first target value to perform a workload proof calculation to obtain a consensus confirmation right.
- 如权利要求8至10任一项所述的方法,其特征在于,所述目标区块还包括高度差,所述高度差用于指示所述第一节点上一次基于所述第一目标值获得所述共识确认权的区块与当次基于所述第一目标值获得共识确认权的区块之间的区块高度差。The method according to any one of claims 8 to 10, wherein the target block further comprises a height difference, the height difference is used to indicate that the first node is last obtained based on the first target value The block height difference between the block of the consensus confirmation right and the block that obtained the consensus confirmation right based on the first target value.
- 如权利要求1至11任一项所述的方法,其特征在于,所述方法还包括:The method of any of claims 1 to 11, wherein the method further comprises:所述第一节点接收所述区块链网络中的第一交易信息,所述第一交易信息中包含信用需求值信息,所述信用需求信息用于指示所述第一交易信息被所述区块链节点进行共识确认所要求的信用值。Receiving, by the first node, first transaction information in the blockchain network, where the first transaction information includes credit demand value information, where the credit demand information is used to indicate that the first transaction information is used by the area The blockchain node performs a consensus confirmation of the required credit value.
- 如权利要求12所述的方法,其特征在于,所述方法还包括:The method of claim 12, wherein the method further comprises:所述第一节点确定所述第一信用值大于或等于所述第一交易信息被所述区块链节点进行共识确认所要求的信用值;Determining, by the first node, that the first credit value is greater than or equal to a credit value required for the first transaction information to be confirmed by the blockchain node for consensus confirmation;所述第一节点确定在生成的区块中包含所述第一交易信息。The first node determines to include the first transaction information in the generated block.
- 如权利要求1至13任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 13, wherein the method further comprises:所述第一节点基于第一目标值进行工作量证明计算获得共识确认权后,所述第一节点确定在之后的N个区块的共识确认权的竞争中不再基于第一目标值进行工作量证明计算;或者,After the first node performs the workload verification calculation to obtain the consensus confirmation right based on the first target value, the first node determines that the competition of the consensus confirmation right of the subsequent N blocks is no longer based on the first target value. Quantity proof calculation; or,所述第一节点基于第一目标值进行工作量证明计算获得共识确认权后,所述第一节点确定在之后的Y个时间单位内的区块的共识确认权的竞争中不再基于第一目标值进行工作量证明计算;或者,After the first node performs the workload proof calculation based on the first target value to obtain the consensus confirmation right, the first node determines that the competition of the consensus confirmation right of the block in the subsequent Y time units is no longer based on the first The target value is calculated for the workload; or,所述第一节点基于第一目标值进行工作量证明计算获得共识确认权后,所述第一节点确定在之后的N个区块的共识确认权的竞争中基于预设目标值或第二目标值进行工作量证明计算,所述第二目标值为对应于第三难度的目标值,所述第三难度小于第二难度且大于第一难度;或者,After the first node performs the workload proof calculation based on the first target value to obtain the consensus confirmation right, the first node determines that the competition of the consensus confirmation right of the next N blocks is based on the preset target value or the second target. The value performs a workload proof calculation, the second target value is a target value corresponding to the third difficulty, and the third difficulty is less than the second difficulty and greater than the first difficulty; or所述第一节点基于第一目标值进行工作量证明计算获得共识确认权后,所述第一节点确定在之后的Y个时间单位内的共识确认权的竞争中基于所述预设目标值或所述第二目标值进行工作量证明计算;其中,所述N和所述Y为正整数。After the first node performs the workload proof calculation based on the first target value to obtain the consensus confirmation right, the first node determines that the competition of the consensus confirmation right in the subsequent Y time units is based on the preset target value or The second target value performs a workload proof calculation; wherein the N and the Y are positive integers.
- 一种处理数据的方法,其特征在于,所述方法包括:A method of processing data, the method comprising:第二节点接收第一节点发送的加入请求消息,所述加入请求消息包括信用度信息,所述信用度信息用于指示所述第一节点在第一区块链网络中的信用值,所述第二节点为第二 区块链网络中的一个节点,所述第一节点为所述第一区块链网络中的一个节点;Receiving, by the second node, a join request message sent by the first node, where the join request message includes credit information, where the credit information is used to indicate a credit value of the first node in the first blockchain network, and the second The node is a node in the second blockchain network, and the first node is a node in the first blockchain network;所述第二节点根据所述信用度信息,获取所述第一节点在所述第一区块链网络中的信用值。And obtaining, by the second node, a credit value of the first node in the first blockchain network according to the credit information.
- 如权利要求15所述的方法,其特征在于,所述信用度信息为所述第一节点在第一区块链网络中的信用值,所述第二节点根据所述信用度信息,获取所述第一节点在所述第一区块链网络中的信用值包括:The method according to claim 15, wherein the credit information is a credit value of the first node in a first blockchain network, and the second node acquires the first information according to the credit information. The credit value of a node in the first blockchain network includes:所述第二节点根据所述信用度信息,获取所述信用值。The second node acquires the credit value according to the credit information.
- 如权利要求15所述的方法,其特征在于,所述信用度信息包括目标区块链网络中的记录所述信用值的目标区块信息,所述第二节点根据所述信用度信息,获取所述第一节点在所述第一区块链网络中的信用值包括:The method according to claim 15, wherein the credit information includes target block information in the target blockchain network that records the credit value, and the second node acquires the information according to the credit information. The credit value of the first node in the first blockchain network includes:所述第二节点根据所述目标区块信息向所述目标区块链网络发送查询请求消息,所述查询请求消息用于请求获取所述信用值;Sending, by the second node, a query request message to the target blockchain network according to the target block information, where the query request message is used to request to acquire the credit value;所述第二节点接收第三节点发送的查询响应信息,所述查询响应信息包括所述信用值,所述第三节点为所述目标区块链网络中的一个节点。The second node receives the query response information sent by the third node, where the query response information includes the credit value, and the third node is a node in the target blockchain network.
- 一种处理数据的方法,其特征在于,所述方法包括:A method of processing data, the method comprising:第三节点接收第一节点发送的信用统计信息,所述第三节点为信用统计区块链网络中的一个节点;The third node receives the credit statistics information sent by the first node, and the third node is a node in the credit statistics blockchain network;所述第三节点根据所述信用统计信息,确定所述第一节点的信用值。The third node determines a credit value of the first node according to the credit statistics information.
- 如权利要求18所述的方法,其特征在于,所述方法还包括:The method of claim 18, wherein the method further comprises:所述第三节点接收第二节点发送的查询请求消息,所述查询请求消息用于请求获取所述第一节点的信用值,所述第二节点为第二区块链网络中的一个节点;The third node receives a query request message sent by the second node, where the query request message is used to request to acquire the credit value of the first node, and the second node is a node in the second blockchain network;所述第三节点向所述第二节点发送查询反馈信息,所述查询反馈信息包括所述第一节点的信用值。The third node sends query feedback information to the second node, where the query feedback information includes a credit value of the first node.
- 一种处理数据的方法,其特征在于,所述方法包括:A method of processing data, the method comprising:第一节点获取第一区块链网络中的N个节点的信用值,其中所述第一节点为所述第一区块链网络中的任意一个节点,所述N为正整数;The first node acquires a credit value of N nodes in the first blockchain network, where the first node is any one of the first blockchain networks, and the N is a positive integer;所述第一节点根据所述第一区块链网络中的所述N个节点的信用值,确定采用第一方案进行工作量证明计算或采用第二方案进行工作量证明计算,其中采用所述第一方案进行所述工作量证明计算为基于第一目标值进行所述工作量证明计算,其中所述第一目标值为对应于第一难度的目标值,采用所述第二方案进行所述工作量证明计算为基于预设目标值进行所述工作量证明计算,其中所述预设目标值为对应于第二难度的目标值,所述第一难度小于所述第二难度。Determining, according to the credit value of the N nodes in the first blockchain network, the first node to perform workload proof calculation or using the second scheme to perform workload proof calculation, where The first solution performs the workload proof calculation to perform the workload proof calculation based on the first target value, wherein the first target value is a target value corresponding to the first difficulty, and the second scenario is used to perform the The workload proof is calculated to perform the workload proof calculation based on the preset target value, wherein the preset target value is a target value corresponding to the second difficulty, and the first difficulty is less than the second difficulty.
- 如权利要求20所述的方法,其特征在于,所述第一节点根据所述第一区块链网络中的所述N个节点的信用值,确定采用第一方案进行工作量证明计算或采用第二方案进行工作量证明计算,包括:The method according to claim 20, wherein the first node determines, according to the credit value of the N nodes in the first blockchain network, the workload calculation using the first scheme or adopts The second option performs workload proof calculations, including:所述第一节点在确定所述第一区块链网络中的所述N个节点的信用值均大于第一预设阈值的情况下,确定采用所述第一方案进行所述工作量证明计算;Determining, by the first node, that the workload verification calculation is performed by using the first solution, if the first node determines that the credit values of the N nodes in the first blockchain network are greater than a first preset threshold. ;所述第一节点在确定所述第一区块链网络中的M个节点的信用值小于或等于所述第 一预设阈值的情况下,确定采用所述第二方案进行所述工作量证明计算,其中,所述M为大于或者等于0且小于或者等于N的正整数。Determining, by the first node, that the workload is proved by using the second scheme, if the first node determines that a credit value of the M nodes in the first blockchain network is less than or equal to the first preset threshold. The calculation, wherein the M is a positive integer greater than or equal to 0 and less than or equal to N.
- 如权利要求21所述的方法,其特征在于,所述第一节点根据所述第一区块链网络中的N个节点的信用值,确定采用第一方案进行工作量证明计算或采用第二方案进行工作量证明计算,包括:The method according to claim 21, wherein the first node determines, according to the credit value of the N nodes in the first blockchain network, the first solution to perform workload proof calculation or adopts the second The program performs workload proof calculations, including:所述第一节点在确定所述第一区块链网络中的信用值大于第一预设阈值的节点数目与所述第一区块链网络中的全部节点数目的比值大于第三预设值的情况下,或者,确定所述第一区块链网络中的信用值大于第一预设阈值的节点数目大于第四预设值的情况下,确定采用所述第一方案进行所述工作量证明计算;The ratio of the number of nodes determining that the credit value in the first blockchain network is greater than the first preset threshold and the number of all nodes in the first blockchain network is greater than a third preset value; Or determining, in the case that the number of nodes in the first blockchain network that the credit value is greater than the first preset threshold is greater than the fourth preset value, determining that the workload is performed by using the first solution. Proof calculation所述第一节点在确定所述第一区块链网络中的信用值大于第一预设阈值的节点数目与所述第一区块链网络中的全部节点数目的比值小于或等于第三预设值的情况下,或者,确定所述第一区块链网络中的信用值大于第一预设阈值的节点数目小于或等于第四预设值的情况下,确定采用所述第二方案进行所述工作量证明计算。The ratio of the number of nodes determining that the credit value in the first blockchain network is greater than the first preset threshold and the number of all nodes in the first blockchain network is less than or equal to the third pre-determination In the case of setting the value, or determining that the number of nodes in the first blockchain network with the credit value greater than the first preset threshold is less than or equal to the fourth preset value, determining to adopt the second scheme The workload is calculated.
- 一种处理数据的装置,其特征在于,所述装置为区块链网络中的第一节点,所述装置用于执行如权利要求1至14中任一项所述的处理数据的方法的单元。An apparatus for processing data, characterized in that the apparatus is a first node in a blockchain network, and the apparatus is a unit for performing the method of processing data according to any one of claims 1 to 14. .
- 一种处理数据的装置,其特征在于,所述装置为区块链网络中的第二节点,所述装置用于执行如权利要求15至17中任一项所述的处理数据的方法的单元。An apparatus for processing data, characterized in that the apparatus is a second node in a blockchain network, and the apparatus is a unit for performing the method of processing data according to any one of claims 15 to 17. .
- 一种处理数据的装置,其特征在于,所述装置为信用统计区块链网络中的第三节点,所述装置用于执行如权利要求18或19所述的处理数据的方法的单元。An apparatus for processing data, characterized in that said apparatus is a third node in a credit statistic blockchain network, said apparatus for executing a unit of a method of processing data as claimed in claim 18 or 19.
- 一种处理数据的装置,其特征在于,所述装置为区块链网络中的第一节点,所述装置用于执行如权利要求20至22中任一项所述的处理数据的方法的单元。An apparatus for processing data, characterized in that the apparatus is a first node in a blockchain network, and the apparatus is a unit for performing the method of processing data according to any one of claims 20 to 22. .
- 一种处理数据的设备,其特征在于,包括:A device for processing data, comprising:存储器,用于存储计算机程序;a memory for storing a computer program;处理器,用于执行所述存储器中存储的计算机程序,以使得所述设备执行如权利要求1至22中任一项所述的处理数据的方法。A processor for executing a computer program stored in the memory to cause the device to perform the method of processing data according to any one of claims 1 to 22.
- 一种计算机可读存储介质,包括计算机程序,当其在计算机上运行时,使得所述计算机执行如权利要求1至22中任一项所述的处理数据的方法。A computer readable storage medium comprising a computer program, when executed on a computer, causing the computer to perform the method of processing data as claimed in any one of claims 1 to 22.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/076882 WO2019157740A1 (en) | 2018-02-14 | 2018-02-14 | Method for processing data, apparatus for processing data and device for processing data |
CN201880089370.3A CN111713088B (en) | 2018-02-14 | 2018-02-14 | Method and device for processing data and equipment for processing data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/076882 WO2019157740A1 (en) | 2018-02-14 | 2018-02-14 | Method for processing data, apparatus for processing data and device for processing data |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019157740A1 true WO2019157740A1 (en) | 2019-08-22 |
Family
ID=67619109
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/076882 WO2019157740A1 (en) | 2018-02-14 | 2018-02-14 | Method for processing data, apparatus for processing data and device for processing data |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111713088B (en) |
WO (1) | WO2019157740A1 (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111127144A (en) * | 2019-12-16 | 2020-05-08 | 中国联合网络通信集团有限公司 | User credit evaluation method, device and storage medium |
CN111199504A (en) * | 2019-12-29 | 2020-05-26 | 杭州拓深科技有限公司 | Decentralized fire protection maintenance supervision method based on block chain |
CN111242718A (en) * | 2019-12-18 | 2020-06-05 | 深圳大学 | Block chain-based data transaction method, device, equipment and medium |
CN112632610A (en) * | 2020-12-28 | 2021-04-09 | 杭州趣链科技有限公司 | Private data processing method, device and system |
CN112954037A (en) * | 2021-02-03 | 2021-06-11 | 中国互联网络信息中心 | Domain name abuse processing method and system based on alliance chain |
CN113127560A (en) * | 2019-12-31 | 2021-07-16 | 航天信息股份有限公司 | Competition accounting method and device |
CN114867016A (en) * | 2021-02-03 | 2022-08-05 | 北京邮电大学 | Node authentication method, system and device |
CN112988893B (en) * | 2021-03-15 | 2023-05-12 | 中国联合网络通信集团有限公司 | Information management method, system, block chain node and medium based on block chain |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106878396A (en) * | 2017-01-19 | 2017-06-20 | 布比(北京)网络技术有限公司 | The processing method of trade information, device and system |
CN107067242A (en) * | 2017-03-24 | 2017-08-18 | 钱德君 | Difficulty value creation method in a kind of block chain generating process |
CN107146152A (en) * | 2017-03-28 | 2017-09-08 | 杭州象链网络技术有限公司 | A kind of credit management system kept accounts based on block chain |
US20170323392A1 (en) * | 2016-05-05 | 2017-11-09 | Lance Kasper | Consensus system for manipulation resistant digital record keeping |
CN107438003A (en) * | 2016-05-27 | 2017-12-05 | 索尼公司 | Electronic equipment, method and information processing system for electronic equipment |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10162954B2 (en) * | 2014-02-04 | 2018-12-25 | Lenovo (Singapore) Pte. Ltd. | Biometric account card |
EP3292484B1 (en) * | 2015-05-05 | 2021-07-07 | Ping Identity Corporation | Identity management service using a block chain |
CN105488722B (en) * | 2015-11-30 | 2019-11-26 | 布比(北京)网络技术有限公司 | Asset data processing method and processing device based on derivative chain |
CN106453286B (en) * | 2016-09-27 | 2020-03-17 | 北京天德科技有限公司 | Reputation method and system based on block chain |
CN106651346A (en) * | 2016-11-28 | 2017-05-10 | 上海凯岸信息科技有限公司 | Block chain-based credit investigation data sharing and trading system |
CN107395403B (en) * | 2017-07-07 | 2020-01-14 | 北京区块链云科技有限公司 | Credit-based block chain consensus method suitable for large-scale electronic commerce |
CN107679976B (en) * | 2017-09-28 | 2021-02-12 | 电子科技大学 | Auction method based on block chain |
-
2018
- 2018-02-14 CN CN201880089370.3A patent/CN111713088B/en active Active
- 2018-02-14 WO PCT/CN2018/076882 patent/WO2019157740A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170323392A1 (en) * | 2016-05-05 | 2017-11-09 | Lance Kasper | Consensus system for manipulation resistant digital record keeping |
CN107438003A (en) * | 2016-05-27 | 2017-12-05 | 索尼公司 | Electronic equipment, method and information processing system for electronic equipment |
CN106878396A (en) * | 2017-01-19 | 2017-06-20 | 布比(北京)网络技术有限公司 | The processing method of trade information, device and system |
CN107067242A (en) * | 2017-03-24 | 2017-08-18 | 钱德君 | Difficulty value creation method in a kind of block chain generating process |
CN107146152A (en) * | 2017-03-28 | 2017-09-08 | 杭州象链网络技术有限公司 | A kind of credit management system kept accounts based on block chain |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111127144A (en) * | 2019-12-16 | 2020-05-08 | 中国联合网络通信集团有限公司 | User credit evaluation method, device and storage medium |
CN111242718A (en) * | 2019-12-18 | 2020-06-05 | 深圳大学 | Block chain-based data transaction method, device, equipment and medium |
CN111242718B (en) * | 2019-12-18 | 2024-01-19 | 深圳大学 | Block chain-based data transaction method, device, equipment and medium |
CN111199504A (en) * | 2019-12-29 | 2020-05-26 | 杭州拓深科技有限公司 | Decentralized fire protection maintenance supervision method based on block chain |
CN111199504B (en) * | 2019-12-29 | 2023-09-26 | 杭州拓深科技有限公司 | Block chain-based decentralization fire control maintenance supervision method |
CN113127560A (en) * | 2019-12-31 | 2021-07-16 | 航天信息股份有限公司 | Competition accounting method and device |
CN112632610A (en) * | 2020-12-28 | 2021-04-09 | 杭州趣链科技有限公司 | Private data processing method, device and system |
CN112954037A (en) * | 2021-02-03 | 2021-06-11 | 中国互联网络信息中心 | Domain name abuse processing method and system based on alliance chain |
CN114867016A (en) * | 2021-02-03 | 2022-08-05 | 北京邮电大学 | Node authentication method, system and device |
CN112988893B (en) * | 2021-03-15 | 2023-05-12 | 中国联合网络通信集团有限公司 | Information management method, system, block chain node and medium based on block chain |
Also Published As
Publication number | Publication date |
---|---|
CN111713088B (en) | 2022-03-01 |
CN111713088A (en) | 2020-09-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019157740A1 (en) | Method for processing data, apparatus for processing data and device for processing data | |
US20230023857A1 (en) | Data processing method and apparatus, intelligent device, and storage medium | |
US20210295321A1 (en) | Methods for decentralized digital asset transfer and smart contract state transition | |
Ren et al. | Incentive mechanism of data storage based on blockchain for wireless sensor networks | |
Jiao et al. | Auction mechanisms in cloud/fog computing resource allocation for public blockchain networks | |
TWI717927B (en) | Hybrid blockchain architecture with computing pool | |
WO2019144353A1 (en) | Blockchain-based data training method and device, storage medium and blockchain node | |
WO2019055585A1 (en) | Parallel-chain architecture for blockchain systems | |
Ferrer-Gomila et al. | A fair contract signing protocol with blockchain support | |
TW202145759A (en) | High throughput blockchain consensus systems, computer-implemented methods and non-transitory computer readable medium with low finalization time | |
WO2022121538A1 (en) | Data synchronization method and system based on blockchain, and related device | |
US20200250655A1 (en) | Efficient, environmental and consumer friendly consensus method for cryptographic transactions | |
KR20220006619A (en) | Method and device for recording work history and proving reputation in blockchain networks | |
CN113079132B (en) | Mass Internet of things equipment authentication method, storage medium and information data processing terminal | |
JP2024505692A (en) | Data processing methods, devices and computer equipment based on blockchain networks | |
US11875188B2 (en) | Data processing system using directed acyclic graph and method of use thereof | |
CN111385096B (en) | Block chain network system, signature processing method, terminal and storage medium | |
Kanemura et al. | Design of privacy-preserving mobile Bitcoin client based on γ-deniability enabled bloom filter | |
Tang et al. | Hedera: A permissionless and scalable hybrid blockchain consensus algorithm in multiaccess edge computing for IoT | |
Ding et al. | Pricing and budget allocation for IoT blockchain with edge computing | |
CN113939821A (en) | System and method for non-parallel mining on a workload justification blockchain network | |
US20240179019A1 (en) | Consensus result synchronization across algorithms of different fault tolerance types | |
Cui et al. | A secure and decentralized DLaaS platform for edge resource scheduling against adversarial attacks | |
Xie et al. | HCVC: A high-capacity off-chain virtual channel scheme based on bidirectional locking mechanism | |
Ullah et al. | Smart grid block-chain (BC) conceptual framework: Bi-directional models for renewable energy district and utility |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18906243 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18906243 Country of ref document: EP Kind code of ref document: A1 |