CN107911819B - Method and system for selecting packaging node based on mobile phone number - Google Patents

Method and system for selecting packaging node based on mobile phone number Download PDF

Info

Publication number
CN107911819B
CN107911819B CN201711240614.7A CN201711240614A CN107911819B CN 107911819 B CN107911819 B CN 107911819B CN 201711240614 A CN201711240614 A CN 201711240614A CN 107911819 B CN107911819 B CN 107911819B
Authority
CN
China
Prior art keywords
node
nodes
block
verification
hash
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
CN201711240614.7A
Other languages
Chinese (zh)
Other versions
CN107911819A (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.)
JIANGSU PAY EGIS TECHNOLOGY Co.,Ltd.
Jiangsu tongfudun blockchain Technology Co., Ltd
Original Assignee
Jiangsu Tongfudun Blockchain Technology Co Ltd
Jiangsu Pay Egis 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 Jiangsu Tongfudun Blockchain Technology Co Ltd, Jiangsu Pay Egis Technology Co ltd filed Critical Jiangsu Tongfudun Blockchain Technology Co Ltd
Priority to CN201711240614.7A priority Critical patent/CN107911819B/en
Publication of CN107911819A publication Critical patent/CN107911819A/en
Application granted granted Critical
Publication of CN107911819B publication Critical patent/CN107911819B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • 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/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Abstract

The invention discloses a method and a system for selecting a packing node based on a mobile phone number. Wherein the method is applied to a blockchain network comprising a plurality of regular nodes, the method comprising: each conventional node broadcasts the node and the mobile phone number corresponding to the node to the blockchain network in an associated mode; each conventional node selects one conventional node from a plurality of conventional nodes as a packing node of the next block according to the block content of the latest block in the block chain and the mobile phone number broadcasted to the block chain network, and the uniqueness of the mobile phone number is utilized to take the mobile phone number as the distribution basis of the packing right, so that the effect of reasonably and fairly selecting the packing node by each conventional node in the block chain network is realized, the resource waste caused by workload certification is avoided, and the time required for packing the block is saved.

Description

Method and system for selecting packaging node based on mobile phone number
Technical Field
The invention relates to the technical field of internet, in particular to a method and a system for selecting a packing node based on a mobile phone number.
Background
The block chain is a distributed data storage mechanism, which generates data blocks through a string of cryptographic methods, each data block contains information of one bitcoin network transaction, and the information is used for verifying the validity (anti-counterfeiting) of the information and generating the next block. On such a mutually untrusted system, the task of writing transaction information into blocks by the packed blocks must be done by someone who has to do so through some trusted means.
On the existing block chain network, nodes compete for the block packing right through a workload proving method, and the nodes acquiring the packing right are rewarded. The workload certification is to solve a problem on the block chain through a certain amount of calculation, and the problem is determined through a workload certification function, a block and a difficulty value, and the difficulty value is adjusted according to the actual situation. If the competitor calculates the result quickly, the difficulty value will increase. Competitors are conventional nodes, and the process of competing for the packing right is ore excavation. And each conventional node needs to be operated by using a professional mining machine, and the conventional node which calculates the result preferentially wins the packing right.
The process of mining often requires a significant amount of time and computational effort. On one hand, the ore machine is essentially a high-performance display card, and the cost is higher; on the other hand, the process of calculating the packing result needs to consume a large amount of energy and time; and only one conventional node finally competing to the packing right is provided, and manpower and material resources paid by other conventional nodes in the competition process are wasted.
Disclosure of Invention
In view of the above, the present invention is proposed to provide a method and system for selecting a packing node based on a mobile phone number, which overcomes or at least partially solves the above problems.
According to one aspect of the present invention, there is provided a method for selecting a packet node based on a mobile phone number, the method being applied to a blockchain network, the blockchain network including a plurality of conventional nodes, the method including:
each conventional node broadcasts the node and the mobile phone number corresponding to the node to the blockchain network in an associated mode;
and each conventional node selects one conventional node from the plurality of conventional nodes as a packing node of the next block according to the block content of the latest block in the block chain and the mobile phone number broadcasted to the block chain network.
According to another aspect of the present invention, there is provided a system for selecting a packing node based on a mobile phone number, the system being applied to a blockchain network, the system comprising: a plurality of regular nodes;
each conventional node is used for broadcasting the node and the mobile phone number corresponding to the node to the blockchain network in an associated mode;
each regular node is further for: and selecting one conventional node from the plurality of conventional nodes as a packing node of the next block according to the block content of the latest block in the block chain and the mobile phone number broadcasted to the block chain network.
According to the scheme provided by the invention, each conventional node broadcasts the node and the mobile phone number corresponding to the node to the block chain network in a correlation manner, each conventional node selects one conventional node from a plurality of conventional nodes as a packing node of the next block according to the block content of the latest block in the block chain and the mobile phone number broadcasted to the block chain network, and the mobile phone number is used as the distribution basis of the packing right by utilizing the uniqueness of the mobile phone number, so that the effect of reasonably and fairly selecting the packing node by each conventional node in the block chain network is realized on one hand, the resource waste caused by the work load certification is avoided on the other hand, and the time required by packing into blocks is saved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating a method for selecting a packing node based on a mobile phone number according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for selecting a packing node based on a mobile phone number according to another embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for selecting a packing node based on a mobile phone number according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram illustrating a system for selecting a packaging node based on a mobile phone number according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a flowchart illustrating a method for selecting a packing node based on a mobile phone number according to an embodiment of the present invention. The method is applied to a blockchain network, wherein the blockchain network comprises a plurality of conventional nodes, and the probability that each conventional node is selected as a packing node or a verification node is the same, as shown in fig. 1, and the method comprises the following steps:
in step S100, each regular node broadcasts the node and the association of the mobile phone number corresponding to the node to the blockchain network.
Specifically, each conventional node needs to register a mobile phone number, an association relationship between the mobile phone number and the node is established after registration, and then the association relationship between the node and the mobile phone number is broadcast to the blockchain network. By broadcasting the association relation between the node and the mobile phone number to the blockchain network, the conventional node in the blockchain network can select the packing node of the next block conveniently according to the mobile phone number.
Step S101, each conventional node selects one conventional node from a plurality of conventional nodes as a packing node of the next block according to the block content of the latest block in the block chain and the mobile phone number broadcasted to the block chain network.
The packing node of the next block is obtained by selecting a plurality of conventional nodes in the block chain network, and is acknowledged by the conventional nodes in the block chain network, so that each conventional node in the block chain network can select one conventional node from the conventional nodes as the packing node of the next block according to the block content of the latest block in the block chain and the mobile phone number broadcasted to the block chain network, the workload is simplified, and the problem of resource waste caused by competition of the packing right of the block among the nodes through workload certification in the prior art is solved.
According to the method provided by the embodiment of the invention, each conventional node broadcasts the node and the mobile phone number corresponding to the node to the blockchain network in an associated manner, each conventional node selects one conventional node from a plurality of conventional nodes as a packing node of the next block according to the block content of the latest block in the blockchain and the mobile phone number broadcasted to the blockchain network, and the mobile phone number is used as the distribution basis of the packing right by using the uniqueness of the mobile phone number, so that on one hand, the effect of reasonably and fairly selecting the packing node by each conventional node in the blockchain network is realized, on the other hand, the resource waste caused by workload certification is avoided, and the time required by packing into blocks is saved.
Fig. 2 is a flowchart illustrating a method for selecting a packing node based on a mobile phone number according to another embodiment of the present invention. The method is applied to a blockchain network, wherein the blockchain network comprises a plurality of conventional nodes, as shown in fig. 2, and the method comprises the following steps:
and step S200, each conventional node signs the mobile phone number by using the private key of the node, broadcasts the mobile phone number and the signature to the block chain network in a transaction mode and writes the mobile phone number and the signature into the block chain.
Specifically, each conventional node needs to register a mobile phone number, an association relationship between the mobile phone number and the node is established after registration, the private key has uniqueness, the mobile phone number is signed by using the private key of the node, other conventional nodes in the block chain network can conveniently verify the ownership of the mobile phone number, the mobile phone number is signed by using the private key of the node, and the mobile phone number and the signature are broadcasted to the block chain network in a transaction mode and written into the block chain.
Step S201, each conventional node traverses the query block chain, and generates a list for recording the mapping relationship between the node and the mobile phone number.
Each regular node may traverse the query blockchain, obtain the association relationship between the node and the mobile phone number from the blockchain, and then generate a list recording the mapping relationship between the node and the mobile phone number, for example, the list may be as shown in table 1, which is only an example and does not have any limiting effect.
Table 1:
Figure GDA0002607084380000041
Figure GDA0002607084380000051
specifically, in the embodiment of the present invention, the packing node of the next block may be selected by the method defined in step S202 to step S204:
in step S202, each regular node performs hash processing on the block content of the latest block in the block chain by using a preset hash algorithm to obtain a first hash value.
Each regular node may obtain the tile content of the latest tile in the tile chain, and then hash the obtained tile content of the latest tile by using a preset hash algorithm, for example, MD2, MD4, MD5, SHA-1, to obtain a first hash value corresponding to the tile content of the latest tile, where a few hash algorithms are simply listed here, and a person skilled in the art may select a corresponding hash algorithm according to actual needs, and the hash algorithms are not listed here.
Step S203, each conventional node performs hash processing on the plurality of mobile phone numbers by using a preset hash algorithm to obtain a plurality of second hash values.
Specifically, each conventional node may obtain a mobile phone number from the generated list, and then perform hash processing on each mobile phone number by using a preset hash algorithm, for example, MD2, MD4, MD5, and SHA-1, to obtain a second hash value corresponding to each mobile phone number, where the hash algorithm used when performing hash processing on the tile content of the latest tile by each conventional node is the same as the hash algorithm used when performing hash processing on the mobile phone number.
In the present invention, the execution sequence of step S202 and step S203 is not limited, and step S202 may be executed before or after step S203, or step S202 and step S203 may be executed simultaneously.
Step S204, selecting a second hash value with the smallest difference from the first hash value from the plurality of second hash values according to the first hash value, and using a conventional node corresponding to the mobile phone number corresponding to the second hash value as a packing node of the next block.
After the first hash value and the plurality of second hash values are obtained, the difference value between each second hash value and the first hash value can be calculated respectively, the difference values can be sorted in an ascending order or a descending order, the second hash value with the minimum difference value with the first hash value is determined, the corresponding mobile phone number is determined according to the second hash value, the list is inquired according to the mobile phone number, the conventional node corresponding to the mobile phone number is obtained, and the conventional node is used as the packing node of the next block.
In step S205, each regular node selects a first preset number of regular nodes from the plurality of regular nodes as verification nodes for verifying the packed block according to the block content of the latest block in the block chain and the mobile phone number broadcasted to the block chain network.
In order to prevent the selected packing node from cheating, in the embodiment of the present invention, a first preset number of regular nodes are further required to be selected from the plurality of regular nodes as verification nodes for verifying the packing block, where the first preset number may be set according to actual needs, for example, three regular nodes may be selected as verification nodes for verifying the packing block, which is only an example and does not have any limiting function.
Specifically, the verification node may be selected by the following method: and each conventional node performs hash processing on the block content of the latest block in the block chain by using different hash algorithms according to the number of verification nodes to be selected to obtain a plurality of third hash values, each conventional node performs hash processing on a plurality of mobile phone numbers by using a corresponding hash algorithm to obtain a plurality of fourth hash values, for each third hash value, one fourth hash value with the minimum difference value with the third hash value is selected from the plurality of fourth hash values according to the third hash value, and the conventional node corresponding to the mobile phone number corresponding to the selected fourth hash value is used as the verification node for verifying the packed block.
Supposing that three verification nodes are to be selected, each conventional node performs hash processing on the block content of the latest block in the block chain by using three different hash algorithms to obtain three third hash values, each conventional node can also perform hash processing on the mobile phone numbers in the list by using the corresponding hash algorithm to obtain a plurality of fourth hash values, the difference value between each fourth hash value and each third hash value can be calculated for each third hash value, then the difference values are sorted in an ascending order or a descending order to determine the fourth hash value with the minimum difference value with the third hash values, the corresponding mobile phone number is determined according to the fourth hash value, the list is queried according to the mobile phone numbers to obtain the conventional node corresponding to the mobile phone number, and the conventional node is used as the verification node, so that the three conventional nodes are selected to be used as the verification nodes. The hashing algorithm used here is different from the hashing algorithm used when selecting packing nodes.
And step S206, the verification nodes respectively send verification codes to the mobile phone numbers corresponding to the packaging nodes in a short message mode, and the hash values of the verification codes are broadcast to the block chain network.
Each verification node can randomly generate a verification code, the verification code is sent to a mobile phone number corresponding to the packaging node in a short message mode, then the verification nodes perform Hash processing on the verification code by using a preset Hash algorithm to obtain a Hash value corresponding to the verification code, the Hash value of the verification code is broadcasted to a block chain network, if the verification nodes broadcast the verification code directly, the packaging node can cheat easily under the condition that the verification code is acquired, and the Hash value of the broadcast verification code can avoid cheating of the packaging node.
Step S207, the packaging node packages the transactions in the transaction pool into a block, and broadcasts the block and the received verification code to the blockchain network.
After the conventional node selected as the packing node acquires the packing right, the transaction in the transaction pool is packed into a block, the block and the received verification code are broadcasted to the block chain network, and the block is verified by other unselected conventional nodes in the block chain network.
And S208, verifying the packaging node by other unselected conventional nodes in the block chain network according to the hash value of the verification code broadcast by the verification node, and if the verification code broadcast by the packaging node is matched with the hash value of the verification code broadcast by the verification node and the number of the verification codes broadcast by the packaging node is greater than or equal to a second preset number, confirming that the packaging node obtains the packaging right of the next block, and adding the block into the block chain copy of the node.
The verification of the block by other non-selected conventional nodes in the block chain network mainly includes verifying whether the verification code sent by the packing node is consistent with the verification code sent by the verification node, and whether the number of the verification codes broadcast by the packing node meets the requirement, that is, whether the number of the verification codes is greater than or equal to a second preset number, for example, if three verification nodes are selected in step S205 to verify the block, the second preset number may be set to 2, that is, the number of the verification codes broadcast by the packing node into the block chain network needs to be greater than or equal to 2 to meet the number requirement.
Specifically, after acquiring the verification codes broadcasted by the packing nodes to the blockchain network, other non-selected conventional nodes in the blockchain network may first determine whether the number of the verification codes broadcasted by the packing nodes is equal to or less than a second preset number, and if not, the packing nodes may be determined not to obtain the packing right, and the broadcasted blocks are not verified and cannot be added to the blockchain copy; if the verification code broadcasted by the packaging node is consistent with the hash value of the verification code broadcasted by the verification node, the packaging node can be considered to obtain the packaging right, and the block is added into the block chain copy of the node.
After the block verification passes, a certain reward can be distributed to the conventional nodes as the packaging node and the verification node for rewarding the labor of the conventional nodes.
The scheme provided by the embodiment of the invention utilizes the uniqueness of the mobile phone number and the characteristic of difficult forgery of short message verification, and takes the mobile phone number as the basis of the distribution of the packing right, thereby realizing the effect of reasonably and fairly selecting the packing node by each conventional node in a block chain network, avoiding the resource waste caused by workload certification and saving the time required by packing the transaction into blocks.
Fig. 3 is a flowchart illustrating a method for selecting a packing node based on a mobile phone number according to another embodiment of the present invention. The method is applied to a blockchain network, wherein the blockchain network comprises a plurality of conventional nodes, as shown in fig. 3, and the method comprises the following steps:
in step S300, each regular node broadcasts the association of the mobile phone number corresponding to the node to the blockchain network.
Specifically, each conventional node needs to register a mobile phone number, an association relationship between the mobile phone number and the node is established after registration, and then the mobile phone number corresponding to the node is broadcast to the blockchain network in an associated manner. By broadcasting the mobile phone number corresponding to the node into the blockchain network, the conventional node in the blockchain network can select a verification node for verifying the mobile phone number of the node conveniently according to the mobile phone number.
Step S301, each conventional node performs hash processing on the mobile phone number of the node by using different hash algorithms according to the number of verification nodes to be selected, so as to obtain a plurality of fifth hash values.
The mobile phone number of each conventional node in the blockchain network needs to be verified, and if three verification nodes need to be selected, each conventional node performs hash processing on the registered mobile phone numbers respectively by using three different hash algorithms, for example, MD4, MD5, and SHA-1, to obtain three fifth hash values.
Step S302, each regular node performs hash processing on other mobile phone numbers broadcasted to the blockchain network by using a corresponding hash algorithm, so as to obtain a plurality of sixth hash values.
Each conventional node may also acquire other mobile phone numbers broadcasted to the blockchain network, and after acquiring other mobile phone numbers in the blockchain network, may perform hash processing on the acquired other mobile phone numbers by using a corresponding hash algorithm, for example, MD4, MD5, and SHA-1, to obtain a plurality of sixth hash values. The embodiment of the invention carries out hash processing on the mobile phone number, and is convenient for selecting the verification node according to the hash value in the follow-up process.
Step S303, for each fifth hash value, selecting a sixth hash value having the smallest difference from the fifth hash values according to the fifth hash value, and using a regular node corresponding to the mobile phone number corresponding to the selected sixth hash value as a verification node.
After the fifth hash value and the plurality of sixth hash values are obtained, the difference between each sixth hash value and the fifth hash value can be respectively calculated, the differences can be sorted in an ascending order or a descending order, the sixth hash value with the smallest difference with the fifth hash value is determined, the corresponding mobile phone number is determined according to the sixth hash value, the conventional node corresponding to the mobile phone number is determined, and the conventional node is used as a verification node.
And step S304, the verification nodes respectively send verification codes to the mobile phone numbers corresponding to the conventional nodes in a short message mode, and the hash values of the verification codes are broadcast to the block chain network.
Each verification node can randomly generate a verification code, the verification code is sent to a mobile phone number corresponding to the conventional node in a short message mode, then the verification nodes perform hash processing on the verification code by using a preset hash algorithm to obtain a hash value corresponding to the verification code, the hash value of the verification code is broadcasted to the block chain network, if the verification nodes broadcast the verification code directly, the conventional node can cheat easily under the condition that the verification code is obtained, and the broadcast hash value of the verification code can avoid cheating of the conventional node.
In step S305, the regular node broadcasts the received verification code to the blockchain network.
Step S306, other conventional nodes which are not selected in the block chain network verify the conventional node according to the hash value of the verification code broadcast by the verification node, and if the verification code broadcast by the conventional node is matched with the hash value of the verification code broadcast by the verification node and the number of the verification codes broadcast by the conventional node is greater than or equal to a second preset number, the conventional node is confirmed to pass verification.
For example, if three verification nodes are selected in step S303 to verify the conventional node, the second preset number may be set to 2, that is, the number of the verification codes broadcast by the conventional node to the blockchain network needs to be greater than or equal to 2 to meet the number requirement.
Specifically, after acquiring the verification code broadcasted by the regular node to the blockchain network, other non-selected regular nodes in the blockchain network may first determine whether the number of the verification codes broadcasted by the regular node is equal to or less than a second preset number, and if not, the regular node may be determined to be not verified and cannot be selected as a packing node in the subsequent steps; if so, performing hash processing on the verification code broadcasted by the conventional node by using a preset hash algorithm to obtain a hash value corresponding to the verification code broadcasted by the conventional node, matching the hash value corresponding to the verification code broadcasted by the conventional node with the hash value of the verification code broadcasted by the verification node, and if the hash values are consistent, determining that the conventional node passes verification to obtain the qualification of becoming a packaging node.
Step S307, each regular node broadcasts the node and the cell phone number corresponding to the node to the blockchain network in an associated manner, and writes the node and the cell phone number into the blockchain.
Step S308, each conventional node traverses the query block chain to generate a list for recording the mapping relation between the nodes and the mobile phone numbers.
Each regular node may traverse the query blockchain, obtain the association relationship between the node and the mobile phone number from the blockchain, and then generate a list recording the mapping relationship between the node and the mobile phone number, where the list is shown in table 1 for example, and this list is only an example and does not have any limitation.
Table 1:
conventional node 1 13365985655
Regular node 2 15682884558
Regular node 3 17758956895
Regular node 4 18625634598
In step S309, each conventional node selects one conventional node from the plurality of conventional nodes as a packing node of the next block according to the block content of the latest block in the block chain and the mobile phone number broadcasted to the block chain network.
Specifically, the following method may be adopted to select a conventional node as the packing node of the next block:
each regular node may obtain the tile content of the latest tile in the tile chain, and then perform hash processing on the obtained tile content of the latest tile by using a preset hash algorithm, for example, MD2, MD4, MD5, SHA-1, to obtain a first hash value corresponding to the tile content of the latest tile.
Each conventional node may obtain a mobile phone number from the generated list, and then perform hash processing on each mobile phone number by using a preset hash algorithm, for example, MD2, MD4, MD5, and SHA-1, to obtain a second hash value corresponding to each mobile phone number, where the hash algorithm used when performing hash processing on the tile content of the latest tile by each conventional node is the same as the hash algorithm used when performing hash processing on the mobile phone number. The hash algorithms are only briefly listed here, and those skilled in the art can select the corresponding hash algorithm according to actual needs, which is not listed here.
After the first hash value and the plurality of second hash values are obtained, the difference value between each second hash value and the first hash value can be calculated respectively, the difference values can be sorted in an ascending order or a descending order, the second hash value with the minimum difference value with the first hash value is determined, the corresponding mobile phone number is determined according to the second hash value, the list is inquired according to the mobile phone number, the conventional node corresponding to the mobile phone number is obtained, and the conventional node is used as the packing node of the next block.
In step S310, the packaging node packages the transactions in the transaction pool into a block and broadcasts the block to the blockchain network.
After the conventional node selected as the packing node obtains the packing right, the transaction in the transaction pool is packed into a block, the block is broadcasted to the block chain network, and other conventional nodes which are not selected in the block chain network add the block into the block chain copy of the node.
In step S311, after receiving the broadcasted block, other regular nodes that are not selected in the blockchain network add the block to the blockchain copy of the node itself.
Here, other conventional nodes in the blockchain network that are not selected will not verify that the packet node broadcasts to the blocks in the blockchain network.
The embodiment of fig. 3 differs from the embodiment of fig. 2 in that the embodiment of fig. 3 verifies the cell phone number before broadcasting the association of the node and the cell phone number to the blockchain network, so that after determining the packing node, no further verification is required.
In an optional embodiment of the present invention, the packing node and the verification node may be determined according to the serial numbers by numbering the mobile phone numbers in the list, and specifically, the following method may be adopted:
sequentially numbering mobile phone numbers in a list for recording the mapping relation between the nodes and the mobile phone numbers, and performing hash processing on the block content of the latest block in the block chain by each conventional node by using a preset hash algorithm to obtain a seventh hash value; and taking the conventional node corresponding to the mobile phone number corresponding to the number value matched with the seventh hash value in the list as the packing node of the next block.
Each conventional node respectively performs hash processing on the block content of the latest block in the block chain by using different hash algorithms according to the number of verification nodes to be selected to obtain a plurality of eighth hash values; and regarding each eighth hash value, taking a conventional node corresponding to the mobile phone number corresponding to the number value matched with the eighth hash value in the list as a verification node for verifying the packaging block.
In an optional embodiment of the present invention, in order to prevent the problem of block packing blocking caused by that the selected regular node does not respond to information in time, other regular nodes that are not selected in the block chain network may set a blacklist mechanism according to a time required for block packing, and add the regular nodes that are not packed or verified for many times to a blacklist, specifically, the method may be implemented by:
and detecting whether the selected group of packing nodes and verification nodes finish block packing within preset time by other conventional nodes which are not selected in the block chain network, and if not, reselecting the group of packing nodes and verification nodes to pack the next block.
The other non-selected conventional nodes in the block chain network detect whether the number of times that the selected packing node is not packed within a preset time period after receiving the verification code is greater than or equal to a first preset threshold, and if so, add the conventional node selected as the packing node to a blacklist, wherein the first preset threshold may be set according to actual needs, for example, set to 3 times, which is only an example and does not have any limiting effect.
Other conventional nodes which are not selected in the block chain network detect whether the number of times that the selected verification node is not checked is greater than or equal to a second preset threshold, if so, the conventional node which is selected as the verification node is added to a blacklist, wherein the second preset threshold can be set according to actual needs, for example, set to 5 times, which is only an example and does not have any limiting effect.
The scheme provided by the embodiment of the invention utilizes the uniqueness of the mobile phone number and the characteristic of difficult forgery of short message verification, and takes the mobile phone number as the basis of the distribution of the packing right, thereby realizing the effect of reasonably and fairly selecting the packing node by each conventional node in a block chain network, avoiding the resource waste caused by workload certification and saving the time required by packing the transaction into blocks.
Fig. 4 is a schematic structural diagram illustrating a system for selecting a packaging node based on a mobile phone number according to an embodiment of the present invention. The system is applied to a block chain network, as shown in fig. 4, the system 400 includes: a plurality of regular nodes 410.
Each regular node 410 is configured to broadcast the node and the association of the cell phone number corresponding to the node to the blockchain network;
each regular node 410 is further configured to: and selecting one conventional node from the plurality of conventional nodes as a packing node of the next block according to the block content of the latest block in the block chain and the mobile phone number broadcasted to the block chain network.
Optionally, each regular node 410 is further configured to: selecting a first preset number of conventional nodes from a plurality of conventional nodes as verification nodes for verifying the packaged block according to the block content of the latest block in the block chain and the mobile phone number broadcasted to the block chain network;
the verification nodes are used for respectively sending verification codes to the mobile phone numbers corresponding to the packaging nodes in a short message mode and broadcasting the hash values of the verification codes to the block chain network;
the packaging node is used for packaging the transactions in the transaction pool into a block and broadcasting the block and the received verification code to the block chain network;
and the other non-selected conventional nodes 410 in the blockchain network are used for verifying the packaging nodes according to the hash values of the verification codes broadcasted by the verification nodes, and if the verification codes broadcasted by the packaging nodes are matched with the hash values of the verification codes broadcasted by the verification nodes and the number of the verification codes broadcasted by the packaging nodes is greater than or equal to a second preset number, the packaging nodes are confirmed to acquire the packaging right of the next block, and the block is added into the blockchain copy of the node.
Optionally, each regular node 410 is further configured to: carrying out hash processing on the block content of the latest block in the block chain by using a preset hash algorithm to obtain a first hash value;
carrying out hash processing on the plurality of mobile phone numbers by using a preset hash algorithm to obtain a plurality of second hash values;
and selecting a second hash value with the minimum difference value with the first hash value from the plurality of second hash values according to the first hash value, and taking a conventional node corresponding to the mobile phone number corresponding to the second hash value as a packing node of the next block.
Optionally, each regular node 410 is further configured to: respectively carrying out hash processing on the block content of the latest block in the block chain by using different hash algorithms according to the number of verification nodes to be selected to obtain a plurality of third hash values;
carrying out hash processing on the plurality of mobile phone numbers by using a corresponding hash algorithm to obtain a plurality of fourth hash values;
and for each third hash value, selecting a fourth hash value with the minimum difference value with the third hash value from a plurality of fourth hash values according to the third hash value, and taking a conventional node corresponding to the mobile phone number corresponding to the selected fourth hash value as a verification node for verifying the packaging block.
Optionally, each regular node 410 is further configured to: broadcasting the mobile phone number association corresponding to the node to the blockchain network;
respectively carrying out hash processing on the mobile phone number of the node by using different hash algorithms according to the number of the verification nodes to be selected to obtain a plurality of fifth hash values;
performing hash processing on other mobile phone numbers broadcasted to the blockchain network by using a corresponding hash algorithm to obtain a plurality of sixth hash values;
for each fifth hash value, selecting a sixth hash value with the smallest difference value with the fifth hash value from a plurality of sixth hash values according to the fifth hash value, and taking a conventional node corresponding to the mobile phone number corresponding to the selected sixth hash value as a verification node;
the verification nodes respectively send verification codes to the mobile phone numbers corresponding to the conventional nodes in a short message mode, and the hash values of the verification codes are broadcast to the blockchain network;
the conventional node broadcasts the received verification code to the blockchain network;
verifying the conventional node by other unselected conventional nodes in the block chain network according to the hash value of the verification code broadcast by the verification node, and if the verification code broadcast by the conventional node is matched with the hash value of the verification code broadcast by the verification node and the number of the verification codes broadcast by the conventional node is greater than or equal to a second preset number, determining that the conventional node passes the verification;
each regular node broadcasts the node and the cell phone number association corresponding to the node to the blockchain network.
Optionally, the packing node is configured to pack transactions in the transaction pool into tiles and broadcast the tiles to the blockchain network.
Optionally, other regular nodes 410 in the blockchain network that are not selected are used to add the block to the node's own copy of the blockchain after receiving the broadcasted block.
Optionally, each regular node 410 is further configured to: and traversing the query block chain to generate a list for recording the mapping relation between the nodes and the mobile phone numbers.
Optionally, each regular node 410 is further configured to: and sequentially numbering the mobile phone numbers in the list.
Optionally, each regular node 410 is further configured to: carrying out hash processing on the block content of the latest block in the block chain by using a preset hash algorithm to obtain a seventh hash value;
and taking the conventional node corresponding to the mobile phone number corresponding to the number value matched with the seventh hash value in the list as the packing node of the next block.
Optionally, each regular node 410 is further configured to: respectively carrying out hash processing on the block content of the latest block in the block chain by using different hash algorithms according to the number of verification nodes to be selected to obtain a plurality of eighth hash values;
and regarding each eighth hash value, taking a conventional node corresponding to the mobile phone number corresponding to the number value matched with the eighth hash value in the list as a verification node for verifying the packaging block.
Optionally, each regular node 410 is further configured to: and signing the mobile phone number by using the private key of the node, broadcasting the mobile phone number and the signature to the block chain network in a transaction mode, and writing the mobile phone number and the signature into the block chain.
Optionally, other regular nodes 410 in the blockchain network that are not selected are further configured to: and detecting whether the selected group of packing nodes and verification nodes finish block packing within preset time, and if not, reselecting the group of packing nodes and verification nodes to pack the next block.
Optionally, other regular nodes 410 in the blockchain network that are not selected are further configured to: and detecting whether the number of times of non-packaging of the selected packaging node in a preset time period after the verification code is received is greater than or equal to a first preset threshold value, and if so, adding the conventional node selected as the packaging node to a blacklist.
Optionally, other regular nodes 410 in the blockchain network that are not selected are further configured to: and detecting whether the times of the selected verification nodes which are not verified are greater than or equal to a second preset threshold value or not, and if so, adding the conventional nodes selected as the verification nodes to a blacklist.
According to the system provided by the embodiment of the invention, each conventional node broadcasts the node and the mobile phone number corresponding to the node to the blockchain network in an associated manner, each conventional node selects one conventional node from a plurality of conventional nodes as a packing node of the next block according to the block content of the latest block in the blockchain and the mobile phone number broadcasted to the blockchain network, and the mobile phone number is used as the distribution basis of the packing right by using the uniqueness of the mobile phone number, so that on one hand, the effect of reasonably and fairly selecting the packing node by each conventional node in the blockchain network is realized, on the other hand, the resource waste caused by workload certification is avoided, and the time required by packing into blocks is saved.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (28)

1. A method for selecting a packing node based on a mobile phone number is applied to a block chain network, the block chain network comprises a plurality of conventional nodes, and the method comprises the following steps:
each conventional node broadcasts the node and the mobile phone number corresponding to the node to the blockchain network in an associated mode;
each conventional node selects one conventional node from a plurality of conventional nodes as a packing node of the next block according to the block content of the latest block in the block chain and the mobile phone number broadcasted to the block chain network;
wherein, each conventional node selects one conventional node from the plurality of conventional nodes as a packing node of the next block according to the block content of the latest block in the block chain and the mobile phone number broadcasted to the block chain network, and the method further comprises the following steps:
each conventional node performs hash processing on the block content of the latest block in the block chain by using a preset hash algorithm to obtain a first hash value;
each conventional node performs hash processing on a plurality of mobile phone numbers by using a preset hash algorithm to obtain a plurality of second hash values;
and selecting a second hash value with the minimum difference value with the first hash value from a plurality of second hash values according to the first hash value, and taking a conventional node corresponding to the mobile phone number corresponding to the second hash value as a packing node of the next block, wherein the hash algorithm adopted when each conventional node hashes the block content of the latest block is the same as the hash algorithm adopted when the mobile phone number is hashed.
2. The method of claim 1, further comprising: each conventional node selects a first preset number of conventional nodes from a plurality of conventional nodes as verification nodes for verifying the packed blocks according to the block content of the latest block in the block chain and the mobile phone number broadcasted to the block chain network;
the verification nodes respectively send verification codes to the mobile phone numbers corresponding to the packaging nodes in a short message mode, and broadcast the hash values of the verification codes to a block chain network;
the packaging node packages the transactions in the transaction pool into a block and broadcasts the block and the received verification code to a block chain network;
and verifying the packaging node by other non-selected conventional nodes in the block chain network according to the hash value of the verification code broadcasted by the verification node, and if the verification code broadcasted by the packaging node is matched with the hash value of the verification code broadcasted by the verification node and the number of the verification codes broadcasted by the packaging node is greater than or equal to a second preset number, confirming that the packaging node acquires the packaging right of the next block, and adding the block into the block chain copy of the node per se.
3. The method of claim 2, wherein each regular node selects a first predetermined number of regular nodes from the plurality of regular nodes as the verification nodes for verifying the packed blocks according to the block content of the latest block in the block chain and the cell phone number broadcasted to the block chain network, further comprising:
each conventional node respectively performs hash processing on the block content of the latest block in the block chain by using different hash algorithms according to the number of verification nodes to be selected to obtain a plurality of third hash values;
each conventional node performs hash processing on a plurality of mobile phone numbers by using the different hash algorithms to obtain a plurality of fourth hash values;
and for each third hash value, selecting a fourth hash value with the minimum difference value with the third hash value from a plurality of fourth hash values according to the third hash value, and taking a conventional node corresponding to the mobile phone number corresponding to the selected fourth hash value as a verification node for verifying the packaging block.
4. The method of claim 1, wherein broadcasting, by each regular node, the node and the association of cell phone numbers corresponding to the node to a blockchain network specifically comprises:
each conventional node broadcasts the mobile phone number corresponding to the node to the block chain network in an associated mode;
each conventional node respectively carries out hash processing on the mobile phone number of the node by using different hash algorithms according to the number of verification nodes to be selected to obtain a plurality of fifth hash values;
each conventional node performs hash processing on other mobile phone numbers broadcasted to the blockchain network by using the different hash algorithms to obtain a plurality of sixth hash values;
for each fifth hash value, selecting a sixth hash value with the smallest difference value with the fifth hash value from a plurality of sixth hash values according to the fifth hash value, and taking a conventional node corresponding to the mobile phone number corresponding to the selected sixth hash value as a verification node;
the verification nodes respectively send verification codes to the mobile phone numbers corresponding to the conventional nodes in a short message mode, and the hash values of the verification codes are broadcast to the block chain network;
the regular node broadcasts the received verification code to a blockchain network;
verifying the conventional node by other unselected conventional nodes in the block chain network according to the hash value of the verification code broadcast by the verification node, and if the verification code broadcast by the conventional node is matched with the hash value of the verification code broadcast by the verification node and the number of the verification codes broadcast by the conventional node is greater than or equal to a second preset number, determining that the conventional node passes verification;
each regular node broadcasts the node and the cell phone number association corresponding to the node to the blockchain network.
5. The method of claim 4, further comprising: the packaging node packages transactions in the transaction pool into tiles and broadcasts the tiles to a blockchain network.
6. The method of claim 5, further comprising:
after other conventional nodes which are not selected in the block chain network receive the broadcasted blocks, the blocks are added into the block chain copy of the node.
7. The method of claim 1 or 2, wherein after each regular node broadcasts the node and the cell phone number association corresponding to the node to the blockchain network, the method further comprises:
and traversing the query block chain by each conventional node to generate a list for recording the mapping relation between the nodes and the mobile phone numbers.
8. The method of claim 7, further comprising: and sequentially numbering the mobile phone numbers in the list.
9. The method of claim 8, wherein each regular node selects one regular node from the plurality of regular nodes as a packing node for a next block according to the block content of the latest block in the block chain and the mobile phone number broadcasted to the block chain network, further comprising:
each conventional node performs hash processing on the block content of the latest block in the block chain by using a preset hash algorithm to obtain a seventh hash value;
and taking the conventional node corresponding to the mobile phone number corresponding to the number value matched with the seventh hash value in the list as the packing node of the next block.
10. The method of claim 9, wherein each regular node selects a first predetermined number of regular nodes from the plurality of regular nodes as the verification nodes for verifying the packed blocks according to the block content of the latest block in the block chain and the cell phone number broadcasted to the block chain network, further comprising:
each conventional node respectively performs hash processing on the block content of the latest block in the block chain by using different hash algorithms according to the number of verification nodes to be selected to obtain a plurality of eighth hash values;
and regarding each eighth hash value, taking a conventional node corresponding to the mobile phone number corresponding to the number value matched with the eighth hash value in the list as a verification node for verifying the packaging block.
11. The method of claim 1, wherein broadcasting, by each regular node, the node and the association of cell phone numbers corresponding to the node to a blockchain network further comprises:
and each conventional node signs the mobile phone number by using the private key of the node, broadcasts the mobile phone number and the signature to the block chain network in a transaction mode and writes the mobile phone number and the signature into the block chain.
12. The method of claim 1, further comprising:
and detecting whether the selected group of packing nodes and verification nodes finish block packing within preset time by other conventional nodes which are not selected in the block chain network, and if not, reselecting the group of packing nodes and verification nodes to pack the next block.
13. The method of claim 1, further comprising:
and detecting whether the times of non-packaging of the selected packaging node in the preset time period after receiving the verification code is greater than or equal to a first preset threshold value by other non-selected conventional nodes in the block chain network, and if so, adding the conventional node selected as the packaging node to a blacklist.
14. The method of claim 1, further comprising:
and detecting whether the times of the non-verification of the selected verification node is greater than or equal to a second preset threshold value by other non-selected conventional nodes in the block chain network, and if so, adding the conventional node selected as the verification node to a blacklist.
15. A system for selecting packing nodes based on mobile phone numbers is characterized in that the system is applied to a block chain network, and the system comprises: a plurality of regular nodes;
each conventional node is used for broadcasting the node and the mobile phone number corresponding to the node to the blockchain network in an associated mode;
each regular node is further for: selecting one conventional node from a plurality of conventional nodes as a packing node of a next block according to the block content of the latest block in the block chain and the mobile phone number broadcasted to the block chain network;
each regular node is further for: carrying out hash processing on the block content of the latest block in the block chain by using a preset hash algorithm to obtain a first hash value;
carrying out hash processing on the plurality of mobile phone numbers by using a preset hash algorithm to obtain a plurality of second hash values;
and selecting a second hash value with the minimum difference value with the first hash value from a plurality of second hash values according to the first hash value, and taking a conventional node corresponding to the mobile phone number corresponding to the second hash value as a packing node of the next block, wherein the hash algorithm adopted when each conventional node hashes the block content of the latest block is the same as the hash algorithm adopted when the mobile phone number is hashed.
16. The system of claim 15, wherein each regular node is further configured to: selecting a first preset number of conventional nodes from a plurality of conventional nodes as verification nodes for verifying the packaged block according to the block content of the latest block in the block chain and the mobile phone number broadcasted to the block chain network;
the verification nodes are used for respectively sending verification codes to the mobile phone numbers corresponding to the packaging nodes in a short message mode and broadcasting the hash values of the verification codes to the block chain network;
the packaging node is used for packaging the transactions in the transaction pool into a block and broadcasting the block and the received verification code to a block chain network;
and other conventional nodes which are not selected in the block chain network are used for verifying the packaging nodes according to the hash values of the verification codes broadcasted by the verification nodes, and if the verification codes broadcasted by the packaging nodes are matched with the hash values of the verification codes broadcasted by the verification nodes and the number of the verification codes broadcasted by the packaging nodes is larger than or equal to a second preset number, the packaging nodes are confirmed to acquire the packaging right of the next block, and the block is added into the block chain copy of the node.
17. The system of claim 16, wherein each regular node is further configured to: respectively carrying out hash processing on the block content of the latest block in the block chain by using different hash algorithms according to the number of verification nodes to be selected to obtain a plurality of third hash values;
carrying out hash processing on a plurality of mobile phone numbers by using the different hash algorithms to obtain a plurality of fourth hash values;
and for each third hash value, selecting a fourth hash value with the minimum difference value with the third hash value from a plurality of fourth hash values according to the third hash value, and taking a conventional node corresponding to the mobile phone number corresponding to the selected fourth hash value as a verification node for verifying the packaging block.
18. The system of claim 15, wherein each regular node is further configured to: broadcasting the mobile phone number association corresponding to the node to the blockchain network;
respectively carrying out hash processing on the mobile phone number of the node by using different hash algorithms according to the number of the verification nodes to be selected to obtain a plurality of fifth hash values;
performing hash processing on other mobile phone numbers broadcasted to the blockchain network by using the different hash algorithms to obtain a plurality of sixth hash values;
for each fifth hash value, selecting a sixth hash value with the smallest difference value with the fifth hash value from a plurality of sixth hash values according to the fifth hash value, and taking a conventional node corresponding to the mobile phone number corresponding to the selected sixth hash value as a verification node;
the verification nodes respectively send verification codes to the mobile phone numbers corresponding to the conventional nodes in a short message mode, and the hash values of the verification codes are broadcast to the block chain network;
the regular node broadcasts the received verification code to a blockchain network;
verifying the conventional node by other unselected conventional nodes in the block chain network according to the hash value of the verification code broadcast by the verification node, and if the verification code broadcast by the conventional node is matched with the hash value of the verification code broadcast by the verification node and the number of the verification codes broadcast by the conventional node is greater than or equal to a second preset number, determining that the conventional node passes verification;
each regular node broadcasts the node and the cell phone number association corresponding to the node to the blockchain network.
19. The system of claim 18, wherein the packaging node is configured to package transactions in the transaction pool into blocks and broadcast the blocks to a blockchain network.
20. The system of claim 19, wherein other regular nodes in the blockchain network that are not selected are configured to add the broadcasted chunks to their own copy of the blockchain after receiving the chunks.
21. The system of claim 15 or 16, wherein each regular node is further configured to: and traversing the query block chain to generate a list for recording the mapping relation between the nodes and the mobile phone numbers.
22. The system of claim 21, wherein each regular node is further configured to: and sequentially numbering the mobile phone numbers in the list.
23. The system of claim 22, wherein each regular node is further configured to: carrying out hash processing on the block content of the latest block in the block chain by using a preset hash algorithm to obtain a seventh hash value;
and taking the conventional node corresponding to the mobile phone number corresponding to the number value matched with the seventh hash value in the list as the packing node of the next block.
24. The system of claim 23, wherein each regular node is further configured to:
respectively carrying out hash processing on the block content of the latest block in the block chain by using different hash algorithms according to the number of verification nodes to be selected to obtain a plurality of eighth hash values;
and regarding each eighth hash value, taking a conventional node corresponding to the mobile phone number corresponding to the number value matched with the eighth hash value in the list as a verification node for verifying the packaging block.
25. The system of claim 15, wherein each regular node is further configured to: and signing the mobile phone number by using the private key of the node, broadcasting the mobile phone number and the signature to the block chain network in a transaction mode, and writing the mobile phone number and the signature into the block chain.
26. The system of claim 15, wherein other regular nodes in the blockchain network that are not selected are further configured to: and detecting whether the selected group of packing nodes and verification nodes finish block packing within preset time, and if not, reselecting the group of packing nodes and verification nodes to pack the next block.
27. The system of claim 15, wherein other regular nodes in the blockchain network that are not selected are further configured to: and detecting whether the number of times of non-packaging of the selected packaging node in a preset time period after the verification code is received is greater than or equal to a first preset threshold value, and if so, adding the conventional node selected as the packaging node to a blacklist.
28. The system of claim 15, wherein other regular nodes in the blockchain network that are not selected are further configured to: and detecting whether the times of the selected verification nodes which are not verified are greater than or equal to a second preset threshold value or not, and if so, adding the conventional nodes selected as the verification nodes to a blacklist.
CN201711240614.7A 2017-11-30 2017-11-30 Method and system for selecting packaging node based on mobile phone number Active CN107911819B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711240614.7A CN107911819B (en) 2017-11-30 2017-11-30 Method and system for selecting packaging node based on mobile phone number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711240614.7A CN107911819B (en) 2017-11-30 2017-11-30 Method and system for selecting packaging node based on mobile phone number

Publications (2)

Publication Number Publication Date
CN107911819A CN107911819A (en) 2018-04-13
CN107911819B true CN107911819B (en) 2020-11-27

Family

ID=61848215

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711240614.7A Active CN107911819B (en) 2017-11-30 2017-11-30 Method and system for selecting packaging node based on mobile phone number

Country Status (1)

Country Link
CN (1) CN107911819B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109194633B (en) * 2018-08-21 2021-08-10 山东智慧云链网络科技有限公司 Address book backup method and system
CN110247753B (en) * 2019-06-17 2020-10-09 北京瑞策科技有限公司 Block output method and device based on block chain node point network
CN110636037B (en) * 2019-07-02 2021-11-26 中国联合网络通信集团有限公司 One-number multi-card service application method, user node, operator system and block chain
CN112188418B (en) * 2019-07-05 2022-10-14 青岛海链数字科技有限公司 Short message verification method based on block chain
CN111010381B (en) * 2019-12-06 2022-04-22 趣派(海南)信息科技有限公司 Cross-chain-based identity authentication method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656974B (en) * 2016-10-17 2019-07-16 江苏通付盾科技有限公司 The grouping common recognition method and system of block chain
CN106789908B (en) * 2016-11-23 2019-09-06 江苏通付盾科技有限公司 Block common recognition method for building up and system in block chain
US10862959B2 (en) * 2016-11-28 2020-12-08 Keir Finlow-Bates Consensus system and method for adding data to a blockchain
WO2018112949A1 (en) * 2016-12-23 2018-06-28 深圳前海达闼云端智能科技有限公司 Block chain mining method, device, and node apparatus

Also Published As

Publication number Publication date
CN107911819A (en) 2018-04-13

Similar Documents

Publication Publication Date Title
CN107911819B (en) Method and system for selecting packaging node based on mobile phone number
CN107566124B (en) Hash operation-based consensus establishing method, block chain system and storage medium
CN108269090B (en) Consensus method and device for block chain system based on non-negotiation random drawing
CN108023896B (en) Block synchronization method and system
KR102469267B1 (en) Blockchain consensus method, accounting node and node
CN110046896B (en) Block processing method, node and system
CN107220130B (en) Method, device and system for realizing information consensus at nodes of block chain
CN109660356B (en) Data uplink method, device, equipment and computer readable storage medium
CN108009918B (en) Accounting method of block chain consensus algorithm transaction system and electronic equipment
CN108924130B (en) Block data verification method, device, equipment and storage medium
CN111629039A (en) Block chain consensus method, client, endorsement node and sequencing node
CN110300172A (en) A kind of the common recognition method and relevant device of block chain data
CN108234134B (en) Block synchronization method and system
CN111415161B (en) Block chain-based data verification method and device and computer readable storage medium
JP2005341552A5 (en)
CN108365960B (en) Random number providing method and device
CN112689848A (en) Consensus method of block chain data and related equipment
CN110838047A (en) Online taxi appointment driver credit management method and device, server and storage medium
CN114281888A (en) Block chain consensus method, device, equipment and storage medium
CN109886810B (en) Crowdsourcing transaction method and system, readable storage medium and terminal
US20170302693A1 (en) Rewrite detection system and information processing device
CN104468120A (en) Method and system for achieving electronic signature
CN111488134A (en) Public random number generation method and device based on block chain
CN116910816B (en) Multiparty asset collaborative management method and device for improving privacy protection
CN111327565A (en) Block chaining and deblocking 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
TA01 Transfer of patent application right

Effective date of registration: 20201030

Address after: 4f, building C2, Suzhou 2.5 Industrial Park, 88 Dongchang Road, Suzhou Industrial Park, Jiangsu Province, 215000

Applicant after: JIANGSU PAY EGIS TECHNOLOGY Co.,Ltd.

Applicant after: Jiangsu tongfudun blockchain Technology Co., Ltd

Address before: East Road, Suzhou City Industrial Park in Jiangsu province 215021 No. 88 Suzhou 2.5 Industrial Park C2 building room 3F-301

Applicant before: JIANGSU PAY EGIS TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant