# US 2024/0405998 A1 · Message scheduling for cryptographic hashing

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

- Number: US 2024/0405998 A1
- Document ID: US20240405998A1
- Status: Published application
- Kind: A1
- Application number: 18/696,073
- Filed: 2022-09-28
- Published: 2024-12-05
- Earliest claimed: 2021-09-29
- Assignees: Quantum Blockchain Technologies PLC
- Applicants: Quantum Blockchain Technologies PLC
- Inventors: Rahul Naik
- Web page: https://patentgrep.com/patent/US20240405998A1

## CPC

- H04L 9/3239: {involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD}
- H04L 2209/125: Parallelization or pipelining, e.g. for accelerating processing of cryptographic operations
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method of performing cryptographic hashing when mining for Bitcoin comprises causing a message scheduler to calculate a set of partially-calculated input values for a SHA256 (e.g. SHA2560 424) cryptographic compression function using values which are based on invariable portions taken from an initial input message of the input messages (e.g. 418) to be hashed. For each subsequent input message of the input messages (e.g. 418) to be hashed, a set of fully-calculated input values for the SHA256 (e.g. SHA2560 424) cryptographic compression function is calculated using the partially-calculated input values and values which are based on variable portions of the subsequent input message to be hashed. The set of fully-calculated input values is then provided for use when performing the SHA256 (e.g. SHA2560 424) cryptographic compression function in respect of the subsequent input message. This reduces the number of calculations which need to be performed by the message scheduler.

## Claims

### Claim 1

A method of performing cryptographic hashing in respect of plural different input messages to be hashed, the method comprising:
causing a message scheduler to:
calculate a set of one or more partially-calculated input values for a cryptographic compression function using one or more values based on one or more invariable portions of an initial input message to be hashed, wherein corresponding ones of the invariable portions do not vary across the plural different input messages to be hashed; and
for each of one or more subsequent input messages to be hashed:
calculate a set of fully-calculated input values for the cryptographic compression function, wherein calculating the set of fully-calculated input values comprises performing calculations using one or more of the partially-calculated input values and one or more values based on one or more variable portions of the subsequent input message to be hashed, wherein corresponding ones of the variable portions do vary across the plural different input messages to be hashed; and
provide the set of fully-calculated input values for use when performing the cryptographic compression function in respect of the subsequent input message.

### Claim 2 (depends on 1)

The method as claimed in claim 1, wherein the cryptographic hashing is performed when mining for Bitcoin.

### Claim 3 (depends on 1, 2)

The method as claimed in claim 1 or 2, wherein the plural different input messages to be hashed each correspond to a different Bitcoin Block Header.

### Claim 4 (depends on 1)

A The method as claimed in claim 1, wherein the plural different input messages to be hashed each comprise a Version field, a HashPrevBlock field, and part of a HashMerkleRoot field.

### Claim 5 (depends on 4)

The method as claimed in claim 4, wherein the one or more invariable portions correspond to at least one of the HashPrevBlock field, and/or to the part of the HashMerkleRoot field.

### Claim 6 (depends on 4)

The method as claimed in claim 4, wherein the one or more variable portions correspond to the Version field.

### Claim 7 (depends on 4)

The method as claimed in claim 4, wherein the Version field is incremented across the plural different input messages.

### Claim 8 (depends on 1)

The method as claimed in claim 1, wherein the plural different input messages to be hashed each comprise part of a HashMerkleRoot field, a Timestamp field, a Target field, a Nonce field, and a Padding+Length field.

### Claim 9 (depends on 8)

The method as claimed in claim 8, wherein the one or more invariable portions correspond to at least one of the part of the HashMerkleRoot field; the Timestamp field; the Target field; and/or the Padding+Length field.

### Claim 10 (depends on 8)

The method as claimed in claim 8, wherein the one or more variable portions correspond to the Nonce field.

### Claim 11 (depends on 8)

The method as claimed in claim 8, wherein the Nonce field is incremented across the plural different input messages.

### Claim 12 (depends on 1)

The method as claimed in claim 1, wherein
the plural different input messages to be hashed each comprise a Message Digest field and a Padding+Length field.

### Claim 13 (depends on 12)

The method as claimed in claim 12, wherein the one or more invariable portions correspond to the Padding+Length field.

### Claim 14 (depends on 12)

The method as claimed in claim 12, wherein the one or more variable portions correspond to the Message Digest field.

### Claim 15 (depends on 1)

A The method as claimed in claim 1, wherein calculation of a partially-calculated input value of the set of one or more partially-calculated input values comprises performing some, but not all, of the operations in a message scheduling calculation.

### Claim 16 (depends on 1)

The method as claimed in claim 1, wherein calculation of a partially-calculated input value of the set of one or more partially-calculated input values comprises performing one or more of: an add operation; a bitwise rotate right (ROTR) operation; a bitwise shift right (SHR) operation; and a bitwise exclusive OR (@) operation.

### Claim 17 (depends on 1)

The method as claimed in claim 1, wherein calculation of a fully-calculated input value of the set of fully-calculated input values comprises performing some, but not all, of the operations in a message scheduling calculation.

### Claim 18 (depends on 1)

The method as claimed in claim 1, wherein calculation of a fully-calculated input value of the set of fully-calculated input values comprises performing one or more of: an add operation; a bitwise rotate right (ROTR) operation; a bitwise shift right (SHR) operation; and a bitwise exclusive OR (⊕) operation.

### Claim 19 (depends on 1)

The method as claimed in claim 1, wherein calculating the set of one or more fully-calculated input values for a subsequent input message comprises calculating a first set of fully-calculated input values for the subsequent input message and calculating a second set of fully-calculated input values for the subsequent input message, wherein calculation of the first set of fully-calculated input values is performed in parallel with calculation of the second set of fully-calculated input values.

### Claim 20

An apparatus for performing cryptographic hashing in respect of plural different input messages to be hashed, the apparatus comprising:
a message scheduler having processing circuitry configured to:
calculate a set of one or more partially-calculated input values for a cryptographic compression function using one or more values based on one or more invariable portions of an initial input message to be hashed, wherein corresponding ones of the invariable portions do not vary across the plural different input messages to be hashed; and
for each of one or more subsequent input messages to be hashed:
calculate a set of fully-calculated input values for the cryptographic compression function, wherein calculating the set of fully-calculated input values comprises performing calculations using one or more of the partially-calculated input values and one or more values based on one or more variable portions of the subsequent input message to be hashed, wherein corresponding ones of the variable portions do vary across the plural different input messages to be hashed; and
provide the set of fully-calculated input values for use when performing the cryptographic compression function in respect of the subsequent input message.
