IP Library Granted Patent US 10,664,485
Granted Patent B2
US 10,664,485 · App. 16/314,986 · Granted May 26, 2020

Block chain mining method, device, and node apparatus

Inventors: Yueyang Zhang (Shenzhen, CN); Hui Xie (Shenzhen, CN)
Assignee: CLOUDMINDS (SHENZHEN) ROBOTICS SYSTEMS CO., LTD.
G06F16/2465G06F16/2365G06F16/27H04L9/0637H04L9/0643H04L9/0869H04L67/104G06F2216/03H04L2209/38
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,664,485
App. No.
16/314,986
Granted
May 26, 2020
Kind
B2
Abstract

A blockchain mining method, device, and a node apparatus are used to solve the technical problem of unequal distribution of mining opportunities for node apparatuses in a blockchain network. The method comprises: acquiring a current block number of the blockchain; judging whether a hash slot corresponding to the block number is consistent with a hash slot corresponding to the node apparatus, wherein the node apparatuses in the blockchain network are distributed in N hash slots by means of a hash algorithm, and N is a positive integer greater than or equal to 2; and determining whether the node apparatus performs mining this time according to a judgment result.

Claims (36)

1. A blockchain mining method applied to a node apparatus in a blockchain network, the method comprising:

acquiring a current block number of the blockchain;

judging whether a hash slot corresponding to the current block number is consistent with a hash slot corresponding to the node apparatus,

wherein node apparatuses in the blockchain network are distributed in N hash slots by means of a hash algorithm, and N is a positive integer greater than or equal to 2; and

determining whether the node apparatus performs mining this time according to a judgment result,

wherein judging whether a hash slot corresponding to the current block number is consistent with a hash slot corresponding to the node apparatus comprises:

performing a modulo operation on N by using the current block number to obtain a first modulo value;

performing the modulo operation on N by using account information of the node apparatus according to an MD5 algorithm to obtain a second modulo value; and

judging whether the first modulo value is consistent with the second modulo value, wherein if the first modulo value is consistent with the second modulo value, it indicates that the hash slot corresponding to the current block number is consistent with the hash slot corresponding to the node apparatus, and if the first modulo value is not consistent with the second modulo value, it indicates that the hash slot corresponding to the current block number is not consistent with the hash slot corresponding to the node apparatus.

2. The method according to claim 1 , wherein determining whether the node apparatus performs mining this time according to a judgment result comprises:

determining that the node apparatus does not perform mining this time when the hash slot corresponding to the current block number is consistent with the hash slot corresponding to the node apparatus; and

determining that the node apparatus performs mining this time when the hash slot corresponding to the current block number is not consistent with the hash slot corresponding to the node apparatus.

3. The method according to claim 1 , wherein determining whether the node apparatus performs mining this time according to a judgment result comprises:

determining that the node apparatus performs mining this time if the hash slot corresponding to the current block number acquired in consecutive M times is consistent with the hash slot corresponding to the node apparatus, where M is a positive integer greater than or equal to 2.

4. The method according to claim 1 , further comprising:

receiving a block sent by another node apparatus in the blockchain network, the block includes account information of the another node apparatus;

performing proof of work on the block when it is determined that the hash slot corresponding to the current block number is not consistent with the hash slot corresponding to the another node apparatus.

5. A node apparatus, comprising:

a processor unit, a communication interface, a memory and a communication bus; wherein the processor unit, the communication interface and the memory communicate with each other through the communication bus;

the memory is configured to store program codes;

the processor unit is configured to execute the program codes to implement a method comprising:

acquiring a current block number of the blockchain

judging whether a hash slot corresponding to the current block number is consistent with a hash slot corresponding to the node apparatus, wherein the node apparatuses in the blockchain network are distributed in N hash slots by means of a hash algorithm, and N is a positive integer greater than or equal to 2;

determining whether the node apparatus performs mining this time according to a judgment result,

wherein judging whether a hash slot corresponding to the current block number is consistent with a hash slot corresponding to the node apparatus comprises:

performing a modulo operation on N by using the current block number to obtain a first modulo value;

performing the modulo operation on N by using account information of the node apparatus according to an MD5 algorithm to obtain a second modulo value; and

judging whether the first modulo value is consistent with the second modulo value, wherein if the first modulo value is consistent with the second modulo value, it indicates that the hash slot corresponding to the current block number is consistent with the hash slot corresponding to the node apparatus, and if the first modulo value is not consistent with the second modulo value, it indicates that the hash slot corresponding to the current block number is not consistent with the hash slot corresponding to the node apparatus.

6. A non-transitory computer readable storage medium for storing a computer program, the computer program comprising instructions for performing a method comprising:

acquiring a current block number of the blockchain;

judging whether a hash slot corresponding to the current block number is consistent with a hash slot corresponding to the node apparatus, wherein the node apparatuses in the blockchain network are distributed in N hash slots by means of a hash algorithm, and N is a positive integer greater than or equal to 2;

determining whether the node apparatus performs mining this time according to a judgment result,

wherein judging whether a hash slot corresponding to the current block number is consistent with a hash slot corresponding to the node apparatus comprises:

performing a modulo operation on N by using the current block number to obtain a first modulo value;

performing the modulo operation on N by using account information of the node apparatus according to an MD5 algorithm to obtain a second modulo value; and

judging whether the first modulo value is consistent with the second modulo value, wherein if the first modulo value is consistent with the second modulo value, it indicates that the hash slot corresponding to the current block number is consistent with the hash slot corresponding to the node apparatus, and if the first modulo value is not consistent with the second modulo value, it indicates that the hash slot corresponding to the current block number is not consistent with the hash slot corresponding to the node apparatus.

Assignments (6)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 23, 2026
From: DATAA ROBOTICS (ANJI) CO., LTD.
To: CHONGQING XINGJIE SHUXING TECHNOLOGY PARTNERSHIP ENTERPRISE (LIMITED PARTNERSHIP)
Reel/Frame 074153/0627 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 21, 2025
From: CLOUDMINDS ROBOTICS CO., LTD.
To: DATAA ROBOTICS (ANJI) CO., LTD.
Reel/Frame 072089/0001 →
CHANGE OF ADDRESS Recorded May 9, 2022
From: CLOUDMINDS ROBOTICS CO., LTD.
To: CLOUDMINDS ROBOTICS CO., LTD.
Reel/Frame 059911/0487 →
CORRECTIVE ASSIGNMENT TO CORRECT THE ASSIGNEE NAME PREVIOUSLY RECORDED AT REEL: 055472 FRAME: 0051. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNMENT . Recorded Apr 5, 2022
From: CLOUDMINDS (SHENZHEN) ROBOTICS SYSTEMS CO., LTD.
To: CLOUDMINDS ROBOTICS CO., LTD.
Reel/Frame 059612/0582 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 2, 2021
From: CLOUDMINDS (SHENZHEN) ROBOTICS SYSTEMS CO., LTD.
To: CLOUDMINDS (SHANGHAI) ROBOTICS CO., LTD.
Reel/Frame 055472/0051 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 8, 2019
From: ZHANG, YUEYANG; XIE, HUI
To: CLOUDMINDS (SHENZHEN) ROBOTICS SYSTEMS CO., LTD.
Reel/Frame 048820/0483 →
Continuity (1)
Related Publication 20190310980A1 · Oct 10, 2019
Cited By (1)
US 12,254,435