US 12,236,421 B2
Block packaging method based on blockchain transaction and electronic device using the same
Shiaw-Herng Liu, New Taipei (TW)
Assigned to HON HAI PRECISION INDUSTRY CO., LTD., New Taipei (TW)
Filed by HON HAI PRECISION INDUSTRY CO., LTD., New Taipei (TW)
Filed on Dec. 16, 2021, as Appl. No. 17/552,879.
Claims priority of application No. 202011541034.3 (CN), filed on Dec. 23, 2020.
Prior Publication US 2022/0198449 A1, Jun. 23, 2022
Int. Cl. G06Q 20/38 (2012.01); H04L 9/00 (2022.01); H04L 9/32 (2006.01); H04L 67/104 (2022.01)
CPC G06Q 20/38215 (2013.01) [G06Q 20/3827 (2013.01); H04L 9/3242 (2013.01); H04L 67/104 (2013.01); H04L 9/50 (2022.05); H04L 2209/56 (2013.01)] 11 Claims
OG exemplary drawing
 
1. A block packaging method based on blockchain transaction comprising:
each node in a blockchain receiving and storing a blockchain transaction, wherein the blockchain transaction is a transaction combination comprising a plurality of transactions, and the blockchain transaction is broadcast to each of the node in the blockchain by a peer-to-peer network, due to transmission delay influence of the peer-to-peer network, the plurality of transactions comprised in the blockchain transaction received by the each of the node are different;
each of the node calculating a hash value of a corresponding node according to the blockchain transaction, generating a package voting information according to the hash value of the corresponding node, and sending the package voting information to a voted node, wherein the package voting information comprises a digital signature of the corresponding node and a unique identification code of the voted node;
the corresponding node recording the number of votes as the voted nodes according to the package voting information, and obtaining the number of votes of the corresponding node;
assigning the node with the largest number of votes as a target node according to the number of votes; and
the target node packing the blockchain transaction into blocks and broadcasting the blocks to each of the node in the blockchain,
wherein
each of the node calculating the hash value of the corresponding node according to the blockchain transaction comprises: calculating the hash value of each of the plurality of transactions, and making the hash values of the plurality of transactions XOR with each other to obtain the hash value of the corresponding node.