CN113032478B - Block chain system and data uplink method, device, equipment and medium - Google Patents

Block chain system and data uplink method, device, equipment and medium Download PDF

Info

Publication number
CN113032478B
CN113032478B CN201911350135.XA CN201911350135A CN113032478B CN 113032478 B CN113032478 B CN 113032478B CN 201911350135 A CN201911350135 A CN 201911350135A CN 113032478 B CN113032478 B CN 113032478B
Authority
CN
China
Prior art keywords
data
transaction data
transaction
block
blockchain node
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
CN201911350135.XA
Other languages
Chinese (zh)
Other versions
CN113032478A (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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN201911350135.XA priority Critical patent/CN113032478B/en
Publication of CN113032478A publication Critical patent/CN113032478A/en
Application granted granted Critical
Publication of CN113032478B publication Critical patent/CN113032478B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • 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
    • G06Q30/00Commerce
    • G06Q30/04Billing or invoicing
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The invention discloses a blockchain system, and a data uplink method, device, equipment and medium, which are used for solving the problem of low practicability of the existing blockchain system. Each block chain node in the block chain system broadcasts first transaction data in a common identification period and receives second transaction data broadcast by other block chain nodes; and if the self is confirmed to be the block chain node for carrying out transaction for the first time in the common identification period according to each transaction data acquired locally, packaging the acquired transaction data in the common identification period into first block data for transmission, and connecting the first block data after the last block data recorded locally. Because the blockchain node can package and send the blockchain data when determining that the blockchain node is the first blockchain node for transaction in the consensus period according to the transaction time of the transaction data acquired by the blockchain node, the processor resource consumed by performing a large amount of calculation is saved, and the practicability of the blockchain system is improved.

Description

Block chain system and data uplink method, device, equipment and medium
Technical Field
The present invention relates to the field of blockchain technologies, and in particular, to a blockchain system, and a method, an apparatus, a device, and a medium for data uplink.
Background
Enterprises receive the electronic invoice number segments from the tax bureau according to the sequence, each enterprise uses each number in the electronic invoice number segments to issue electronic invoices in the sequence in the respective number segments, and because the enterprises have uncertainty in transaction invoicing, the time and frequency of consuming the electronic invoice number segments are different among the enterprises, and therefore the enterprises with the qualification of packaging transaction assembly blocks need to be determined.
And when determining enterprises with the qualification of packaging transaction assembly blocks, mainly adopting a block chain consensus algorithm, wherein the block chain system consensus algorithm comprises a random sampling algorithm and a Bayesian algorithm, and the random sampling algorithm is suitable for a large number of block chain nodes, such as bitcoin and Ethernet adopted work proof of works (POW); the bayer pattern algorithm is suitable for a small number of blockchain nodes. Because of the large number of enterprises, each enterprise corresponds to a blockchain node, a random sampling algorithm is used in determining blockchain nodes that qualify for packaging transaction assembly blocks.
However, the random sampling algorithm in the prior art has very large calculation amount when determining the blockchain node qualified for the package transaction assembly block, and the consumed processor resource is too high, thus causing the problem of low practicability of the blockchain system.
Disclosure of Invention
The embodiment of the invention provides a blockchain system, a data uplink method, a device, equipment and a medium, which are used for solving the problem of low practicability of the existing blockchain system.
The embodiment of the invention provides a block chain system, which comprises the following components: a first blockchain node and at least one second blockchain node;
the first block chain node is used for broadcasting first transaction data in a common identification period and receiving second transaction data broadcasted by each second block chain node; according to each acquired transaction data, if the transaction data is confirmed to be the block chain node for performing transaction for the first time in the consensus period, the acquired transaction data in the consensus period is packaged into block data for transmission, and the block data is connected after the last block data of the local record;
each second blockchain node is configured to broadcast second transaction data in the consensus period, receive the first transaction data broadcast by the first blockchain node and second transaction data broadcast by other second blockchain nodes except the second blockchain node, and if it is determined that each obtained transaction data is not the blockchain node for performing the first transaction in the consensus period, receive the block data sent by other blockchain nodes except the second blockchain node and connect the second blockchain node to the last block data recorded locally.
Further, the first blockchain node is further configured to package the obtained transaction data in the consensus period and the transaction data not packaged in the last consensus period.
Further, the first blockchain node is further configured to, if it is determined that the first blockchain node performs a transaction in the consensus period is the first blockchain node, verify the obtained transaction data in the consensus period, and package the transaction data that passes the verification.
Further, the second blockchain node is further configured to, after receiving the blockdata sent by the blockchain nodes other than the second blockchain node, verify the transaction data included in the blockdata, and connect the blockdata that passes the verification after the last blockdata of the local record.
Correspondingly, the embodiment of the invention provides a data uplink method, which comprises the following steps:
broadcasting first transaction data in a consensus period, and receiving second transaction data broadcast by each second blockchain node;
and according to each acquired transaction data, if the acquired transaction data is confirmed to be the block chain node for performing the transaction for the first time in the common recognition period, packaging the acquired transaction data in the common recognition period into block data for transmission, and connecting the block data after the last block data of the local record.
Further, the step of packaging the acquired transaction data in the consensus period into block data for transmission includes:
and packing the acquired transaction data in the consensus period and the transaction data which are not packed in the last consensus period into block data to be sent.
Further, the step of packaging the acquired transaction data in the consensus period into block data for transmission includes:
and verifying the obtained transaction data in the consensus period, and packaging the transaction data passing verification.
Correspondingly, the embodiment of the invention provides a data uplink method, which comprises the following steps:
broadcasting second transaction data in the consensus period, and receiving the first transaction data broadcast by the first blockchain node and second transaction data broadcast by other second blockchain nodes except the first transaction data and the second transaction data broadcast by the second blockchain node;
and according to each acquired transaction data, if the block chain node is not the block chain node for performing the first transaction in the consensus period, receiving the block data sent by other block chain nodes except the block chain node and connecting the block data with the last block data recorded locally.
Further, after receiving the block data sent by other block chain nodes except the block chain node itself and connecting to the last block data recorded locally, the method includes:
And after receiving the block data sent by other block chain nodes except the block data, verifying the transaction data contained in the block data, and connecting the block data passing verification after the last block data of the local record.
Accordingly, an embodiment of the present invention provides a data uplink device, including:
the broadcasting module is used for broadcasting the first transaction data in a common identification period and receiving the second transaction data broadcasted by each second blockchain node;
the sending module is used for packaging the acquired transaction data in the consensus period into block data to be sent if the acquired transaction data is confirmed to be the block chain node for carrying out the transaction for the first time in the consensus period;
and the connection module is used for connecting the block data after the last block data recorded locally.
Further, the sending module is specifically configured to package the obtained transaction data in the common recognition period and the transaction data not packaged in the last common recognition period into block data for sending.
Further, the sending module is specifically configured to verify the obtained transaction data in the consensus period, and package the transaction data passing verification.
Accordingly, an embodiment of the present invention provides a data uplink device, including:
the broadcasting module is used for broadcasting second transaction data in the consensus period and receiving the first transaction data broadcasted by the first blockchain node and the second transaction data broadcasted by the second blockchain nodes except the broadcasting module;
and the connection module is used for receiving the block data sent by other block chain nodes except the block chain node and connecting the block data after the last block data recorded locally if the block chain node is determined not to be the block chain node for carrying out the first transaction in the consensus period according to the acquired transaction data.
Further, the connection module is specifically configured to, after receiving the block data sent by the other block chain nodes except the connection module, verify the transaction data included in the block data, and connect the block data that passes the verification after the last block data recorded locally.
Accordingly, an embodiment of the present invention provides an electronic device, where the electronic device includes a processor and a memory, where the memory is configured to store a computer program, and the processor is configured to implement steps of any one of the above-mentioned data-chaining methods when executing the computer program stored in the memory.
Accordingly, an embodiment of the present invention provides a computer readable storage medium storing a computer program which when executed by the processor implements the steps of any of the methods described above for data chaining.
The embodiment of the invention provides a block chain system, a data uplink method, a device, equipment and a medium, wherein each block chain node in the block chain system broadcasts first transaction data in a consensus period and receives second transaction data broadcasted by other block chain nodes; and if the self is confirmed to be the block chain node for carrying out transaction for the first time in the common identification period according to each transaction data acquired locally, packaging the acquired transaction data in the common identification period into first block data for transmission, and connecting the first block data after the last block data recorded locally. Because the blockchain node can determine whether the blockchain node is the first blockchain node for transaction in the consensus period according to the transaction time of the transaction data acquired by the blockchain node, and when the blockchain node is determined to be the first blockchain node for transaction in the consensus period, the blockdata is packed and sent, so that the processor resource consumed by performing a large amount of calculation is saved, and the practicability of the blockchain system is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a block chain system according to an embodiment of the present invention;
fig. 2 is a schematic process diagram of a data uplink method according to an embodiment of the present invention;
FIG. 3 is a schematic process diagram of another method for data uplink according to the embodiment of the present invention;
fig. 4 is a schematic structural diagram of a data uplink device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another data uplink device according to the embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the financial transaction field, block link points which are qualified for packaging transaction assembly blocks are determined mainly by adopting a random sampling algorithm; while the random sampling algorithm includes a workload certification algorithm and a leader election algorithm.
The proof of workload algorithm requires a random hash operation when determining blockchain nodes that qualify for a packed transaction assembly block, and introduces a scan operation for a particular value, such as hash function SHA-256, when doing a random hash operation, the random hash value starts with one or more preambles 0. As the number of preambles 0 increases, the amount of effort required to find this solution will increase exponentially, while checking the result requires only one random hash operation. A random number is appended to the block data, the random number being such that a desired number of 0 s appear for a random hash value given the block data. This random number is found by iterative attempts until found, thus constructing a proof of workload algorithm. The information of the block data cannot be changed unless there is a block link point to accomplish a considerable amount of work again. Since the block data following the block data in the blockchain is linked to the block data, the entire workload of all the block data following the block data in the blockchain needs to be completed again in order to change the information in the block data.
Meanwhile, the workload certification algorithm also solves the problem of who is most when voting in a collective manner. If it is determined that most of the ways are based on IP addresses, one IP address for one ticket, the algorithm is destroyed if someone has the right to assign a large number of IP addresses. The nature of the workload certification algorithm is a CPU ticket. The "majority" decision is expressed as the longest chain, as the longest chain represents the greatest amount of work. If most CPUs are in honest blockchain node control, honest chains will lengthen at the fastest speed and go beyond other competing chains. If it is desired to modify block data within a block chain that has already occurred, an attacker must re-complete the workload of the block data plus the workload of all the block data after the block data and eventually catch up with and surpass the workload of the honest block chain nodes.
Another problem is that the speed of operation of hardware is growing at high speeds, and the extent to which blockchain nodes participate in the network varies. To solve this problem, the difficulty of the workload certification will be determined by a moving average target method, i.e. the difficulty is directed to a certain predetermined average of the rate at which the block data is generated per hour. If the block data is generated too fast, the difficulty increases.
In order to effectively achieve a distributed consensus, a good random sampling function has several features:
fairness: the function should distribute leader elections among the most extensive participants possible;
investment: the cost of controlling the leader election process should be proportional to the value obtained from it;
and (3) verification: it should be relatively simple for all participants to verify whether the leader is legally selected.
The leader election algorithm uses new secure CPU instructions widely available in consumer and enterprise processors. These characteristics are used by the leader election algorithm to ensure the security and randomness of the leader election process without the need for high energy costs and specialized hardware investments in most attestation algorithms.
The basic work of the leader election algorithm is as follows:
1. each blockchain verification node requests a wait time from the trusted function enclave;
2. for the specific transaction block data, selecting the block chain verification node with the shortest waiting time as a leader;
3. the function CreateTimer creates a timer for the transaction block, which timer guarantees creation by the trusted function;
4. the function CheckTimer verification timer is created by a trusted function that, if the timer has expired, will create a proof that can be used to verify that the blockchain verification node did not assert the leader role until the allotted time.
The leader election algorithm meets the criteria of a good random sampling algorithm. It randomly distributes leader elections among all blockchain verification nodes, the distribution of which is similar to other sampling algorithms. The probability of selection is proportional to the resource provided, where the resource is a general purpose processor with a trusted execution environment. Performing the certification provides a certification for certifying that the certificate was created in the trusted function, and a time certification that the blockchain verifying node has waited for the allocation. In addition, the lower participation cost increases the total number of the block chain verification nodes, and the robustness of the consistency algorithm is improved.
Both of the above consensus algorithms require a significant amount of processor resources to reach consensus, which results in the problem of low practicality of existing blockchain systems.
In order to improve the practicability of a blockchain system, the embodiment of the invention provides the blockchain system, and a data uplink method, a device, equipment and a medium.
Example 1:
FIG. 1 is a block chain system according to an embodiment of the present invention, the block chain system comprising: a first blockchain node 11 and at least one second blockchain node 12;
the first blockchain node 11 is configured to broadcast first transaction data in a common period, and receive second transaction data broadcast by each second blockchain node; according to each acquired transaction data, if the transaction data is confirmed to be the block chain node for performing transaction for the first time in the consensus period, the acquired transaction data in the consensus period is packaged into block data for transmission, and the block data is connected after the last block data of the local record;
Each second blockchain node 12 is configured to broadcast second transaction data in the common identification period, receive the first transaction data broadcast by the first blockchain node and second transaction data broadcast by other second blockchain nodes except for the second blockchain node, and if it is determined that each obtained transaction data is not the blockchain node that performs the first transaction in the common identification period, receive the block data sent by other blockchain nodes except for the second blockchain node and connect the second blockchain node to the last block data recorded locally.
The blockchain system may be a point-To-point (P2P) network consisting of a plurality of blockchain links. P2P is an application layer protocol running on top of the transmission control protocol (Transmission Control Protocol, TCP), the blockchain nodes in a blockchain system may peer to each other, there being no central blockchain node in the system, so each blockchain node may randomly connect to other blockchain nodes. In the blockchain system, each blockchain node can be internally provided with a preset database, each blockchain node jointly maintains a public account book in the blockchain system through the preset database, and the preset database in the blockchain node can store the blockdata in the blockchain system; the block data comprises a block header and a block body, the block header comprises information such as a hash value of the previous block, a hash value of the current block, a block height of the current block, a time stamp and the like, and the block body comprises transaction data such as transaction data generated by processing transactions by a block chain node in a block chain system.
In the embodiment of the present invention, a plurality of blockchain nodes may be included in the blockchain system, where the first blockchain node 11 is any blockchain node in the blockchain system that may receive transaction data in the network, and the blockchain node in the blockchain system may be a blockchain node independently used as a server, or may be a blockchain node connected to a server by a tax disc, and in particular, the embodiment of the present invention is not limited thereto.
Wherein the first transaction data may be transaction data submitted by a terminal device to the first blockchain node 11; the first transaction data may also be transaction data submitted to the first blockchain node 11 based on clients in the terminal device.
The first blockchain node 11 is configured to broadcast first transaction data during a consensus period, where the consensus period is a time required for all blockchain links in the blockchain system to complete a data interaction and agree, and the consensus of all blockchain links in the blockchain system is a blockchain node that determines a qualification of packaging transaction assembled blocks in the blockchain system; specifically, in the embodiment of the present invention, the consensus among all the blockchain nodes in the blockchain system refers to determining the blockchain node that is the first to transact.
Thus, the first blockchain node 11 broadcasts first transaction data in a common period, and other blockchain nodes in the blockchain system than the first blockchain node 11 can receive the broadcasted first transaction data, and the first blockchain node 11 also receives transaction data broadcast by other blockchain nodes in the blockchain system than itself, namely second transaction data broadcast by each second blockchain node 12 in the blockchain system.
After receiving the second transaction data broadcast by each second blockchain node 12, the first blockchain node 11 can determine whether the first blockchain node is the blockchain node for performing transactions for the first time in the common period according to the transaction time contained in each obtained transaction data, that is, determine whether the first transaction data of the first blockchain node 11 has the transaction data with the earliest transaction time in all the transaction data, and if the first transaction data has the transaction data with the earliest transaction time in all the transaction data, determine that the first blockchain node 11 is the blockchain node for performing transactions for the first time in the common period.
When the first blockchain node 11 determines itself to be the first blockchain node to conduct transactions in the consensus period, the first blockchain node 11 determines itself to be the blockchain node with qualification of packaging transaction assembly blocks in the consensus period, and the first blockchain node 11 obtains the accounting right of the blockchain in the current consensus period, that is, the first blockchain node 11 connects new block data after the locally recorded block data.
The first blockchain node 11 packages all transaction data acquired in the current consensus period into one block data to be sent, and connects the block data after the last block data recorded locally.
Each second blockchain node 12, when the first blockchain node 11 broadcasts first transaction data in a common period, each second blockchain node 12 also broadcasts second transaction data in the same common period, and receives transaction data broadcast by other blockchain points in the blockchain system except itself, namely, the first transaction data broadcast by the first blockchain point and the second transaction data broadcast by other second blockchain nodes except itself.
The second blockchain node 12 obtains the accounting right from the blockchain node with the qualification of packaging transaction assembly blocks when determining that the second blockchain node is not the first blockchain node for transaction in the consensus period according to each transaction data acquired by the second blockchain node, and the second blockchain node 12 receives the blockdata sent by the other blockchain nodes except the second blockchain node and is connected with the blockdata after the last locally recorded blockdata, namely, the blockchain recorded by the second blockchain node 12 is also updated.
Because in the embodiment of the invention, each block chain node in the block chain system broadcasts first transaction data in a consensus period and receives second transaction data broadcast by other block chain nodes; and if the self is confirmed to be the block chain node for carrying out transaction for the first time in the common identification period according to each transaction data acquired locally, packaging the acquired transaction data in the common identification period into first block data for transmission, and connecting the first block data after the last block data recorded locally. Because each blockchain node judges whether the blockchain node is the blockchain node for carrying out transaction for the first time in the consensus period, the blockchain node for carrying out transaction for the first time in the consensus period is determined to be the blockchain node with qualification of packaging transaction assembly blocks in the consensus period, the processor resource consumed by carrying out a large amount of calculation is saved, and the practicability of the blockchain system is improved.
Example 2:
in order to ensure the integrity of the packed transaction data, in the embodiment of the present invention, the first blockchain node 11 is further configured to package the acquired transaction data in the common identification period and the transaction data not packed in the previous common identification period.
The first blockchain node 11 is a blockchain node in the blockchain system that qualifies for packaging transaction assembly blocks when the first blockchain node 11 determines itself to be the first blockchain node to conduct transactions in the blockchain system, the first blockchain node 11 obtains accounting rights for blockchains in the consensus period, and the first blockchain node 11 concatenates the blockdata after packaging transaction data into the blockdata and after the last blockdata is locally recorded.
Specifically, in order to ensure the integrity of the packaged transaction data, the packaged transaction data includes transaction data in the current consensus period and transaction data not packaged in the last consensus period, the first blockchain node 11 packages the obtained transaction data in the consensus period and the transaction data not packaged in the last consensus period into block data, and connects the block data after the last block data locally recorded by the first blockchain node 11.
Example 3:
in order to ensure the security of the packaged transaction data, in the embodiment of the present invention, the first blockchain node 11 is further configured to verify the obtained transaction data in the consensus period if it is determined that the first blockchain node performs the transaction in the consensus period is the blockchain node, and package the transaction data passing the verification.
The first blockchain node 11 confirms itself as the blockchain node that first performs the transaction in the consensus period, and before the first blockchain node 11 packages the transaction data in the consensus period, the first blockchain node also needs to verify the transaction data in the consensus period, where the verification specifically refers to determining whether the transaction data in the consensus period is changed.
The first blockchain node 11 verifies the transaction data in the common period using prior art methods.
Specifically, the transaction data includes original data information of the transaction data, and signature information generated by encrypting the transaction data by using a private key by the second blockchain node 12 broadcasting the transaction data; based on the public key of the second blockchain node 12 broadcasting the transaction data, the first blockchain node 11 may decrypt the signature information of the transaction data and determine a first hash value of the transaction data. The first blockchain node 11 performs hash operation on the transaction data again to obtain a second hash value of the transaction data, judges whether the second hash value is consistent with the first hash value, and if so, the transaction data passes verification; if the second hash value is inconsistent with the first hash value, the transaction data verification is not passed.
Example 4:
in order to ensure the accuracy of the transaction data in the block data, in the embodiment of the present invention, the second blockchain node 12 is further configured to verify the transaction data included in the block data after receiving the block data sent by other blockchain nodes except the second blockchain node, and connect the block data that passes the verification after the last block data recorded locally.
After receiving the block data sent by other block chain nodes except the second block chain node 12, the second block chain node verifies the transaction data contained in the block data, namely, judges whether the transaction data contained in the block data is changed or not.
The second blockchain node 12 verifies the transaction data contained in the blockdata using prior art methods.
Specifically, the second blockchain node 12 decrypts the signature information of the transaction data included in the block data by using the public key of the blockchain node broadcasting the block data, where the blockchain node broadcasting the block data is any blockchain node except itself in the blockchain system, and specifically may be the first blockchain node 11 or any second blockchain node 12 except itself.
A first hash value of the transaction data may be determined based on the decryption result. The second blockchain node 12 performs hash operation on the transaction data again to obtain a second hash value of the transaction data, judges whether the second hash value is consistent with the first hash value, and if so, the transaction data passes verification; if the second hash value is inconsistent with the first hash value, the transaction data verification is not passed.
Since the block data includes at least one transaction data, when all transaction data in the block data passes the verification, the block data passes the verification; when any transaction data in the block data fails to pass the verification, the block data fails to pass the verification.
The second blockchain node 12 concatenates the verified block data after the last block data recorded locally.
Example 5:
fig. 2 is a schematic process diagram of a data uplink method according to an embodiment of the present invention, where the process includes the following steps:
s201: first transaction data broadcast during a common period and second transaction data broadcast by each second blockchain node are received.
The method is applied to a first block chain node in the block chain system, wherein the first block chain node can be any block chain node in the block chain system, the first block chain node broadcasts first transaction data in a common identification period, and simultaneously receives second transaction data broadcast by every second block chain node except the first block chain node in the block chain system, namely, each block chain node in the block chain system broadcasts transaction data in a common identification period.
S202: and according to each acquired transaction data, if the acquired transaction data is confirmed to be the block chain node for performing the transaction for the first time in the common recognition period, packaging the acquired transaction data in the common recognition period into block data for transmission, and connecting the block data after the last block data of the local record.
To determine the blockchain node that qualifies for a packed transaction assembly block, the first blockchain node also needs to determine if itself is the first blockchain node to transact within the consensus period.
Therefore, the first blockchain node can determine whether the first blockchain node is the blockchain node for performing the transaction for the first time in the consensus period according to the transaction time contained in each transaction data, specifically, whether the first transaction data of the first blockchain node comprises the transaction data with the earliest transaction time in all the transaction data or not is judged, if so, the first blockchain node confirms that the first blockchain node is the blockchain node for performing the transaction for the first time in the consensus period.
When the first blockchain node confirms that the first blockchain node is the blockchain node for the first transaction in the common identification period, the first blockchain node 11 determines that the first blockchain node is the blockchain node with the qualification of packaging transaction assembly blocks in the common identification period, and the first blockchain node packages all transaction data obtained in the common identification period into blockdata. To achieve all blockchain nodes updating the saved blockchain, the first blockchain node sends the packed blockdata and the first blockchain node concatenates the blockdata after the last blockdata locally recorded.
To ensure the integrity of the packaged transaction data, after the identifying itself as the blockchain node that first conducts the transaction in the consensus period, the method further includes:
and packing the acquired transaction data in the consensus period and the transaction data which are not packed in the last consensus period into block data to be sent.
The first blockchain node is a blockchain node qualified for packaging transaction assembly blocks in the blockchain system when the first blockchain node is determined to be the first blockchain node for transaction in the blockchain system, the first blockchain node obtains the accounting rights of the blockchain in the common identification period, and the first blockchain node packages transaction data into block data and connects the block data after the last block data is locally recorded.
Specifically, in order to ensure the integrity of the packaged transaction data, the packaged transaction data comprises transaction data in the current consensus period and non-packaged transaction data in the last consensus period, and the first block link point packages the obtained transaction data in the consensus period and the non-packaged transaction data in the last consensus period into block data; and concatenating the packetized block data after the last block data recorded locally at the first blockchain node.
In order to ensure the security of the packed transaction data, after the block chain node which is the first to conduct the transaction in the consensus period is confirmed, the method further comprises:
and verifying the obtained transaction data in the consensus period, and packaging the transaction data passing verification.
The first blockchain node confirms that the first blockchain node is the blockchain node for carrying out transaction in the consensus period, and before the first blockchain node packages transaction data in the consensus period, the first blockchain node also needs to verify the transaction data in the consensus period, and the verification specifically refers to judging whether the transaction data in the consensus period is changed or not.
The method for verifying the transaction data in the consensus period by the first blockchain node adopts the method in the prior art.
Specifically, the transaction data includes original data information of the transaction data and signature information generated by encrypting the transaction data by using a private key by a second blockchain node broadcasting the transaction data; the first blockchain node may decrypt the signature information of the transaction data and determine a first hash value of the transaction data based on a public key of a second blockchain node broadcasting the transaction data. The first block chain node carries out hash operation on the transaction data again to obtain a second hash value of the transaction data, judges whether the second hash value is consistent with the first hash value, and if so, the transaction data passes verification; if the second hash value is inconsistent with the first hash value, the transaction data verification is not passed.
In the embodiment of the invention, the first blockchain node can determine whether the first blockchain node is the blockchain node for carrying out transaction for the first time in the consensus period according to the transaction time contained in each acquired transaction data, and when the first blockchain node is determined to be the blockchain node for carrying out transaction for the first time in the consensus period, the first blockchain node packages all the transaction data acquired in the current consensus period into one blockdata to be transmitted, and the last blockdata recorded locally is connected with the blockdata. Thereby enabling the addition of transaction data within a consensus period to the blockchain and saving a significant amount of processor resources consumed by the computation.
Example 6:
fig. 3 is a schematic process diagram of a data uplink method according to an embodiment of the present invention, where the process includes the following steps:
s301: broadcasting second transaction data in the consensus period, and receiving the first transaction data broadcast by the first blockchain node and second transaction data broadcast by other second blockchain nodes except the first transaction data and the second transaction data broadcast by the second blockchain node.
The method is applied to any second blockchain node in the blockchain system except the first blockchain node, the second blockchain node 12 broadcasts second transaction data in a consensus period, and the consensus period is the same as the consensus period of the first blockchain node broadcasting the first transaction data.
And the second blockchain node receives the transaction data broadcast by other blockchain nodes except the second blockchain node in the blockchain system, namely the second blockchain node receives the first transaction data broadcast by the first blockchain node and the second transaction data broadcast by other second blockchain nodes except the second blockchain node.
S302: and according to each acquired transaction data, if the block chain node is not the block chain node for performing the first transaction in the consensus period, receiving the block data sent by other block chain nodes except the block chain node and connecting the block data with the last block data recorded locally.
And the second blockchain node obtains the accounting right by the blockchain node with the qualification of packaging transaction assembly blocks when determining that the second blockchain node is not the first blockchain node for transaction in the consensus period according to each transaction data acquired by the second blockchain node, receives the blockdata sent by other blockchain nodes except the second blockchain node, and is connected with the blockdata after the last locally recorded blockdata, namely the blockchain recorded by the second blockchain node is also updated.
In order to ensure the accuracy of the transaction data in the block data, the receiving the block data sent by other block chain nodes except the block data and connected to the last block data recorded locally includes:
and after receiving the block data sent by other block chain nodes except the block data, verifying the transaction data contained in the block data, and connecting the block data passing verification after the last block data of the local record.
After receiving the block data sent by other block chain nodes except the second block chain node, the second block chain node verifies the transaction data contained in the block data, namely judges whether the transaction data contained in the block data is changed or not.
The second blockchain node verifies the transaction data contained in the blockdata using prior art methods.
Specifically, the second blockchain node decrypts the signature information of the transaction data contained in the blockdata by adopting a public key of a blockchain node broadcasting the blockdata, wherein the blockchain node broadcasting the blockdata is any blockchain node except for the second blockchain node in the blockchain system, and the second blockchain node can be a first blockchain node or any second blockchain node except for the second blockchain node.
A first hash value of the transaction data may be determined based on the decryption result. The second block chain node carries out hash operation on the transaction data again to obtain a second hash value of the transaction data, judges whether the second hash value is consistent with the first hash value, and if so, the transaction data passes verification; if the second hash value is inconsistent with the first hash value, the transaction data verification is not passed.
Since the block data includes at least one transaction data, when all transaction data in the block data passes the verification, the block data passes the verification; when any transaction data in the block data fails to pass the verification, the block data fails to pass the verification.
The last block data locally recorded by the second blockchain node is then connected with the block data passing verification.
Because in the embodiment of the invention, the second blockchain node can determine whether the second blockchain node is the blockchain node for performing the first transaction in the common period according to the transaction time contained in each acquired transaction data, and when the second blockchain node is determined not to be the blockchain node for performing the first transaction in the common period, the second blockchain node receives the blockdata sent by other blockchain nodes except the second blockchain node and is connected with the blockdata after the last locally recorded blockdata. Thereby enabling the addition of transaction data within a consensus period to the blockchain and saving a significant amount of processor resources consumed by the computation.
Example 7:
fig. 4 is a schematic structural diagram of a data uplink device according to an embodiment of the present invention, where on the basis of the foregoing embodiment, the embodiment of the present invention provides a data uplink device, and the device includes:
a broadcasting module 401, configured to broadcast first transaction data in a common period, and receive second transaction data broadcast by each second blockchain node;
A sending module 402, configured to, according to each obtained transaction data, package the obtained transaction data in the consensus period into block data for sending if the obtained transaction data is confirmed to be the block chain node that performs the transaction for the first time in the consensus period;
a connection module 403, configured to connect the block data after the last block data recorded locally.
Further, the sending module 402 is specifically configured to package the obtained transaction data in the common identification period and the transaction data not packaged in the previous common identification period into block data for sending.
Further, the sending module 402 is specifically configured to verify the obtained transaction data in the consensus period, and package the transaction data passing the verification.
The data uplink device is located in a first blockchain node that includes all of the modules of the data uplink device described above.
In the embodiment of the invention, the first blockchain node can determine whether the first blockchain node is the blockchain node for carrying out transaction for the first time in the consensus period according to the transaction time contained in each acquired transaction data, and when the first blockchain node is determined to be the blockchain node for carrying out transaction for the first time in the consensus period, the first blockchain node packages all the transaction data acquired in the current consensus period into one blockdata to be transmitted, and the last blockdata recorded locally is connected with the blockdata. Thereby enabling the addition of transaction data within a consensus period to the blockchain and saving a significant amount of processor resources consumed by the computation.
Example 8:
fig. 5 is a schematic structural diagram of a data uplink device according to an embodiment of the present invention, where on the basis of the foregoing embodiment, the embodiment of the present invention provides a data uplink device, and the device includes:
a broadcasting module 501, configured to broadcast second transaction data in the common period, and receive the first transaction data broadcast by the first blockchain node and second transaction data broadcast by other second blockchain nodes except the first blockchain node;
and the connection module 502 is configured to receive the block data sent by the other block chain nodes except the block chain node and connect the block data to the last block data recorded locally if it is determined that the block chain node is not the block chain node for performing the first transaction in the consensus period according to each obtained transaction data.
Further, the connection module 502 is specifically configured to verify transaction data included in the block data after receiving the block data sent by other block chain nodes except the connection module itself, and connect the block data that passes the verification after the last block data recorded locally.
The data uplink device is located in each second blockchain node, and each second blockchain node includes all modules of the data uplink device.
Because in the embodiment of the invention, the second blockchain node can determine whether the second blockchain node is the blockchain node for performing the first transaction in the common period according to the transaction time contained in each acquired transaction data, and when the second blockchain node is determined not to be the blockchain node for performing the first transaction in the common period, the second blockchain node receives the blockdata sent by other blockchain nodes except the second blockchain node and is connected with the blockdata after the last locally recorded blockdata. Thereby enabling the addition of transaction data within a consensus period to the blockchain and saving a significant amount of processor resources consumed by the computation.
Example 9:
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and on the basis of the foregoing embodiments, the embodiment of the present invention further provides an electronic device, which includes a processor 601, a communication interface 602, a memory 603, and a communication bus 604, where the processor 601, the communication interface 602, and the memory 603 complete communication with each other through the communication bus 604;
the memory 603 has stored therein a computer program which, when executed by the processor 601, causes the processor 601 to perform the steps of:
Broadcasting first transaction data in a consensus period, and receiving second transaction data broadcast by each second blockchain node;
and according to each acquired transaction data, if the acquired transaction data is confirmed to be the block chain node for performing the transaction for the first time in the common recognition period, packaging the acquired transaction data in the common recognition period into block data for transmission, and connecting the block data after the last block data of the local record.
Further, the processor 601 is configured to package the obtained transaction data in the consensus period into block data for sending, and the method includes:
and packing the acquired transaction data in the consensus period and the transaction data which are not packed in the last consensus period into block data to be sent.
Further, the processor 601 is configured to package the obtained transaction data in the consensus period into block data for sending, and the method includes:
and verifying the obtained transaction data in the consensus period, and packaging the transaction data passing verification.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface 602 is used for communication between the electronic device and other devices described above.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit, a network processor (Network Processor, NP), etc.; but also digital instruction processors (Digital Signal Processing, DSP), application specific integrated circuits, field programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
In the embodiment of the invention, the first blockchain node can determine whether the first blockchain node is the blockchain node for carrying out transaction for the first time in the consensus period according to the transaction time contained in each acquired transaction data, and when the first blockchain node is determined to be the blockchain node for carrying out transaction for the first time in the consensus period, the first blockchain node packages all the transaction data acquired in the current consensus period into one blockdata to be transmitted, and the last blockdata recorded locally is connected with the blockdata. Thereby enabling the addition of transaction data within a consensus period to the blockchain and saving a significant amount of processor resources consumed by the computation.
Example 10:
fig. 7 is a schematic structural diagram of another electronic device according to an embodiment of the present invention, and on the basis of the foregoing embodiments, the embodiment of the present invention further provides an electronic device, which includes a processor 701, a communication interface 702, a memory 703, and a communication bus 704, where the processor 701, the communication interface 702, and the memory 703 complete communication with each other through the communication bus 704;
the memory 703 has stored therein a computer program which, when executed by the processor 701, causes the processor 701 to perform the steps of:
broadcasting second transaction data in the consensus period, and receiving the first transaction data broadcast by the first blockchain node and second transaction data broadcast by other second blockchain nodes except the first transaction data and the second transaction data broadcast by the second blockchain node;
and according to each acquired transaction data, if the block chain node is not the block chain node for performing the first transaction in the consensus period, receiving the block data sent by other block chain nodes except the block chain node and connecting the block data with the last block data recorded locally.
Further, the processor 701 is configured to receive the block data sent by the other blockchain nodes except the processor and connect to the last block data recorded locally, and includes:
And after receiving the block data sent by other block chain nodes except the block data, verifying the transaction data contained in the block data, and connecting the block data passing verification after the last block data of the local record.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface 702 is used for communication between the electronic device and other devices described above.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit, a network processor (Network Processor, NP), etc.; but also digital instruction processors (Digital Signal Processing, DSP), application specific integrated circuits, field programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
Because in the embodiment of the invention, the second blockchain node can determine whether the second blockchain node is the blockchain node for performing the first transaction in the common period according to the transaction time contained in each acquired transaction data, and when the second blockchain node is determined not to be the blockchain node for performing the first transaction in the common period, the second blockchain node receives the blockdata sent by other blockchain nodes except the second blockchain node and is connected with the blockdata after the last locally recorded blockdata. Thereby enabling the addition of transaction data within a consensus period to the blockchain and saving a significant amount of processor resources consumed by the computation.
Example 8:
on the basis of the above embodiments, the embodiments of the present invention also provide a computer-readable storage medium storing a computer program, the computer program being executed by a processor to:
broadcasting first transaction data in a consensus period, and receiving second transaction data broadcast by each second blockchain node;
and according to each acquired transaction data, if the acquired transaction data is confirmed to be the block chain node for performing the transaction for the first time in the common recognition period, packaging the acquired transaction data in the common recognition period into block data for transmission, and connecting the block data after the last block data of the local record.
Further, the step of packaging the acquired transaction data in the consensus period into block data for transmission includes:
and packing the acquired transaction data in the consensus period and the transaction data which are not packed in the last consensus period into block data to be sent.
Further, the step of packaging the acquired transaction data in the consensus period into block data for transmission includes:
and verifying the obtained transaction data in the consensus period, and packaging the transaction data passing verification.
In the embodiment of the invention, the first blockchain node can determine whether the first blockchain node is the blockchain node for carrying out transaction for the first time in the consensus period according to the transaction time contained in each acquired transaction data, and when the first blockchain node is determined to be the blockchain node for carrying out transaction for the first time in the consensus period, the first blockchain node packages all the transaction data acquired in the current consensus period into one blockdata to be transmitted, and the last blockdata recorded locally is connected with the blockdata. Thereby enabling the addition of transaction data within a consensus period to the blockchain and saving a significant amount of processor resources consumed by the computation.
Example 9:
on the basis of the above embodiments, the embodiments of the present invention also provide a computer-readable storage medium storing a computer program, the computer program being executed by a processor to:
broadcasting second transaction data in the consensus period, and receiving the first transaction data broadcast by the first blockchain node and second transaction data broadcast by other second blockchain nodes except the first transaction data and the second transaction data broadcast by the second blockchain node;
and according to each acquired transaction data, if the block chain node is not the block chain node for performing the first transaction in the consensus period, receiving the block data sent by other block chain nodes except the block chain node and connecting the block data with the last block data recorded locally.
Further, after receiving the block data sent by other block chain nodes except the block chain node itself and connecting to the last block data recorded locally, the method includes:
and after receiving the block data sent by other block chain nodes except the block data, verifying the transaction data contained in the block data, and connecting the block data passing verification after the last block data of the local record.
Because in the embodiment of the application, the second blockchain node can determine whether the second blockchain node is the blockchain node for performing the first transaction in the common period according to the transaction time contained in each acquired transaction data, and when the second blockchain node is determined not to be the blockchain node for performing the first transaction in the common period, the second blockchain node receives the blockdata sent by other blockchain nodes except the second blockchain node and is connected with the blockdata after the last locally recorded blockdata. Thereby enabling the addition of transaction data within a consensus period to the blockchain and saving a significant amount of processor resources consumed by the computation.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (14)

1. A blockchain system, comprising: a first blockchain node and at least one second blockchain node;
the first block chain node is used for broadcasting first transaction data in a common identification period and receiving second transaction data broadcasted by each second block chain node; according to each acquired transaction data, if the transaction data is confirmed to be the block chain node for performing transaction for the first time in the consensus period, the acquired transaction data in the consensus period is packaged into block data for transmission, and the block data is connected after the last block data of the local record;
Each second blockchain node is configured to broadcast second transaction data in the consensus period, receive the first transaction data broadcast by the first blockchain node and second transaction data broadcast by other second blockchain nodes except the second blockchain node, and if it is determined that each obtained transaction data is not the blockchain node for performing the first transaction in the consensus period, receive the block data sent by other blockchain nodes except the second blockchain node and connect the second blockchain node to the last block data recorded locally.
2. The system of claim 1, wherein the first blockchain node is further configured to package the acquired transaction data in the consensus period and the transaction data not packaged in the last consensus period.
3. The system according to claim 1 or 2, wherein the first blockchain node is further configured to verify the obtained transaction data in the consensus period if the first blockchain node is identified as the blockchain node that performs the transaction for the first time in the consensus period, and package the transaction data that passes the verification.
4. The system of claim 1, wherein the second blockchain node is further configured to, after receiving the blockdata sent by the blockchain nodes other than the second blockchain node, verify the transaction data included in the blockdata, and connect the blockdata that passes the verification after the last blockdata of the local record.
5. A method of data uplink applied to a blockchain system including a first blockchain node and at least one second blockchain node, the method comprising:
the first block chain node broadcasts first transaction data in a common identification period and receives second transaction data broadcast by each second block chain node; according to each acquired transaction data, if the transaction data is confirmed to be the block chain node for performing transaction for the first time in the consensus period, the acquired transaction data in the consensus period is packaged into block data for transmission, and the block data is connected after the last block data of the local record;
each second blockchain node broadcasts second transaction data in the consensus period, and receives the first transaction data broadcast by the first blockchain node and second transaction data broadcast by other second blockchain nodes except the second transaction data; and according to each acquired transaction data, if the block chain node is not the block chain node for performing the first transaction in the consensus period, receiving the block data sent by other block chain nodes except the block chain node and connecting the block data with the last block data recorded locally.
6. The method of claim 5, wherein said packaging the acquired transaction data within the consensus period into a block data transmission comprises:
and packing the acquired transaction data in the consensus period and the transaction data which are not packed in the last consensus period into block data to be sent.
7. The method of claim 5, wherein said packaging the acquired transaction data within the consensus period into a block data transmission comprises:
and verifying the obtained transaction data in the consensus period, and packaging the transaction data passing verification.
8. The method of claim 5, wherein receiving the block data transmitted by the other blockchain nodes than the blockchain node and connected after the last block data recorded locally, comprises:
and after receiving the block data sent by other block chain nodes except the block data, verifying the transaction data contained in the block data, and connecting the block data passing verification after the last block data of the local record.
9. A data chaining apparatus, the apparatus comprising:
The first broadcasting module comprises first blockchain nodes and is used for broadcasting first transaction data in a consensus period and receiving second transaction data broadcasted by each second blockchain node;
the sending module is used for packaging the acquired transaction data in the consensus period into block data to be sent if the acquired transaction data is confirmed to be the block chain node for carrying out the transaction for the first time in the consensus period;
the first connection module is used for connecting the block data after the last block data recorded locally;
the second broadcasting module comprises at least one second blockchain node and is used for broadcasting second transaction data in the consensus period and receiving the first transaction data broadcasted by the first blockchain node and the second transaction data broadcasted by the second blockchain node except the second transaction data;
and the second connection module is used for receiving the block data sent by other block chain nodes except the second connection module and connecting the block data after the last block data recorded locally if the second connection module determines that the second connection module is not the block chain node for carrying out the first transaction in the consensus period according to the acquired transaction data.
10. The apparatus of claim 9, wherein the sending module is specifically configured to package the acquired transaction data in the consensus period and the transaction data not packaged in the last consensus period into block data for sending.
11. The apparatus according to claim 9, wherein the sending module is specifically configured to verify the obtained transaction data in the consensus period, and package the transaction data that passes the verification.
12. The apparatus of claim 9, wherein the second connection module is specifically configured to, after receiving the block data sent by the other blockchain nodes except the second connection module, verify the transaction data included in the block data, and connect the block data that passes the verification after the last block data recorded locally.
13. An electronic device, characterized in that the electronic device comprises a processor and a memory for storing a computer program, the processor being adapted to implement the steps of the method according to any of claims 5-8 when executing the computer program stored in the memory.
14. A computer-readable storage medium, in which a computer program is stored, the computer program comprising
Computer program which, when executed by a processor, performs the steps of the method according to any of claims 5-8.
CN201911350135.XA 2019-12-24 2019-12-24 Block chain system and data uplink method, device, equipment and medium Active CN113032478B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911350135.XA CN113032478B (en) 2019-12-24 2019-12-24 Block chain system and data uplink method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911350135.XA CN113032478B (en) 2019-12-24 2019-12-24 Block chain system and data uplink method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN113032478A CN113032478A (en) 2021-06-25
CN113032478B true CN113032478B (en) 2023-10-31

Family

ID=76451957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911350135.XA Active CN113032478B (en) 2019-12-24 2019-12-24 Block chain system and data uplink method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN113032478B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116192881B (en) * 2023-04-27 2023-06-30 天津市城市规划设计研究总院有限公司 Access control method and system for block chain data in urban planning field

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108182635A (en) * 2017-12-18 2018-06-19 深圳前海微众银行股份有限公司 Block chain common recognition method, system and computer readable storage medium
CN109559115A (en) * 2017-09-25 2019-04-02 航天信息股份有限公司 A kind of method for building up, method of commerce and the relevant apparatus of intelligence contract
CN109636388A (en) * 2018-12-07 2019-04-16 深圳市智税链科技有限公司 Data processing method, device, medium and electronic equipment in block chain network
CN109726229A (en) * 2018-11-30 2019-05-07 深圳市元征科技股份有限公司 A kind of block chain date storage method and device
KR101975822B1 (en) * 2018-10-26 2019-05-08 (주)리그시스템 Private blockchain network system and method for consensus based on blockchain
KR20190070888A (en) * 2017-12-13 2019-06-21 포항공과대학교 산학협력단 Apparatus and method for providing smartcontract channel service in off-chain, and system having the same
CN109949157A (en) * 2019-03-08 2019-06-28 矩阵元技术(深圳)有限公司 A kind of processing method of block chain common recognition, apparatus and system
CN110233737A (en) * 2019-06-28 2019-09-13 北京艾摩瑞策科技有限公司 Common recognition method, apparatus, computer equipment and storage medium based on DPoS
CN110245956A (en) * 2019-05-15 2019-09-17 众安信息技术服务有限公司 A kind of block chain transaction confirmation method and system based on asynchronous multichain

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10013573B2 (en) * 2015-12-16 2018-07-03 International Business Machines Corporation Personal ledger blockchain
AU2018347201B2 (en) * 2018-12-21 2020-08-27 Advanced New Technologies Co., Ltd. Blockchain data protection based on generic account model and homomorphic encryption

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109559115A (en) * 2017-09-25 2019-04-02 航天信息股份有限公司 A kind of method for building up, method of commerce and the relevant apparatus of intelligence contract
KR20190070888A (en) * 2017-12-13 2019-06-21 포항공과대학교 산학협력단 Apparatus and method for providing smartcontract channel service in off-chain, and system having the same
CN108182635A (en) * 2017-12-18 2018-06-19 深圳前海微众银行股份有限公司 Block chain common recognition method, system and computer readable storage medium
KR101975822B1 (en) * 2018-10-26 2019-05-08 (주)리그시스템 Private blockchain network system and method for consensus based on blockchain
CN109726229A (en) * 2018-11-30 2019-05-07 深圳市元征科技股份有限公司 A kind of block chain date storage method and device
CN109636388A (en) * 2018-12-07 2019-04-16 深圳市智税链科技有限公司 Data processing method, device, medium and electronic equipment in block chain network
CN109949157A (en) * 2019-03-08 2019-06-28 矩阵元技术(深圳)有限公司 A kind of processing method of block chain common recognition, apparatus and system
CN110245956A (en) * 2019-05-15 2019-09-17 众安信息技术服务有限公司 A kind of block chain transaction confirmation method and system based on asynchronous multichain
CN110233737A (en) * 2019-06-28 2019-09-13 北京艾摩瑞策科技有限公司 Common recognition method, apparatus, computer equipment and storage medium based on DPoS

Also Published As

Publication number Publication date
CN113032478A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN110599173B (en) Block chain consensus node determination method, device, equipment and storage medium
Wilczyński et al. Modelling and simulation of security-aware task scheduling in cloud computing based on Blockchain technology
US20220038289A1 (en) Multi-access edge computing node with distributed ledger
CN111445333B (en) Block generation method, device, computer equipment and storage medium
CN111314067B (en) Block storage method and device, computer equipment and storage medium
CN110601816B (en) Lightweight node control method and device in block chain system
CN117544296A (en) Controlled release of encrypted private keys
CN110278255B (en) Method and device for communication between IOT (Internet of things) devices based on block chain
CN113301114B (en) Block chain consensus node selection method and device, computer equipment and storage medium
CN115499379B (en) Information interaction method, device, equipment and medium based on block chain
CN111880919A (en) Data scheduling method, system and computer equipment
CN112036878A (en) Data processing method and device
CN116032937A (en) Edge computing equipment calculation transaction method and system
CN113032478B (en) Block chain system and data uplink method, device, equipment and medium
CN111259428A (en) Data processing method and device based on block chain, node equipment and storage medium
CN110910110A (en) Data processing method and device and computer storage medium
CN111385096A (en) Block chain network, signature processing method, terminal and storage medium
CN111371556B (en) Block link point accounting method, device, equipment and storage medium
CN109272318B (en) Resource flow transaction method, device, equipment and medium applied to requester client
CN115396443A (en) Time factor-based alliance chain consensus method, device, equipment and storage medium
CN113869901B (en) Key generation method, key generation device, computer-readable storage medium and computer equipment
CN110535664B (en) Data processing method and device based on block chain, server and storage medium
CN109325858B (en) Resource flow transaction method and device, computer equipment and computer readable medium
US20220067727A1 (en) Method for operating a distributed database system, distributed database system, and industrial automation system
CN114157428A (en) Block chain-based digital certificate management method and system

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