# US 12,003,617 B2 · Sealed distributed ledger system

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

- Number: US 12,003,617 B2
- Document ID: US12003617B2
- Status: Granted
- Kind: B2
- Application number: 17/407,631
- Filed: 2021-08-20
- Published: 2021-12-09
- Granted: 2024-06-04
- Earliest claimed: 2019-08-14
- Assignees: R3 Ltd.
- Applicants: R3 Ltd.
- Inventors: Michael Christopher Hearn
- Web page: https://patentgrep.com/patent/US12003617B2

## CPC

- G06F 21/62: Protecting access to data via a platform, e.g. using keys or access control rules
- H04L 9/0637: {Modes of operation, e.g. cipher block chaining [CBC], electronic codebook [ECB] or Galois/counter mode [GCM]}
- G06F 16/1815: {Journaling file systems}
- G06F 16/184: {implemented as replicated file system}
- G06F 16/2379: {Updates performed during online database operations; commit processing}
- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 21/54: by adding security routines or objects to programs
- G06F 21/602: {Providing cryptographic facilities or services}
- G06F 21/606: {by securing the transmission between two devices or processes}
- H04L 9/0819: {Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) (network architectures or network communication protocols for key distribution in a packet data network H04L63/062)}
- H04L 9/3073: {involving pairings, e.g. identity based encryption [IBE], bilinear mappings or bilinear pairings, e.g. Weil or Tate pairing}
- H04L 9/3239: {involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD}
- H04L 9/3247: {involving digital signatures}
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- H04L 2209/56: Financial cryptography, e.g. electronic payment or e-cash
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A system for ensuring privacy of transactions is provided. The system may be performed by a computing system during execution of trusted code within a secure enclave of the computing system. The system receives an indication of a transaction. The system validates the transaction. The system encrypts the validated transaction using an encryption key of the trusted code. The system requests untrusted code of the computing system to store the encrypted validated transaction in a portion of a data store. The untrusted code cannot decrypt the encrypted validated transaction that is stored in the data store. Rather, only the trusted code can decrypt the encrypted validated transaction.

## Claims

### Claim 1

A method performed by trusted code of a secure enclave of a computing system for providing evidence that a transaction has been validated, wherein the secure enclave is a feature of a processing unit in the computing system in which the trusted code is stored in memory in encrypted form and decrypted for execution by the processing unit using a private key of a public/private keypair of the secure enclave, the method comprising:
receiving a transaction at the secure enclave;
decrypting the transaction, by the secure enclave, using the private key of the public/private keypair of the secure enclave;
validating the transaction by the secure enclave;
generating, by the secure enclave, an attestation that the transaction has been validated, the attestation being evidence that the transaction is valid and being signed using the private key of the public/private keypair of the secure enclave, the attestation including a hash of the transaction; and
providing the attestation to untrusted code for use in validating another transaction that inputs an output state of the transaction so that the trusted code can rely on the attestation as evidence that the transaction identified by the hash of the transaction is valid using a public key corresponding to the private key and to avoid the untrusted code accessing an input state of the transaction and thereby preserving confidentiality of the transaction.

### Claim 2 (depends on 1)

The method of claim 1 wherein the untrusted code sends the other transaction, the attestation, and the output state to other trusted code of a secure enclave of another computing system so that the other trusted code can validate the other transaction.

### Claim 3 (depends on 2)

The method of claim 2 wherein the other trusted code relies on the attestation as evidence that the transaction is valid and does not need to validate the transaction or its ancestor transactions.

### Claim 4 (depends on 1)

The method of claim 1 wherein the attestation is part of a signature of attestation.

### Claim 5 (depends on 1)

The method of claim 1 wherein the attestation includes a hash of the transaction.

### Claim 6 (depends on 1)

The method of claim 1 wherein the computing system is a node that maintains a portion of a sealed distributed ledger and further comprising encrypting the transaction using an encryption key and providing to untrusted code of the computing system the encrypted transaction for storage in the portion of the sealed distributed ledger.

### Claim 7 (depends on 1)

The method of claim 1 wherein the attestation includes a hash of the trusted code signed using an encryption key of the secure enclave.

### Claim 8

A method performed by trusted code of a secure enclave of a computing system for validating a transaction that inputs an output state of another transaction, wherein the secure enclave is a feature of a processing unit in the computing system in which the trusted code is stored in memory in encrypted form and decrypted for execution by the processing unit using a private key of a public/private keypair of the secure enclave, the method comprising:
receiving the transaction at the secure enclave;
requesting untrusted code of the computing system to provide the other transaction;
receiving from the untrusted code a signature of attestation for the other transaction, the signature of attestation generated by another secure enclave as evidence of validity of the other transaction;
verifying that the signature of attestation is by a secure enclave that executes trusted code for the other transaction;
coordinating with a notary to determine whether the output state of the other transaction has been consumed; and
indicating that the transaction is valid when the signature of attestation is verified and the output state is not consumed.

### Claim 9 (depends on 8)

The method of claim 8 further comprising generating a signature of attestation indicating that the transaction is valid.

### Claim 10 (depends on 9)

The method of claim 9 further comprising providing the signature of attestation to untrusted code.

### Claim 11

A computing system that, during execution of trusted code of a secure enclave of the computing system, provides evidence that a transaction has been validated, wherein the secure enclave is a feature of a processing unit in the computing system in which the trusted code is stored in memory in encrypted form and decrypted for execution by the processing unit using a private key of a public/private keypair of the secure enclave, the computing system comprising:
one or more computer-readable storage mediums for storing the trusted code, wherein the trusted code includes computer-executable instructions for controlling the computing system to:
generate an attestation that a transaction received has been validated, the attestation being evidence that the transaction is valid and being signed using a private key of the secure enclave, the attestation including a hash of the transaction;
provide the attestation to untrusted code for use in validating another transaction that inputs an output state of the transaction so that the trusted code can rely on the attestation as evidence that the transaction identified by the hash of the transaction is valid using a public key corresponding to the private key and to avoid the untrusted code accessing an input state of the transaction and thereby preserving confidentiality of the transaction; and
one or more processors for executing the computer-executable instructions stored in the one or more computer-readable storage mediums.

### Claim 12 (depends on 11)

The computing system of claim 11, wherein the computer-executable instructions further include instructions to:
receive the transaction;
decrypt the transaction using the private key; and
validate the transaction.

### Claim 13 (depends on 11)

The computing system of claim 11 wherein the computer-executable instructions further include instructions to, when a secure enclave of another system is validating the other transaction, send the attestation and the output state to the secure enclave of the other computing system.

### Claim 14 (depends on 13)

The computing system of claim 13 wherein the secure enclave of the other computing system relies on the attestation as evidence that the transaction is valid.

### Claim 15 (depends on 11)

The computing system of claim 11 wherein the attestation is part of a signature of attestation.

### Claim 16 (depends on 11)

The computing system of claim 11,
wherein the computing system is a node that maintains a portion of a sealed distributed ledger,
wherein the computer-executable instructions further include instructions to encrypt the transaction and provide to untrusted code of the computing system the encrypted transaction for storage in the portion of the sealed distributed ledger.

### Claim 17 (depends on 11)

The computing system of claim 11 wherein the attestation includes a hash of the trusted code signed using an encryption key of the secure enclave.

### Claim 18

A computing system that, during execution of trusted code of a secure enclave of the computing system, validates a transaction that inputs an output state of another transaction, wherein the secure enclave is a feature of a processing unit in the computing system in which the trusted code is stored in memory in encrypted form and decrypted for execution by the processing unit using a private key of a public/private keypair of the secure enclave, the computer system comprising:
one or more computer-readable storage mediums for storing computer-executable instructions for controlling the computing system to:
receive from untrusted code a signature of attestation for the other transaction, the signature of attestation including a hash of the trusted code that is signed by a private key of another computing system and a hash indicating that the other transaction is valid and being signed with a private key of trusted code of another secure enclave of the other computing system;
verify that the signature of attestation is generated by a secure enclave that validated the other transaction using a public key corresponding to the private key so as to avoid the untrusted code accessing an input state of the transaction and thereby preserving confidentiality of the transaction;
coordinate with a notary to determine whether the output state of the other transaction has been consumed; and
indicate the transaction is valid when the signature of attestation is verified, the output state is not consumed, and a criterion of validity specified in the transaction is satisfied; and
one or more processors for executing the computer-executable instructions stored in the one or more computer-readable storage mediums.

### Claim 19 (depends on 18)

The computing system of claim 18 wherein the computer-executable instructions further include instructions to generate a signature of attestation indicating that the transaction is valid.

### Claim 20 (depends on 19)

The computing system of claim 19 wherein the computer-executable instructions further include instructions to provide the signature of attestation to untrusted code.
