CN108615151B - Data processing method, block chain server and node equipment - Google Patents

Data processing method, block chain server and node equipment Download PDF

Info

Publication number
CN108615151B
CN108615151B CN201810375113.8A CN201810375113A CN108615151B CN 108615151 B CN108615151 B CN 108615151B CN 201810375113 A CN201810375113 A CN 201810375113A CN 108615151 B CN108615151 B CN 108615151B
Authority
CN
China
Prior art keywords
block
characteristic value
blockchain
indication information
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810375113.8A
Other languages
Chinese (zh)
Other versions
CN108615151A (en
Inventor
刘均
刘新
张擎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201810375113.8A priority Critical patent/CN108615151B/en
Publication of CN108615151A publication Critical patent/CN108615151A/en
Application granted granted Critical
Publication of CN108615151B publication Critical patent/CN108615151B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions

Landscapes

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

Abstract

The embodiment of the application discloses a data processing method, a block chain server and node equipment, which are used for reducing system resources consumed in the accounting right distribution process in a block chain system. The method in the embodiment of the application comprises the following steps: the block chain server determines a first block characteristic value of a first latest block on an Ethernet workshop main chain; the block chain server determines a target characteristic value in the characteristic value set according to the first block characteristic value; and the blockchain server sends indication information to the at least two node devices in a blockchain system, wherein the indication information is used for indicating a target node device corresponding to the target characteristic value to obtain accounting right, so that the target node device packages transaction information occurring on the blockchain into a new blockchain and registers the new blockchain in the blockchain.

Description

Data processing method, block chain server and node equipment
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a data processing method, a blockchain server, and a node device.
Background
The blockchain is a decentralized distributed ledger system, and compared with the traditional centralized ledger system, the blockchain system has the advantages of complete disclosure, no tampering, multiple payment prevention and the like, and does not depend on any trusted third party. Therefore, the blockchain system needs to design a consensus mechanism to perform consensus on the transactions occurring within a period of time in sequence, i.e., there is a set of algorithm to achieve consensus in the blockchain system.
At present, a common block chain common-identification mechanism is a proof of work (POW), each verification node device in the whole network calculates a random number meeting a rule through operation, when a certain verification node device calculates a random number meeting the rule, the current accounting right is obtained, and the data recorded this time is sent out, and then other node verification devices in the whole network are stored together.
However, the POW consensus algorithm executed by the blockchain system needs to perform a large amount of operations for each verification node device in the process of allocating the accounting right, which results in a large consumption of system resources in the process of allocating the accounting right.
Disclosure of Invention
The embodiment of the application provides a data processing method, a block chain server and node equipment, which are used for reducing system resources consumed in the accounting right distribution process in a block chain system.
In a first aspect, an embodiment of the present application provides a data processing method, including:
the block chain server determines a first block characteristic value of a first latest block on an Ethernet workshop main chain;
the block chain server determines a target characteristic value in the characteristic value set according to the first block characteristic abstract value;
and the blockchain server sends indication information to the at least two node devices in a blockchain system, wherein the indication information is used for indicating a target node device corresponding to the target characteristic value to obtain accounting right, so that the target node device packages transaction information occurring on the blockchain into a new blockchain and registers the new blockchain in the blockchain.
In a possible implementation manner, after the blockchain server sends the indication information to the at least two node devices in the blockchain system, the method further includes:
and the block chain server determines a second block characteristic value of a second latest block on the main chain of the Ethernet workshop according to a preset period, wherein the preset period is longer than the interval time between the blocks on the main chain of the Ethernet workshop.
In another possible implementation manner, before the blockchain server determines a target feature value in the set of feature values according to the first block feature value, the method further includes:
the block chain server sends request messages to at least two node devices in a block chain system;
and the blockchain server generates the characteristic value set according to the characteristic values of the account addresses corresponding to the at least two node devices.
In a second aspect, an embodiment of the present application provides a data processing method, including:
the node equipment receives indication information sent by a block chain server;
the node equipment determines that the node equipment obtains the accounting right according to the indication information;
the node equipment packages the transaction information occurring on the block chain into a new block;
the verifying node device registers the new block in the block chain.
In a possible implementation manner, the indication information includes a target feature value or an account address; the node device determining that the node device obtains the accounting right according to the indication information includes:
the node device determines that the target characteristic value is consistent with the characteristic value of the account address of the node device;
alternatively, the first and second electrodes may be,
the node device determines that the account address in the indication information is consistent with the account address of the node device.
In another possible implementation manner, before the node device receives the indication information sent by the blockchain server, the method further includes:
the node equipment calculates the account address of the node equipment according to a preset rule to obtain a characteristic value of the account address;
and the node equipment responds to the request message of the blockchain server and sends the characteristic value of the account address to the blockchain server.
In a third aspect, an embodiment of the present application provides a blockchain server, including:
the first determining unit is used for determining a first block characteristic value of a first latest block on the main chain of the Ethernet workshop;
a second determining unit, configured to determine a target feature value in the set of feature values according to the first block feature value;
and the first sending unit is used for sending indication information to the at least two node devices in the blockchain system, wherein the indication information is used for indicating a target node device corresponding to the target characteristic value to obtain an accounting right, so that the target node device packages the transaction information occurring on the blockchain into a new block and registers the new block into the blockchain.
In a possible implementation manner, the first determining unit is further configured to:
and determining a second block characteristic value of a second latest block on the main chain of the Ethernet workshop according to a preset period, wherein the preset period is longer than the interval time generated between the blocks on the main chain of the Ethernet workshop.
In another possible implementation manner, the blockchain server further includes:
a second sending unit, configured to send a request message to at least two node devices in the blockchain system;
a receiving unit, configured to receive a feature value of an account address sent by the at least two node devices in response to the request message;
and the generating unit is used for generating the characteristic value set according to the characteristic values of the account addresses corresponding to the at least two node devices.
In a fourth aspect, an embodiment of the present application provides a node device, including:
the receiving unit is used for receiving the indication information sent by the block chain server;
a determining unit, configured to determine, according to the indication information, that the node device obtains an accounting right;
the packaging unit is used for packaging the transaction information occurring on the block chain into a new block;
a registration unit for registering the new block in the block chain.
In a possible implementation manner, the indication information includes a target feature value or an account address; the determining unit is specifically configured to:
determining that the target characteristic value is consistent with a characteristic value of an account address of the node device;
alternatively, the first and second electrodes may be,
and determining that the account address in the indication information is consistent with the account address of the node equipment.
In another possible implementation manner, the node device further includes:
the computing unit is used for computing the account address of the node equipment according to a preset rule to obtain a characteristic value of the account address;
a response unit, configured to respond to the request message of the blockchain server;
and the sending unit is used for sending the characteristic value of the account address to the block chain server.
In a fifth aspect, an embodiment of the present application provides a blockchain server, including:
a processor, a memory, an input-output device, and a bus;
the processor, the memory and the input and output equipment are respectively connected with the bus, and computer instructions are stored in the memory;
the processor, when executing the computer instructions in the memory, is configured to implement any of the implementations of the first aspect.
In a sixth aspect, an embodiment of the present application provides a node device, including:
a processor, a memory, an input-output device, and a bus;
the processor, the memory and the input and output equipment are respectively connected with the bus, and computer instructions are stored in the memory;
the processor, when executing the computer instructions in the memory, is configured to implement any of the implementations of the second aspect.
In a seventh aspect, an embodiment of the present application provides a computer program product including instructions, which when run on a computer, cause the computer to perform the implementation manner as set forth in any one of the first aspect or the second aspect.
In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, which is characterized by including instructions, when the instructions are executed on a computer, the instructions cause the computer to perform the implementation manner as set forth in any one of the first aspect or the second aspect.
According to the technical scheme, the embodiment of the application has the following advantages:
according to the technical scheme, the blockchain server determines a first block characteristic value of a first latest block on the main chain of the ethernet workshop, then the blockchain server determines a target characteristic value in the characteristic value set according to the first block summary, and then the blockchain server can send indication information to at least two node devices in the blockchain system, wherein the indication information is used for indicating a target node device corresponding to the target characteristic value to obtain an accounting right, so that the target node device packages transaction information occurring on the blockchain into a new block and registers the new block into the blockchain. Therefore, the block chain server determines a target characteristic value in the characteristic value set according to the first block characteristic value of the first nearest block of the ether house main chain, and then the block chain server sends indication information to at least two node devices in the block chain system, wherein the indication information is used for indicating the target node device corresponding to the target characteristic value to obtain the accounting right, so that the target node device obtains the accounting right, and the transaction information occurring in the block chain is packaged into a new block and is registered in the block chain.
Drawings
FIG. 1 is a system framework diagram of data processing in an embodiment of the present application;
FIG. 2 is a schematic diagram of an embodiment of a data processing method in an embodiment of the present application;
FIG. 3 is a schematic diagram of another embodiment of a data processing method in the embodiment of the present application;
FIG. 4 is a schematic diagram of another embodiment of a data processing method in the embodiment of the present application;
fig. 5 is a schematic structural diagram of a blockchain server according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a node device in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a blockchain server according to an embodiment of the present invention;
fig. 8 is another schematic structural diagram of a node device in the embodiment of the present application.
Detailed Description
The embodiment of the application provides a data processing method, a block chain server and node equipment, which are used for reducing system resources consumed in the accounting right distribution process in a block chain system.
Referring to fig. 1, in a data processing process, a blockchain server and node devices need to participate, where the number of the node devices is determined by the number of the node devices in the blockchain system, and fig. 1 is an example for illustrating an application scenario of the present application, and the number of the node devices may be more, which is not limited herein. The block chain server is used for collecting the characteristic values of the node equipment, determining a target characteristic value according to the block characteristic value of the latest block of the Ethernet main chain and publishing indication information in the whole network, wherein the indication information is used for indicating the target node equipment corresponding to the target characteristic value to obtain the accounting right, so that the target node equipment processes transaction data on the block chain to generate a new block and registers the new block into the block chain, and the whole consensus process is completed. The block chain is a database of block chains formed by combining blocks in a chain. The block chain is a transaction database shared by all nodes in the system, the block chain is used for storing transaction data, and each node device of the block chain can synchronously update and backup complete data node devices for processing the data, so that the common identification of the transaction data is realized.
Referring to fig. 2, a data processing method in an embodiment of the present application is described below from the perspective of a blockchain server, where an embodiment of the data processing method in the embodiment of the present application includes:
201. the blockchain server determines a first block characteristic value for a first latest block on the ethernet backbone.
New blocks are continuously generated on the ethernet main chain, each new block has a corresponding block characteristic value, and the block chain server determines the first block characteristic value of the first latest block on the ethernet main chain.
202. And the block chain server determines a target characteristic value in the characteristic value set according to the first block characteristic value.
After the blockchain server determines the first block characteristic value, a target characteristic value in a characteristic value set is determined according to the first block characteristic value, wherein the characteristic value set is the characteristic values of the account addresses of the at least two node devices acquired by the blockchain server from the at least two node devices. Specifically, the blockchain server may determine a target feature value having a smallest difference value with the first block feature value in the feature value set, may also determine a target feature value having a largest difference value with the first block feature value in the feature value set by the blockchain server, and may also be in other manners, which is not limited herein.
203. The blockchain server sends indication information to at least two node devices in the blockchain system.
After the blockchain server determines the target feature value, the blockchain server sends the indication information to at least two node devices in the blockchain system, where the indication information is used to indicate that the target node device corresponding to the target feature value obtains the accounting right. It should be noted that the indication information may be a target characteristic value, or may be an account address of the target node device, and is not limited herein.
In the embodiment of the application, a block chain server determines a first block characteristic value of a first latest block on an Ethernet main chain, and then the block chain server determines a target characteristic value in a characteristic value set according to the first block characteristic value; the blockchain server may then send, in the blockchain system, indication information to at least two node devices, where the indication information is used to indicate that the target node device corresponding to the target feature value obtains the accounting right, so that the target node device packages the transaction information occurring on the blockchain into a new blockchain and registers the new blockchain into the blockchain. Therefore, the block chain server determines a target characteristic value in the characteristic value set according to the first block characteristic value of the first nearest block of the ether house main chain, and then the block chain server sends indication information to the at least two node devices in the block chain system, wherein the indication information is used for indicating the target node device corresponding to the target characteristic value to obtain the accounting right, and then the target node device obtains the accounting right.
In the above, the data processing method in the embodiment of the present application is described from the perspective of the blockchain server, and in the following, the data processing method in the embodiment of the present application is described from the perspective of the node device, please refer to fig. 3, where another embodiment of the data processing method in the embodiment of the present application includes:
301. and the node equipment receives the indication information sent by the blockchain server.
After the block chain server determines the block characteristic value of the latest block of the ethernet, the block chain server determines a target characteristic value in the characteristic value set according to the first block characteristic value, and then the block chain server sends indication information to at least two node devices in the block chain, so that the at least two node devices can receive the indication information sent by the block chain server, and the indication information is used for indicating the node devices to obtain the accounting right.
It should be noted that the indication information may be a target characteristic value of the account address of the node device, or may be the account address of the node device, which is not limited herein.
302. And the node equipment determines that the node equipment obtains the accounting right according to the indication information.
After the node device receives the indication information, it is determined that the node device obtains the accounting right according to the indication information. Specifically, when the indication information includes a target characteristic value, the node device determines that the target characteristic value is consistent with a characteristic value of its account address, and then may determine that it obtains the accounting right, and when the indication information includes an account address, the node device determines that the account address is consistent with its account address, and then may determine that it obtains the accounting right, which is not limited herein.
303. The node device encapsulates the transaction information that occurred on the blockchain into a new block.
After the node device determines that it obtains the accounting right, the node device packages the transaction information occurring on the blockchain to generate a new block. It should be noted that the transaction information may be transaction data generated in the blockchain system over a period of time.
304. The node device registers the new block into the blockchain.
After the verification node device generates a new block from the transaction information, the new block is uploaded to the block chain to become one of the blocks in the block chain.
In the embodiment of the application, the node device receives indication information sent by a blockchain server, where the indication information is used to indicate the node device to obtain the accounting right, then the node device determines that the node device obtains the accounting right according to the indication information, the node device encapsulates transaction information occurring on a blockchain into a new block, and then the node device registers the new block into the blockchain. Therefore, according to the data processing method of the embodiment of the application, after the node device receives the indication information of the blockchain server, it can be determined that the node device obtains the accounting right according to the indication information, and then the transaction information is processed correspondingly. Therefore, in the process of acquiring the accounting right, a large amount of calculation is not needed to be carried out by the node equipment, and therefore, the system resources consumed in the process of acquiring the accounting right are reduced.
In a possible implementation manner, after the blockchain server sends the indication information to the at least two node devices in the blockchain system, the method further includes: the block chain server determines a second block characteristic value of a second latest block on the main chain of the Ethernet workshop according to a preset period, wherein the preset period is longer than the interval time generated between the blocks on the main chain of the Ethernet workshop. The preset period is greater than 15s, and the preset period may be 30s or 1 minute, and the like, which is not limited herein.
In another possible implementation manner, before the blockchain server determines the target feature value in the set of feature values according to the first block feature value, the method may further include: the blockchain server sends request messages to at least two node devices in a blockchain system; the blockchain server receives the characteristic value of the account address sent by the at least two node devices in response to the request message; the block chain server generates the characteristic value set according to the characteristic values of the account addresses corresponding to the at least two node devices; the node device may also be configured to actively send the characteristic value of the account address to the blockchain server, which is not limited herein, and in the following embodiments, only the node device actively sends the characteristic value to the blockchain server is taken as an example for description.
In another possible implementation manner, the indication information may include a target feature value corresponding to the account address of the target node device or the account address of the target node device, which is not specifically limited to the description in the subsequent embodiments that only the indication information includes the account address of the target verification node device.
In another possible implementation manner, the indication information includes a target feature value or an account address; the node equipment determines that the verification node equipment obtains the accounting right according to the indication information, wherein the node equipment determines that the target characteristic value is consistent with the characteristic value of the account address of the target characteristic value; or, the node device determines that the account address in the indication information is consistent with the account address. In the following embodiments, only the indication information includes the account address, and the node device determines that the account address is consistent with the account address thereof.
In another possible implementation manner, before the node device receives the indication information sent by the blockchain server, the method may further include: the node equipment calculates the account address of the node equipment according to a preset rule to obtain the characteristic value of the account address, responds to the request message of the block chain server and sends the characteristic value of the account address to the block chain server.
In another possible implementation manner, the characteristic value of the account address of the node device may include a digest value of the account address; the digest value of the account address of the node device may be obtained by performing hash operation on the account address of the node device by the node device; or the node device performs a digest operation on the account address to obtain the digest value of the account address, which is not limited in the present application, and in the following embodiments, the node device performs a hash operation on the account address to obtain the digest value of the account address.
In this embodiment of the application, the indication information may include an account address, and after receiving the indication information, the node device may determine that it obtains the billing right according to the account address in the indication information, which is described in detail below with reference to fig. 4.
Referring to fig. 4, in the embodiment of fig. 4, after receiving the indication information, the target node device may determine that the account address in the indication information is consistent with its account address, then package the transaction information and generate a new block, and register the new block in a block chain, where another embodiment of the data processing method in the embodiment of the present application includes:
401. and the plurality of node devices generate digest values by carrying out hash operation on the account addresses of the plurality of node devices.
In the blockchain system, in the process of performing consensus on transaction data, each node device is required to verify that the consensus is achieved before the transaction data can be generated into a blockchain and uploaded into the blockchain. In the application, a plurality of node devices generate digest values of account addresses of the plurality of node devices through hash operation.
402. The plurality of node devices send digest values of their account addresses to the blockchain server.
After the node devices generate the digest values, each node device sends the digest value of its account address to the blockchain server.
403. And the block chain server generates a summary value set from the summary values sent by the plurality of node devices.
After receiving the digest values sent by the plurality of node devices, the blockchain server may generate a digest value set from the digest values, and store the digest value set in the blockchain server, where each digest value corresponds to one node device.
404. The blockchain server determines a first blockdigest value for a first most recent block of the ethernet backbone.
The latest block is generated on the ether house main chain at regular intervals, and then the block chain server in this time zone can determine the first block digest value of the first latest block of the ether house main chain, it should be noted that, after the block chain server determines the first block digest value, when the second block digest value is determined next time, because the interval time for the ether house main chain to generate the new block is 15s, the block chain server determines the second block digest value of the second latest block of the ether house main chain according to a preset period, where the preset period is greater than 15s, which may be one minute or 30s, and the like, and the specific details are not limited herein.
405. And the block chain server determines a target abstract value in the abstract value set according to the first block abstract value.
After the blockchain server determines the first block digest value, the blockchain server may determine a target digest value in the digest value set according to the first block digest value, specifically, the blockchain server determines the target digest value having the smallest difference with the first block digest value, or the blockchain server determines the target digest value having the largest difference with the first block digest value, or other quantitative relationships, such as a target digest value having a difference of 10 with the first block digest value, which is not limited in this application.
406. The blockchain server transmits the indication information to the plurality of node apparatuses.
After the blockchain server determines the target digest value, the blockchain server sends indication information to the plurality of node devices, where the indication information includes account addresses of the target node devices corresponding to the target digest value. For example, node devices A, B, C and D, the blockchain server determines that the target node device is A, and the blockchain server sends A, B, C and D the account address of node device A, respectively.
407. The target node device determines that the account address in the indication information is consistent with the account address.
After receiving the indication information sent by the blockchain server, the target node device determines that the account address in the indication information is consistent with the account address thereof. It should be noted that, after receiving the indication information, the node devices A, B, C and D in step 406 determine whether the account address in the indication information is consistent with its account address, and if so, determine to obtain the accounting right, and if not, the node device abandons the packaging of the new block with the same height and waits for the consensus process at the next time point. Since the block abstract value of the newest block on the ether workshop main chain is known in the whole network and is random, the block chain server selects a target node device according to the block abstract value to realize the credible data consensus process, and the whole consensus process can be traced, checked and can not be false.
408. And the target node equipment packages the transaction information into a new block.
After the target node device determines that the account address in the indication information is consistent with the account address, the transaction information occurring on the blockchain is packaged into a new block. It should be noted that the transaction information is transaction data generated within an interval duration of determining the block digest value of the latest block of the ethernet for the blockchain server, and may be multiple data or none data, when no transaction is generated within the interval duration, the data packet is packed to be an empty data packet, and when a transaction is generated within the interval duration, the transaction information is packed and encapsulated into a new block.
409. The target node device new block is registered into the blockchain.
After the target verification node device creates a new block, it registers the new block into the blockchain as a block on the blockchain.
In the embodiment of the application, a block chain server determines a first block digest value of a first latest block on an ether workshop main chain, and then the block chain server determines a target digest value in a digest value set according to the first block digest, wherein the digest value set comprises a set of digest values of account addresses of a plurality of verification node devices acquired by the block chain server from a plurality of node devices; the blockchain server may then send, in the blockchain system, indication information to the plurality of node devices, where the indication information is used to indicate that the target node device corresponding to the target digest value obtains the accounting right, so that the target node device packages the transaction information occurring on the blockchain into a new blockchain and registers the new blockchain. Therefore, the block chain server determines a target abstract value in the abstract value set according to the first block abstract value of the first nearest block of the ether house main chain, and then the block chain server sends indication information to the plurality of node devices in the block chain system, wherein the indication information is used for indicating the target node device corresponding to the target abstract value to obtain the accounting right, and then the target node device obtains the accounting right.
The above describes the data processing method in the embodiment of the present application, and please refer to fig. 5 for describing the blockchain server in the embodiment of the present application, where the second sending unit 504, the receiving unit 505, and the generating unit 506 are optional units, and an embodiment of the blockchain server in the embodiment of the present application includes:
a first determining unit 501, configured to determine a first block digest feature value of a first latest block on an ethernet main chain;
a second determining unit 502, configured to determine a target feature value in the set of feature values according to the first block feature value;
a first sending unit 503, configured to send, in the blockchain system, indication information to at least two node devices, where the indication information is used to indicate that a target node device corresponding to the target feature value obtains an accounting right, so that the target node device packages transaction information occurring on the blockchain into a new block and registers the new block into the blockchain.
In this embodiment, the first determining unit 501 is further configured to:
and determining a second block characteristic value of a second latest block on the main chain of the Ethernet workshop according to a preset period, wherein the preset period is longer than the interval time generated between the blocks on the main chain of the Ethernet workshop.
In this embodiment, the blockchain server further includes:
a second sending unit 504, configured to send a request message to at least two node devices in the blockchain system;
a receiving unit 505, configured to receive a characteristic value of an account address where the at least two node devices respond to the request message;
a generating unit 506, configured to generate a set of feature values according to the feature values of the account addresses corresponding to the at least two node devices.
In this embodiment of the application, the first determining unit 501 determines a first block feature value of a first latest block on an ethernet main chain, and then the second determining unit 502 determines a target feature value in a feature value set according to the first block summary; the first sending unit 503 may then send, in the blockchain system, indication information to at least two node devices, where the indication information is used to indicate that a target node device corresponding to the target feature value obtains an accounting right, so that the target node device packages transaction information occurring on the blockchain into a new block and registers the new block into the blockchain. Therefore, the second determining unit 502 determines a target feature value in the feature value set according to the first block feature value of the first nearest block of the ethernet main chain, and then the first sending unit 503 sends, in the blockchain system, indication information to at least two verification node devices, where the indication information is used to indicate the target node device corresponding to the target feature value to obtain the billing right, so that the target node device obtains the billing right, and then packages transaction information into a new block to be registered in the blockchain.
The above describes the data processing method in the embodiment of the present application, and please refer to fig. 6 for describing the node device in the embodiment of the present application, where the calculating unit 605, the responding unit 606, and the sending unit 607 are optional units, and an embodiment of the node device in the embodiment of the present application includes:
a receiving unit 601, configured to receive indication information sent by a blockchain server;
a determining unit 602, configured to determine, according to the indication information, that the node device obtains an accounting right;
a packaging unit 603, configured to package the transaction information occurring on the blockchain into a new block;
a registering unit 604, configured to register the new block into the block chain.
In this embodiment, the indication information includes a target feature value or an account address; the determining unit 602 is specifically configured to:
determining that the target characteristic value is consistent with the characteristic value of the account address of the node device;
alternatively, the first and second electrodes may be,
and determining that the account address in the indication information is consistent with the account address of the node device.
In this embodiment, the node device further includes:
the calculating unit 605 is configured to calculate the account address of the node device according to a preset rule to obtain a characteristic value of the account address;
a response unit 606, configured to respond to the request message of the blockchain server;
a sending unit 607, configured to send the characteristic value of the account address to the blockchain server.
In this embodiment, the receiving unit 601 receives indication information sent by the blockchain server, then the determining unit 602 determines that the node device obtains the accounting right according to the indication information, the encapsulating unit 603 encapsulates transaction information occurring on the blockchain into a new block, and the registering unit 604 registers the new block into the blockchain. Therefore, according to the data processing method of the present application, after the receiving unit 601 receives the indication information of the blockchain server, the determining unit 602 can determine to obtain the accounting right according to the indication information, then the encapsulating unit 603 encapsulates the transaction information occurring on the blockchain into a new block, and the registering unit 604 registers the new block into the blockchain.
Referring to fig. 7, an embodiment of the blockchain server 700 in the present application further includes:
a processor 701, a memory 702, an input-output device 703, and a bus 704;
the processor 701, the memory 702, and the input/output device 703 are respectively connected to the bus 704, and the memory 702 stores computer instructions;
the processor 701 is configured to determine a first block characteristic value of a first latest block on the ethernet main chain; determining a target characteristic value in the characteristic value set according to the first block characteristic value;
the input/output device 703 is configured to send, in the blockchain system, indication information to at least two node devices, where the indication information is used to indicate that a target node device corresponding to the target feature value obtains an accounting right, so that the target node device packages transaction information occurring on the blockchain into a new block, and registers the new block in the blockchain.
In one possible implementation, the processor 701 is further configured to:
and determining a second block characteristic value of a second latest block on the main chain of the Ethernet workshop according to a preset period, wherein the preset period is longer than the interval time generated between the blocks on the main chain of the Ethernet workshop.
In another possible implementation manner, the processor 701 is further configured to:
sending a request message to at least two node devices in a blockchain system;
and generating a characteristic value set according to the characteristic values of the account addresses corresponding to the at least two node devices.
Referring to fig. 8, an embodiment of a node device 800 in the present application further includes:
a processor 801, a memory 802, an input-output device 803, and a bus;
the processor 801, the memory 802, and the input/output device 803 are respectively connected to the bus 804, and the memory 802 stores computer instructions;
the input/output device 803 is configured to receive indication information sent by the blockchain server;
the processor 801 is configured to determine, according to the indication information, that the node device obtains an accounting right; the transaction information occurring on the blockchain is packaged into a new block, which is registered into the blockchain.
In a possible implementation manner, the indication information includes a target feature value or an account address; the processor 801 is specifically configured to:
determining that the target characteristic value is consistent with the characteristic value of the account address of the node device;
alternatively, the first and second electrodes may be,
and determining that the account address in the indication information is consistent with the account address of the node device.
In another possible implementation manner, the processor 801 is further configured to:
calculating the account address of the node equipment according to a preset rule to obtain a characteristic value of the account address; and responding to the request message of the block chain server, and sending the characteristic value of the account address to the block chain server.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (8)

1. A method of data processing, the method comprising:
the block chain server determines a first block characteristic value of a first latest block on an Ethernet workshop main chain;
the block chain server determines a target characteristic value in the characteristic value set according to the first block characteristic value;
the blockchain server sends indication information to at least two node devices in a blockchain system, wherein the indication information is used for indicating a target node device corresponding to the target characteristic value to obtain an accounting right, so that the target node device packages transaction information occurring on the blockchain into a new blockchain and registers the new blockchain in the blockchain;
before the blockchain server determines a target feature value in the set of feature values according to the first block feature value, the method further includes: the block chain server sends request messages to at least two node devices in a block chain system; the blockchain server receives the characteristic value of the account address sent by the at least two node devices in response to the request message; and the blockchain server generates the characteristic value set according to the characteristic values of the account addresses corresponding to the at least two node devices.
2. The method of claim 1, wherein after the blockchain server sends the indication information to the at least two node devices in a blockchain system, the method further comprises:
and the block chain server determines a second block characteristic value of a second latest block on the main chain of the Ethernet workshop according to a preset period, wherein the preset period is longer than the interval time between the blocks on the main chain of the Ethernet workshop.
3. A method of data processing, the method comprising:
the node equipment receives indication information sent by a block chain server; the block chain server is used for determining a first block characteristic value of a first latest block on the main chain of the Ethernet workshop; the block chain server determines a target characteristic value in the characteristic value set according to the first block characteristic value; the indication information is used for indicating the node equipment corresponding to the target characteristic value to obtain the accounting right;
the node equipment determines that the node equipment obtains the accounting right according to the indication information;
the node equipment packages the transaction information occurring on the block chain into a new block;
the node device registering the new block in the block chain;
before the node device receives the indication information sent by the blockchain server, the method further includes: the node equipment calculates the account address of the node equipment according to a preset rule to obtain a characteristic value of the account address; and the node equipment responds to a request message of the blockchain server and sends the characteristic value of the account address to the blockchain server so that the blockchain server generates the characteristic value set according to the characteristic value of the account address.
4. The method of claim 3, wherein the indication information comprises a target feature value or an account address; the node device determining that the node device obtains the accounting right according to the indication information includes:
the node device determines that the target characteristic value is consistent with the characteristic value of the account address of the node device;
alternatively, the first and second electrodes may be,
the node device determines that the account address in the indication information is consistent with the account address of the node device.
5. A blockchain server, the blockchain server comprising:
the first determining unit is used for determining a first block characteristic value of a first latest block on the main chain of the Ethernet workshop;
a second determining unit, configured to determine a target feature value in the set of feature values according to the first block feature value;
before the block chain server determines a target feature value in the set of feature values according to the first block feature value, the method further includes: the block chain server sends request messages to at least two node devices in a block chain system; the blockchain server receives the characteristic value of the account address sent by the at least two node devices in response to the request message; the blockchain server generates the characteristic value set according to the characteristic values of the account addresses corresponding to the at least two node devices;
and the sending unit is used for sending indication information to the at least two node devices in the blockchain system, wherein the indication information is used for indicating a target node device corresponding to the target characteristic value to acquire an accounting right, so that the target node device packages the transaction information occurring on the blockchain into a new block and registers the new block into the blockchain.
6. A data processing apparatus, characterized in that the data processing apparatus comprises:
the receiving unit is used for receiving the indication information sent by the block chain server; the block chain server is used for determining a first block characteristic value of a first latest block on the main chain of the Ethernet workshop; the block chain server determines a target characteristic value in the characteristic value set according to the first block characteristic value; the indication information is used for indicating the node equipment corresponding to the target characteristic value to obtain the accounting right;
before the node device receives the indication information sent by the blockchain server, the method further includes: the node equipment calculates the account address of the node equipment according to a preset rule to obtain a characteristic value of the account address; the node equipment responds to a request message of the blockchain server and sends the characteristic value of the account address to the blockchain server so that the blockchain server generates the characteristic value set according to the characteristic value of the account address;
the determining unit is used for determining that the node equipment acquires the accounting right according to the indication information;
the packaging unit is used for packaging the transaction information occurring on the block chain into a new block;
a registration unit for registering the new block in the block chain.
7. A blockchain server, comprising a processor, a memory, an input output device, and a bus;
the processor, the memory and the input and output equipment are respectively connected with the bus, and computer instructions are stored in the memory;
the processor, when executing computer instructions in the memory, is configured to implement the data processing method of any of claims 1 to 2.
8. A data processing apparatus, characterized in that the data processing apparatus comprises a processor, a memory, an input-output device and a bus;
the processor, the memory and the input and output equipment are respectively connected with the bus, and computer instructions are stored in the memory;
the processor, when executing computer instructions in the memory, is configured to implement the data processing method of any of claims 3 to 4.
CN201810375113.8A 2018-04-24 2018-04-24 Data processing method, block chain server and node equipment Active CN108615151B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810375113.8A CN108615151B (en) 2018-04-24 2018-04-24 Data processing method, block chain server and node equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810375113.8A CN108615151B (en) 2018-04-24 2018-04-24 Data processing method, block chain server and node equipment

Publications (2)

Publication Number Publication Date
CN108615151A CN108615151A (en) 2018-10-02
CN108615151B true CN108615151B (en) 2022-04-15

Family

ID=63660576

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810375113.8A Active CN108615151B (en) 2018-04-24 2018-04-24 Data processing method, block chain server and node equipment

Country Status (1)

Country Link
CN (1) CN108615151B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109802967B (en) * 2019-01-25 2021-06-15 上海创景信息科技有限公司 Block chain information tracking method and system
CN110113172B (en) * 2019-04-29 2022-04-15 深圳市元征科技股份有限公司 Difficulty adjustment method and related equipment
CN112637300B (en) * 2019-06-18 2022-11-11 贝富(广州)新技术有限公司 Block chain-based distributed storage and acquisition method and device for video information
CN110751544A (en) * 2019-10-18 2020-02-04 中国联合网络通信集团有限公司 Bidding information, supervision information and bid evaluation information processing method, terminal and system
CN111147253B (en) * 2019-12-23 2021-11-16 联想(北京)有限公司 Information processing method, information processing device, electronic equipment and storage medium
CN111291122B (en) * 2020-02-04 2023-09-12 重庆大学 Bidding method and device based on block chain
CN111355797B (en) * 2020-02-27 2024-04-05 平安壹钱包电子商务有限公司 Data reconciliation updating method, device, computer equipment and storage medium
CN113506100B (en) * 2021-06-25 2023-08-08 网易(杭州)网络有限公司 Alliance chain data processing method, device, computer equipment and storage medium
WO2024065216A1 (en) * 2022-09-27 2024-04-04 Wormholes Lab Pte. Ltd. Multi-dimensional blockchain architecture

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10097344B2 (en) * 2016-07-15 2018-10-09 Mastercard International Incorporated Method and system for partitioned blockchains and enhanced privacy for permissioned blockchains
US10417217B2 (en) * 2016-08-05 2019-09-17 Chicago Mercantile Exchange Inc. Systems and methods for blockchain rule synchronization
CN106296191A (en) * 2016-08-13 2017-01-04 深圳市樊溪电子有限公司 A kind of PoW common recognition mechanism of block chain power-aware
CN106850536B (en) * 2016-11-30 2020-01-07 北京瑞卓喜投科技发展有限公司 Block chain consensus method and system
CN107566124B (en) * 2017-08-24 2020-06-19 深圳市易成自动驾驶技术有限公司 Hash operation-based consensus establishing method, block chain system and storage medium

Also Published As

Publication number Publication date
CN108615151A (en) 2018-10-02

Similar Documents

Publication Publication Date Title
CN108615151B (en) Data processing method, block chain server and node equipment
CN107480990B (en) Block chain accounting method and device
US20220407726A1 (en) Consensus method for blockchain, consensus node, electronic device, and storage medium
US20190386834A1 (en) Blockchain management apparatus, blockchain management method, and program
KR101994455B1 (en) distributed network system operating a group for the nodes included in the system
CN110070445B (en) Transaction processing method and device based on blockchain system
CN108681900A (en) The method of light node verification transaction
CN109408590B (en) Method, device and equipment for expanding distributed database and storage medium
CN104598551A (en) Data statistics method and device
CN107038182A (en) Divide the completeness inspection method and device of table data
CN112714196B (en) Node management method, device, equipment and storage medium based on block chain network
CN112184436B (en) Data synchronization method, electronic device and readable storage medium
CN111064776B (en) Block generation method in block chain, accounting node and storage medium
CN109302300A (en) Data distributing method and device, data processing method and server
CN111177255A (en) Data consistency detection method and device, storage medium and server
CN111338903B (en) Alarm method and device for transaction abnormality
CN109345252A (en) A kind of online trading control method, device and computer equipment
CN111277626A (en) Server upgrading method and device, electronic equipment and medium
CN108021597B (en) Parallel counter, server and counting method
CN112131267B (en) Count processing method, device, server and count processing system
CN114266665A (en) Contract multi-backbone cross-link method, device and storage medium
CN110879787A (en) Client test method and system
CN111314189B (en) Service message sending method and device
CN113313566A (en) Internal settlement method, internal settlement device, storage medium and electronic equipment
CN112910995A (en) Resource allocation method and device based on multi-cloud environment, electronic equipment and medium

Legal Events

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