# US 2022/0292489 A1 · Methods and devices for tracking and measuring proof-of-work contributions in a mining pool

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0292489 A1
- Document ID: US20220292489A1
- Status: Published application
- Kind: A1
- Application number: 17/639,858
- Filed: 2020-09-02
- Published: 2022-09-15
- Earliest claimed: 2019-09-06
- Assignees: nChain Licensing AG
- Applicants: nChain Licensing AG
- Inventors: Alexander MACKAY; Owen VAUGHAN
- Web page: https://patentgrep.com/patent/US20220292489A1

## CPC

- G06Q 20/3672: {initialising or reloading thereof}
- H04L 9/3239: {involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD}
- G06F 21/64: Protecting data integrity, e.g. using checksums, certificates or signatures
- G06Q 20/401: {Transaction verification}
- H04L 9/3218: {using proof of knowledge, e.g. Fiat-Shamir, GQ, Schnorr, ornon-interactive zero-knowledge proofs}
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- G06Q 2220/00: Business processing using cryptography
- H04L 2209/56: Financial cryptography, e.g. electronic payment or e-cash
- G06Q: INFORMATION 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
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods and devices to track proof-of-work contributions from mining devices in a mining pool. The mining pool includes a pool master computing device that stores a bloom filter. The bloom filter stores candidate block header information that meets a partial proof-of-work standard based on regular reports from the mining devices during their proof-of-work searching. On receipt of new candidate block header information form one of the mining device, the pool master constructs a candidate block header using the information and assesses whether it is already stored in the bloom filter. If not, then it stores the block header in the bloom filter. If so, then it records a bad hash in association with the mining device that reported it.

## Claims

### Claim 1

A computer-implemented method of tracking proof-of-work contributions from mining devices within a mining pool, the mining pool having a pool master computing device that stores a bloom filter, the method comprising:
receiving candidate block header information from a first mining device within the pool;
constructing a candidate block header based on the candidate block header information;
determining that the candidate block header is not stored in the bloom filter; and,
based on the determination that the bloom filter does not contain the candidate block header, updating the bloom filter to store the candidate block header in the bloom filter.

### Claim 2 (depends on 1)

The method claimed in claim 1, wherein the candidate block header information includes a nonce value and wherein constructing includes inserting the nonce value in the candidate block header.

### Claim 3 (depends on 1)

The method claimed in claim 1, wherein the candidate block header information includes coinbase transaction data, and wherein constructing the candidate block header includes building a merkle tree based, in part, on the coinbase transaction data and populating a merkle root field of the candidate block header based on the merkle tree.

### Claim 4 (depends on 1)

The method claimed in claim 1, wherein the bloom filter comprises a bit array, and wherein determining that the candidate block header is not stored in the bloom filter includes hashing the candidate block header using k hash functions to identify k bit positions, and determining that at least one of the k bit positions in the bit array is set to zero.

### Claim 5 (depends on 4)

The method claimed in claim 4, wherein hashing using k hash functions includes repeatedly hashing the candidate block header k times using one hash function.

### Claim 6 (depends on 4)

The method claimed in claim 4, wherein updating the bloom filter includes setting bits of the bit array in the k bit positions to 1.

### Claim 7 (depends on 1)

The method claimed in claim 1, further comprising:
receiving second candidate block header information from a second mining device within the pool;
constructing a second candidate block header based on the second candidate block header information;
determining that the second candidate block header is likely stored in the bloom filter; and,
based on the determination that the bloom filter likely contains the second candidate block header, incrementing a count of invalid candidate blocks associated with the second mining device.

### Claim 8 (depends on 7)

The method claimed in claim 7, wherein the bloom filter comprises a bit array, and wherein determining that the second candidate block header is likely stored in the bloom filter includes hashing the second candidate block header using k hash functions to identify k bit positions, and determining that all of the k bit positions in the bit array are set to one.

### Claim 9 (depends on 1)

The method claimed in claim 1, further comprising hashing the candidate block header to produce a hash result, comparing the hash result to a higher threshold value set by a second difficulty parameter, and determining that the hash result is less than the higher threshold value.

### Claim 10 (depends on 9)

The method claimed in claim 9, further comprising determining that a time of receipt between two or more partial proof-of-work reports containing candidate block header information from the first mining device deviates from a target duration by more than a threshold amount and, on that basis, adjusting the second difficulty parameter and sending the adjusted second difficulty parameter to the first mining device.

### Claim 11 (depends on 1)

The method claimed in claim 1, further comprising determining that a valid block has been found by the mining pool and determining a share of a block reward allocated to the first mining device based on one or more of:
a second difficulty parameter associated with the first mining device,
a history of second difficulty parameters associated with the first mining device while mining the valid block, or
a count of partial proof-of-work reports received from the first mining device while mining the valid block.

### Claim 12 (depends on 1)

The method claimed in claim 1, further comprising determining a count of bad hashes associated with each mining device in the mining pool and adjusting a relative share of block rewards allocated to each mining device based on the count of bad hashes associated with each respective mining device.

### Claim 13 (depends on 12)

The method claimed in claim 12, wherein the count of bad hashes for a particular mining device is incremented by one when the particular mining device sends candidate block header information that either does not result in a hash value below a higher threshold value or is determined to already be stored in the bloom filter.

### Claim 14

A pool master computing device to track proof-of-work contributions from mining devices within a mining pool, the computing device including:
one or more processors;
memory storing a bloom filter; and
computer-executable instructions stored in the memory that, when executed by the one or more processors, cause the processors to:
receive candidate block header information from a first mining device within the pool;
construct a candidate block header based on the candidate block header information;
determine that the candidate block header is not stored in the bloom filter; and
based on the determination that the bloom filter does not contain the candidate block header, update the bloom filter to store the candidate block header in the bloom filter.

### Claim 15

A computer-readable medium storing processor-executable instructions for tracking proof-of-work contributions from mining devices within a mining pool, the mining pool having a pool master computing device that stores a bloom filter, the processor-executable instructions including instructions that, when executed by one or more processors, cause the processors to:
receive candidate block header information from a first mining device within the pool;
construct a candidate block header based on the candidate block header information;
determine that the candidate block header is not stored in the bloom filter; and
based on the determination that the bloom filter does not contain the candidate block header, update the bloom filter to store the candidate block header in the bloom filter.

### Claim 16 (depends on 14)

The pool master computing device claimed in claim 14, wherein the candidate block header information includes a nonce value and wherein the instructions, when executed, are to cause the one or more processors to construct the candidate block header by inserting the nonce value in the candidate block header.

### Claim 17 (depends on 14)

The pool master computing device claimed in claim 14, wherein the candidate block header information includes coinbase transaction data, and wherein the instructions, when executed, are to cause the one or more processors to construct the candidate block header includes building a merkle tree based, in part, on the coinbase transaction data and populating a merkle root field of the candidate block header based on the merkle tree.

### Claim 18 (depends on 12)

The method of claim 12, wherein the bloom filter comprises a bit array, and the instructions, when executed, are to cause the one or more processors to determine that the candidate block header is not stored in the bloom filter by hashing the candidate block header using k hash functions to identify k bit positions, and determining that at least one of the k bit positions in the bit array is set to zero, wherein hashing using k hash functions includes repeatedly hashing the candidate block header k times using one hash function, and wherein updating the bloom filter includes setting bits of the bit array in the k bit positions to 1.

### Claim 19 (depends on 12)

The method of claim 12, wherein the instructions, when executed, are to further cause the one or more processors to:
receive second candidate block header information from a second mining device within the pool;
construct a second candidate block header based on the second candidate block header information;
determine that the second candidate block header is likely stored in the bloom filter; and,
based on the determination that the bloom filter likely contains the second candidate block header, increment a count of invalid candidate blocks associated with the second mining device.

### Claim 20 (depends on 19)

The method of claim 19, wherein the bloom filter comprises a bit array, and wherein the instructions, when executed, are to cause the one or more processors to determine that the second candidate block header is likely stored in the bloom filter by hashing the second candidate block header using k hash functions to identify k bit positions, and determining that all of the k bit positions in the bit array are set to one.

### Claim 21 (depends on 14)

The pool master computing device claimed in claim 14, wherein the instructions, when executed, are to further cause the one or more processors to hash the candidate block header to produce a hash result, compare the hash result to a higher threshold value set by a second difficultly parameter, and determine that the hash result is less than the higher threshold value.

### Claim 22 (depends on 21)

The pool master computing device claimed in claim 21, wherein the instructions, when executed, are to further cause the one or more processors to determine that a time of receipt between two or more partial proof-of-work reports containing candidate block header information from the first mining device deviates from a target duration by more than a threshold amount and, on that basis, adjust the second difficulty parameter to generate an adjusted second difficulty parameter and send the adjusted second difficulty parameter to the first mining device.

### Claim 23 (depends on 14)

The pool master computing device claimed in claim 14, wherein the instructions, when executed, are to cause the one or more processors to determine that a valid block has been found by the mining pool and determine a share of a block reward allocated to the first mining device based on one or more of:
a second difficulty parameter associated with the first mining device,
a history of second difficulty parameters associated with the first mining device while mining the valid block, or
a count of partial proof-of-work reports received from the first mining device while mining the valid block.

### Claim 24 (depends on 14)

The pool master computing device claimed in claim 14, wherein the instructions, when executed, are to further cause the one or more processors to: determine a count of bad hashes associated with each mining device in the mining pool and adjust a relative share of block rewards allocated to each mining device based on the count of bad hashes associated with each respective mining device, and wherein the count of bad hashes for a particular mining device is incremented by one when the particular mining device sends candidate block header information that either does not result in a hash value below a higher threshold value or is determined to already be stored in the bloom filter.
