# US 2023/0068423 A1 · Determining a common secret for the secure exchange of information and hierarchical, deterministic cryptographic keys

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

- Number: US 2023/0068423 A1
- Document ID: US20230068423A1
- Status: Published application
- Kind: A1
- Application number: 17/827,276
- Filed: 2022-05-27
- Published: 2023-03-02
- Earliest claimed: 2016-02-23
- Assignees: nChain Holdings Limited
- Applicants: nChain Holdings Limited
- Inventors: Craig Steven WRIGHT; Stephane SAVANAH
- Web page: https://patentgrep.com/patent/US20230068423A1

## CPC

- H04L 9/0825: {using asymmetric-key encryption or public key infrastructure [PKI], e.g. key signature or public key certificates}
- H04L 9/008: {involving homomorphic encryption}
- H04L 9/0844: {with user authentication or key authentication, e.g. ElGamal, MTI, MQV-Menezes-Qu-Vanstone protocol or Diffie-Hellman protocols using implicitly-certified keys}
- H04L 9/0861: {Generation of secret information including derivation or calculation of cryptographic keys or passwords}
- H04L 9/3066: {involving algebraic varieties, e.g. elliptic or hyper-elliptic curves}
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- H04L 2209/56: Financial cryptography, e.g. electronic payment or e-cash
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method (300) and system (1) of determining a common secret for two nodes (3, 7). Each node (3, 7) has a respective asymmetric cryptography pair, each pair including a master private key and a master public key. Respective second private and public keys may be determined based on the master private key, master public key and a deterministic key. A common secret may be determined at each of the nodes based on the second private and public keys. In one example, a node (3, 7) may determine the common secret based on (i) a second private key based on the node's own master private key and the deterministic key; and (ii) a second public key based on the other node's master public key and the deterministic key. The invention may be suited for use with, but not limited to, digital wallets, blockchain (e.g. Bitcoin) technologies and personal device security.

## Claims

### Claim 1

A computer-implemented method of determining,
at a first node (C), a common secret (CS) that is common with the first node (C) and a second node (S), wherein the first node (C) is associated with a first asymmetric cryptography pair of a cryptography system common to the first node and the second node and having a homomorphic property, the first asymmetric cryptography pair having a first node master private key (V1C) and a first node master public key (P1C), and the second node (S) is associated with a second asymmetric cryptography pair of the cryptography system, the second asymmetric cryptography pair having a second node master private key (V1S) and a second node master public key (P1S), wherein the the method comprises:
determining a first node second private key (V2C) based on at least the first node master private key (V1C) and a deterministic key (DK), wherein the deterministic key is common to the first node and second node;
determining a second node second public key (P2S) based on at least the second node master public key (P1S) and the deterministic key (DK); and
determining the common secret (CS) based on the first node second private key (V2C) and the second node second public key (P2S),
wherein the same common secret (S) can be determined at the second node (S) based on a first node second public key (P2C) and a second node second private key (V2S), wherein:
the first node second public key (P2C) is based on at least the first node master public key (P1C) and the deterministic key (DK); and
the second node second private key (V2S) is based on at least the second node master private key (V1S) and the deterministic key (DK).

### Claim 2 (depends on 1)

The method according to claim 1, wherein the deterministic key (DK) is based on a message (M).

### Claim 3 (depends on 2)

The method according to claim 2, further comprising:
generating a first signed message (SM1) based on the message (M) and the first node second private key (V2C); and
sending, over a communications network, the first signed message (SM1) to the second node (S),
wherein the first signed message (SM1) can be validated with a first node second public key (P2C) to authenticate the first node (C).

### Claim 4 (depends on 2)

The method according to claim 2, further comprising:
receiving, over a communications network, a second signed message (SM2) from the second node (S);
validating the second signed message (SM2) with the second node second public key (P2S); and
authenticating the second node (S) based on a result of validating the second signed message (SM2),
wherein the second signed message (SM2) was generated based on the message (M), or a second message (M2), and the second node second private key (V2S).

### Claim 5 (depends on 2)

The method according to claim 2, further comprising:
generating a message (M); and
sending, over a communications network, the message (M) to the second node (S).

### Claim 6 (depends on 2)

The method according to claim 2, further comprising:
receiving the message (M), over a communications network, from the second node (S).

### Claim 7 (depends on 2)

The method according to claim 2, further comprising:
receiving the message (M), over a communications network, from another node.

### Claim 8 (depends on 2)

The method according to claim 2, further comprising:
receiving the message (M) from a data store, and/or an input interface associated with the first node (C).

### Claim 9 (depends on 1)

The method according to claim 1, wherein the first node master public key (P1C) and second node master public key (P1S) are based on elliptic curve point multiplication of respective first node master private key (V1C) and second node master private key (V1S) and a generator (G).

### Claim 10 (depends on 1)

The method according to claim 1, further comprising the steps of:
receiving, over a communications network, the second node master public key (P1S); and
storing, at a data store associated with the first node (C), the second node master public key (P1S).

### Claim 11 (depends on 1)

The method according to claim 1, further comprising the steps of:
generating, at a first node (C), the first node master private key (V1C) and the first node master public key (P1C);
sending, over a communications network, the first node master public key (P1C) to the second node (S) and/or another node; and
storing, in a first data store associated with the first node (C), the first node master private key (V1C).

### Claim 12 (depends on 11)

The method according to claim 11, further comprising:
sending, over a communications network, to the second node, a notice indicative of using a common elliptic curve cryptography (ECC) system with a common generator (G) for the method of determining a common secret (CS), and
wherein the step of generating the first node master private key (V1C) and the first node master public key (P1C) comprises:
generating the first node master private key (V1C) based on a random integer in an allowable range specified in the common ECC system; and
determining the first node master public key (P1C) based on elliptic curve point multiplication of the first node master private key (V1C) and the common generator (G) according to the formula:
P1C=V1C×G.

### Claim 13

(canceled)

### Claim 14

The method according to claim further comprising:
determining the deterministic key (DK) based on determining a hash of a message (M), and
wherein the step of determining a first node second private key (V2C) is based on a scalar addition of the first node master private key (V1C) and the deterministic key (DK) according to the following formula:
V2C=V1C+DK, and
wherein the step of determining a second node second public key (P2S) is based on the second node master public key (P1S) with elliptic curve point addition to the elliptic curve point multiplication of the deterministic key (DK) and the common generator (G) according to the formula:
P2S=P1S+DK×G.

### Claim 15 (depends on 1)

The method according to claim 1, wherein the deterministic key (DK) is based on determining a hash of a previous deterministic key.

### Claim 16 (depends on 1)

The method according to claim 1, wherein the first asymmetric cryptography pair and the second asymmetric cryptography pair are based on a function of a respective previous first asymmetric cryptography pair and a previous second asymmetric cryptography pairs.

### Claim 17 (depends on 1)

A method of secure communication between a first node and a second node with symmetric-key algorithm, wherein the method comprises:
determining a symmetric-key based on the common secret determined according to the method according to claim 1;
encrypting a first communication message, with the symmetric-key, to an encrypted first communication message; and
sending, over a communications network, the encrypted first communication message from the first node (C) to the second node (S).

### Claim 18 (depends on 17)

The method according to claim 17, wherein the method further comprises:
receiving, over a communications network, an encrypted second communication message from the second node (S); and
decrypting the encrypted second communication message, with the symmetric-key, to a second communication message.

### Claim 19 (depends on 1)

A method of performing an online transaction between a first node and a second node, wherein the method comprises:
determining a symmetric-key based on the common secret determined according to the method according to claim 1;
encrypting a first transaction message, with the symmetric-key, to an encrypted first transaction message;
sending, over a communications network, the encrypted first transaction message from the first node (C) to the second node (S);
receiving, over a communications network, an encrypted second transaction message from the second node (S); and
decrypting the encrypted second transaction message, with the symmetric-key, to a second transaction message.

### Claim 20 (depends on 1)

A device for determining, at a first node (C), a common secret (CS) that is common with a second node (S), wherein the first node (C) is associated with a first asymmetric cryptography pair having a first node master private key (V1C) and a first node master public key (P1C), and the second node (S) is associated with a second asymmetric cryptography pair having a second node master private key (V1S) and a second node master public key (P1S), wherein the device comprises a first processing device to perform the method according to claim 1 to determine the common secret.

### Claim 21 (depends on 17)

A device for secure communication, or performing a secure online transaction between a first node and a second node, wherein the device includes a first processing device to:
perform the method according to claim 17.

### Claim 22 (depends on 20)

The device according to claim 20, further comprising a first data store to store the first node master private key (V1C).

### Claim 23 (depends on 22)

The device according to claim 22, wherein the first data store further stores one or more of: the first node master public key (P1C), the second node master public key (P1S), and a message (M).

### Claim 24 (depends on 20)

The device according to claim 20, further comprising a communications module to send and/or receive, over a communications network, one or more of: the message (M), the first node master public key (P1C), the second node master public key (P1S), a first signed message (SM1), a second signed message (SM2), and a notice indicative of using a common elliptic curve cryptography (ECC) system with a common generator (G).

### Claim 25

A system for determining a common secret between a first node (C) and a second node (S), wherein:
the first node (C) is associated with a first asymmetric cryptography pair of a cryptography system common to the first node and the second node and having a homomorphic property, the first asymmetric cryptography pair having a first node master private key (V1C) and a first node master public key (P1C); and
the second node (S) is associated with a second asymmetric cryptography pair of the cryptography system, the second asymmetric cryptography pair having a second node master private key (V1S) and a second node master public key (P1S), and the system comprising:
a first processing device, associated with the first node (C), configured to:
determine a first node second private key (V2C) based on at least the first node master private key (V1C) and a deterministic key (DK, wherein the deterministic key is common to the first node and the second node;
determine a second node second public key (P2S) based on at least the second node master public key (P1S) and the deterministic key (DK); and
determine the common secret (CS) based on the first node second private key (V2C) and the second node second public key (P2S);
wherein the same common secret can be determined by a second processing device, associated with the second node (S), configured to:
determine a first node second public key (P2C) based on at least the first node master public key (P1C) and the deterministic key (DK);
determine a second node second private key (V2S) based on at least the second node master private key (V1S) and the deterministic key (DK); and
determine the common secret based on the first node second public key (P2C) and a second node second private key (V2S).

### Claim 26 (depends on 25)

The system according to claim 25, wherein the deterministic key (DK) is based on a message (M), and the first processing device is further configured to:
generate a first signed message (SM1) based on the message (M) and the first node second private key (V2C); and
send, over a communications network, the first signed message (SM1) to the second node (S).

### Claim 27 (depends on 26)

The system according to claim 26, wherein the first processing device is further configured to:
receive, from the second processing device, a second signed message (SM2) generated by the second processing device and based on the message (M), or a second message (M2), and the second node second private key (V2S);
validate the second signed message (SM2) with the second node second public key (P2S); and
authenticate the second node (S) based on a result of the validated second signed message (SM2).

### Claim 28 (depends on 26)

The system according to claim 26, wherein the first processing device is configured to:
generate the message (M); and
send the message (M).

### Claim 29 (depends on 26)

The system according to claim 26, wherein the message is generated by another node, wherein the first processing device is configured to:
receive the message (M).

### Claim 30 (depends on 26)

The system according to claim 26, further comprising a system data store and/or input interface, wherein the first processing device receives the message (M) from the system data store and/or input interface.

### Claim 31 (depends on 30)

The system according to claim 30, wherein the first processing device receives the second node master public key (P1S) from a system data store and/or input device.

### Claim 32 (depends on 25)

The system according to claim 25, wherein the first node master public key (P1C) and second node master public key (P1S) are based on elliptic curve point multiplication of respective first node master private key (V1C) and second node master private key (V1S) and a generator (G).

### Claim 33 (depends on 25)

The system according to claim 25, further comprising:
a first data store associated with the first node (C) to store the first node master private key (V1C).

### Claim 34 (depends on 33)

The system according to claim 33, wherein the first processing device is configured to:
generate the first node master private key (V1C) and the first node master public key (P1C);
send the first node master public key (P1C); and
store the first node master private key (V1C) in the first data store.

### Claim 35 (depends on 33)

The system according to claim 33, wherein:
the first data store receives and stores the second node master public key (P1S).

### Claim 36 (depends on 25)

The system according to claim 25, wherein the first processing device is further configured to:
generate the first node master private key (V1C) based on a random integer in an allowable range specified in a common elliptic curve cryptography (ECC) system; and
determine the first node master public key (P1C) based on elliptic curve point multiplication of the first node master private key (V1C) and a common generator (G) according to the formula:
P1C=V1C×G.

### Claim 37 (depends on 26)

The system according to claim 26, wherein the first processing device is configured to:
determine the deterministic key (DK) based on a hash of the message (M), and wherein:
the first node second private key (V2C) is based on a scalar addition of the first node master private key (V1C) and the deterministic key (DK) according to the formula:
V2C=V1C+DK; and
the second node public key (P2S) is based on the second node master public key (P1S) with elliptic curve point addition to an elliptic curve point multiplication of the deterministic key (DK) and a common generator (G) according to the formula:
P2S=P1S+DK×G.

### Claim 38 (depends on 25)

The system according to claim 25, further comprising:
a first communications module associated with the first processing device to send and/or receive, over a communications network, one or more of: a message (M), the first node master public key (P1C), the second node master public key (P1S), a first signed message (SM1), a second signed message (SM2), and a notice indicative of using a common elliptic curve cryptography (ECC) system with a common generator (G).

### Claim 39 (depends on 25)

The system according to claim 25, wherein the deterministic key (DK) is based on determining a hash of a previous deterministic key.

### Claim 40 (depends on 25)

The system according to claim 25, wherein the first asymmetric cryptography pair and the second asymmetric cryptography pair are based on a function of respective previous first asymmetric cryptography pair and previous second asymmetric cryptography pair.

### Claim 41 (depends on 25)

A system for secure communication between a first node and a second node with symmetric-key algorithm, wherein the system comprises:
a system according to claim 25 to determine a common secret with the first processing device, wherein the first processing device is further configured to:
determine a symmetric-key based on the common secret;
encrypt a first communication message, with the symmetric-key, to an encrypted first communication message; and
send the encrypted first communication message.

### Claim 42 (depends on 41)

The system according to claim 41, for secure communication between a first node and a second node with symmetric-key algorithm,
receive a second communication message, encrypted and sent by the second processing device; and
decrypt the encrypted second communication message, with the symmetric-key, to the second communication message.

### Claim 43 (depends on 41)

The system according to claim 41, wherein the first and second communication messages are transaction messages between the first node and second node for an online transaction between the first node and the second node.

### Claim 44 (depends on 1)

A computer program comprising machine-readable instructions to cause a processing device to implement the method according to claim 1.
