# US 2024/0004850 A1 · Systems and methods for a stateless blockchain overlay layer

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

- Number: US 2024/0004850 A1
- Document ID: US20240004850A1
- Status: Published application
- Kind: A1
- Application number: 17/810,572
- Filed: 2022-07-01
- Published: 2024-01-04
- Earliest claimed: 2022-07-01
- Assignees: Coinbase, Inc.
- Applicants: Coinbase, Inc.
- Inventors: Frederic BEAL
- Web page: https://patentgrep.com/patent/US20240004850A1

## CPC

- G06F 16/219: {Managing data history or versioning (querying versioned data G06F16/2474; querying temporal data G06F16/2477)}
- G06F 16/2358: {Change logging, detection, and notification (replication G06F16/27)}
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F 16/273: {Asynchronous replication or reconciliation}
- G06F 16/275: {Synchronous replication}
- G06F 16/278: {Data partitioning, e.g. horizontal or vertical partitioning}
- G06F 21/64: Protecting data integrity, e.g. using checksums, certificates or signatures
- H04L 9/0894: {Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage}
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- 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

Methods and systems allow for the deployment of private (i.e., not necessarily publicly available) and reversible (or replaceable) smart contracts to create the stateless blockchain overlay layer. For example, the stateless blockchain overlay layer allows developers to deploy private smart contracts as overlays on top of any existing blockchain. The deployment of these private smart contracts is instantaneous, reversible, and free. Furthermore, the private smart contracts may be called at any block, including past ones. The private smart contracts may be used to expose arbitrary blockchain-based computation at arbitrary block heights to their developers.

## Claims

### Claim 1

A system for aggregating and accessing data across blockchain networks using a seamless, single unified programming model in order to perform blockchain operations, the system comprising:
one or more cryptography-based storage applications, wherein the one or more cryptography-based storage applications correspond to respective private keys, and wherein the respective private keys are stored on respective user devices;
one or more blockchain nodes of a first blockchain network, wherein the one or more blockchain nodes verify batches of blockchain operations, and wherein each batch of the batches comprises a plurality of blockchain operations involving the one or more cryptography-based storage applications;
a stateless blockchain overlay layer distributed across the one or more blockchain nodes and accessible to the one or more cryptography-based storage applications, wherein the stateless blockchain overlay layer comprises a plurality of replaceable smart contracts, wherein each of the plurality of replaceable smart contracts comprises a version number, and wherein the stateless blockchain overlay layer determines which of the plurality of replaceable smart contracts is active based on the version number; and wherein the stateless blockchain overlay layer is configured to:
receive a first request for a first blockchain operation, wherein the first request corresponds to a protocol that is native to the first blockchain network;
generate a second request to an internal data repository for the stateless blockchain overlay layer in response to the first request, wherein the second request corresponds to the protocol that is native to the first blockchain network, and wherein the second request is for data accessible to the internal data repository for the performing the first blockchain operation;
perform the first blockchain operation in response to the second request; and
generate for display, on a user interface, information confirming the first blockchain operation was performed in response to performing the first blockchain operation.

### Claim 2

A method for aggregating and accessing data across blockchain networks using a seamless, single unified programming model in order to perform blockchain operations, the method comprising:
receiving, at a stateless blockchain overlay layer, a first request for a first blockchain operation, wherein the first request corresponds to a protocol that is native to a first blockchain network, wherein the stateless blockchain overlay layer comprises a plurality of replaceable smart contracts, and wherein the stateless blockchain overlay layer is in communication with a plurality of blockchain nodes for the first blockchain network;
in response to the first request, generating, at the stateless blockchain overlay layer, a second request to an internal data repository for the stateless blockchain overlay layer, wherein the second request corresponds to the protocol that is native to the first blockchain network, and wherein the second request is for data accessible to the internal data repository for the performing the first blockchain operation;
in response to the second request, performing, by the stateless blockchain overlay layer, the first blockchain operation; and
in response to performing the first blockchain operation, generating for display, on a user interface, information confirming the first blockchain operation was performed.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
determining, at the stateless blockchain overlay layer, that the first blockchain operation corresponds to a first state of the first blockchain network;
determining a first block of the first blockchain network corresponding to the first state;
retrieving raw blockchain data from the first block; and
using the raw blockchain data to perform the first blockchain operation.

### Claim 4 (depends on 2)

The method of claim 2, further comprising:
determining, at the stateless blockchain overlay layer, that the first blockchain operation requires first external data, wherein the first external data corresponds to a first time;
determining a first replaceable smart contract of the plurality of replaceable smart contracts that is time-stamped with the first time;
retrieving the first external data using the first replaceable smart contract; and
using the first external data to perform the first blockchain operation.

### Claim 5 (depends on 2)

The method of claim 2, wherein the internal data repository comprises a source code repository, wherein the data corresponds to a known source code contribution, and wherein the first blockchain operation comprises a submission of a new source code contribution.

### Claim 6 (depends on 2)

The method of claim 2, wherein the internal data repository comprises a configuration file repository, wherein the data corresponds to a configuration file for converting the protocol that is native to the first blockchain network to a protocol that is native to a second blockchain network, and wherein the first blockchain operation is performed on the second blockchain network.

### Claim 7 (depends on 2)

The method of claim 2, wherein the internal data repository comprises a configuration file repository, wherein the data corresponds to a configuration file for converting the protocol that is native to the first blockchain network to a protocol that is not native to the first blockchain network, and wherein the first blockchain operation comprises an off-chain operation.

### Claim 8 (depends on 2)

The method of claim 2, wherein the internal data repository comprises a function call repository, wherein the data corresponds to a function call for a specific event type, and wherein the first blockchain operation comprises creating a new replaceable smart contract that performs the function call in response to detecting the specific event type.

### Claim 9 (depends on 2)

The method of claim 2, further comprising:
determining that the first blockchain operation requires external data from an external data store; and
in response to determining that the first blockchain operation requires external data, generating, at the stateless blockchain overlay layer, a new replaceable smart contract, wherein the new replaceable smart contract comprises a time stamp and a pointer to the external data store.

### Claim 10 (depends on 2)

The method of claim 2, further comprising:
generating, at the stateless blockchain overlay layer, a third request to an external data source for external data;
receiving, at the stateless blockchain overlay layer, the external data in response to the third request;
in response to receiving the external data, generating, at the stateless blockchain overlay layer, a new replaceable smart contract, wherein the new replaceable smart contract comprises a time stamp and the external data; and
publishing the new replaceable smart contract to the stateless blockchain overlay layer.

### Claim 11 (depends on 2)

The method of claim 2, wherein each of the plurality of replaceable smart contracts comprises a version number, and wherein the stateless blockchain overlay layer determines which of the plurality of replaceable smart contracts is active based on the version number.

### Claim 12

A non-transitory, computer-readable medium, comprising instructions that, when executed by one or more processors, cause operations comprising:
receiving, at a stateless blockchain overlay layer, a first request for a first blockchain operation, wherein the first request corresponds to a protocol that is native to a first blockchain network, wherein the stateless blockchain overlay layer comprises a plurality of replaceable smart contracts, and wherein the stateless blockchain overlay layer is in communication with a plurality of blockchain nodes for the first blockchain network;
in response to the first request, generating, at the stateless blockchain overlay layer, a second request to an internal data repository for the stateless blockchain overlay layer, wherein the second request corresponds to the protocol that is native to the first blockchain network, and wherein the second request is for data accessible to the internal data repository for the performing the first blockchain operation;
in response to the second request, performing, by the stateless blockchain layer, the first blockchain operation; and
in response to performing the first blockchain operation, generating for display, on a user interface, information confirming the first blockchain operation was performed.

### Claim 13 (depends on 12)

The non-transitory, computer-readable medium of claim 12, wherein the operations further cause operations comprising:
determining, at the stateless blockchain overlay layer, that the first blockchain operation corresponds to a first state of the first blockchain network;
determining a first block of the first blockchain network corresponding to the first state;
retrieving raw blockchain data from the first block; and
using the raw blockchain data to perform the first blockchain operation.

### Claim 14 (depends on 12)

The non-transitory, computer-readable medium of claim 12, wherein the operations further cause operations comprising:
determining, at the stateless blockchain overlay layer, that the first blockchain operation requires first external data, wherein the first external data corresponds to a first time;
determining a first replaceable smart contract of the plurality of replaceable smart contracts that is time-stamped with the first time;
retrieving the first external data using the first replaceable smart contract; and
using the first external data to perform the first blockchain operation.

### Claim 15 (depends on 12)

The non-transitory, computer-readable medium of claim 12, wherein the internal data repository comprises a source code repository, wherein the data corresponds to a known source code contribution, and wherein the first blockchain operation comprises a submission of a new source code contribution.

### Claim 16 (depends on 12)

The non-transitory, computer-readable medium of claim 12, wherein the internal data repository comprises a configuration file repository, wherein the data corresponds to a configuration file for converting the protocol that is native to the first blockchain network to a protocol that is native to a second blockchain network, and wherein the first blockchain operation is performed on the second blockchain network.

### Claim 17 (depends on 12)

The non-transitory, computer-readable medium of claim 12, wherein the internal data repository comprises a configuration file repository, wherein the data corresponds to a configuration file for converting the protocol that is native to the first blockchain network to a protocol that is not native to the first blockchain network, and wherein the first blockchain operation comprises an off-chain operation.

### Claim 18 (depends on 12)

The non-transitory, computer-readable medium of claim 12, wherein the internal data repository comprises a function call repository, wherein the data corresponds to a function call for a specific event type, and wherein the first blockchain operation comprises creating a new replaceable smart contract that performs the function call in response to detecting the specific event type.

### Claim 19 (depends on 12)

The non-transitory, computer-readable medium of claim 12, wherein the operations further cause operations comprising:
determining that the first blockchain operation requires external data from an external data store; and
in response to determining that the first blockchain operation requires external data, generating, at the stateless blockchain overlay layer, a new replaceable smart contract, wherein the new replaceable smart contract comprises a time stamp and a pointer to the external data store.

### Claim 20 (depends on 12)

The non-transitory, computer-readable medium of claim 12, wherein the operations further cause operations comprising:
generating, at the stateless blockchain overlay layer, a third request to an external data source for external data;
receiving, at the stateless blockchain overlay layer, the external data in response to the third request;
in response to receiving the external data, generating, at the stateless blockchain overlay layer, a new replaceable smart contract, wherein the new replaceable smart contract comprises a time stamp and the external data; and
publishing the new replaceable smart contract to the stateless blockchain overlay layer.
