# US 2024/0005025 A1 · Methods for verifying database query results and devices thereof

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

- Number: US 2024/0005025 A1
- Document ID: US20240005025A1
- Status: Published application
- Kind: A1
- Application number: 18/079,381
- Filed: 2022-12-12
- Published: 2024-01-04
- Earliest claimed: 2022-07-01
- Assignees: Space and Time Labs, Inc.
- Applicants: Space and Time Labs, Inc.
- Inventors: Jay Thomas WHITE; Scott Edward Daly DYKSTRA
- Web page: https://patentgrep.com/patent/US20240005025A1

## CPC

- G06F 21/6227: {where protection concerns the structure of data, e.g. records, types, queries}
- G06F 16/24547: {Optimisations to support specific applications; Extensibility of optimisers}
- G06F 16/2458: Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
- G06F 16/252: {between a Database Management System and a front-end application}
- G06F 21/64: Protecting data integrity, e.g. using checksums, certificates or signatures
- H04L 63/02: {for separating internal from external traffic, e.g. firewalls}
- H04L 63/0209: {Architectural arrangements, e.g. perimeter networks or demilitarized zones}
- H04L 63/12: {Applying verification of the received information (cryptographic mechanisms or cryptographic arrangements for data integrity or data verification H04L9/32)}
- G06F 2221/2101: Auditing as a secondary aspect
- G06F 2221/2115: Third party
- 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, non-transitory computer readable media, and verifier and/or prover devices or query verification apparatuses are disclosed that generate a first commitment from received data and send the received data to a prover device for insertion into a table of a database. A query result and an overall proof are received from the prover device in response to a received query forwarded to the prover device and associated with the database table. The overall proof is generated from one or more partial proofs comprising one or more commitments generated from one or more intermediate values. The query result and an indication the query result was verified are returned in response to the received query after verifying the query result based on a second commitment to the query result generated using the first commitment and the overall proof.

## Claims

### Claim 1

A verifier device, comprising memory comprising programmed instructions stored thereon and a processor coupled to the memory and configured to execute the stored programmed instructions to:
generate a first commitment from received data and send the received data to a prover device for insertion into a table of a database;
receive a query result and an overall proof from the prover device in response to a received query forwarded to the prover device and associated with the database table; and
return the query result and an indication the query result was verified in response to the received query after verifying the query result based on a second commitment to the query result generated using the first commitment and the overall proof.

### Claim 2 (depends on 1)

The verifier device of claim 1, wherein the database table is maintained in a decentralized structured query language (SQL) database.

### Claim 3 (depends on 1)

The verifier device of claim 1, wherein the database is hosted by a plurality of prover devices separate from the verifier device and the database comprises a decentralized database.

### Claim 4 (depends on 3)

The verifier device of claim 3, wherein:
the overall proof is generated from one or more partial proofs comprising one or more commitments generated from one or more intermediate values; and
the one or more commitments are generated from one or more intermediate values using one or more graphics processing units (GPUs) of one or more of the prover devices.

### Claim 5 (depends on 1)

The verifier device of claim 1, wherein the processor is further configured to execute the stored programed instructions to:
update the stored first commitment following receipt of additional data to be appended to the database table; and
send the additional data to the prover device.

### Claim 6

A method for facilitating verification of database query results, the method implemented by a prover device and comprising:
receiving data from a verifier device, storing the received data into a table of a database, and receiving a query associated with the database table from the verifier device;
generating a query result for the query and an overall proof; and
returning the overall proof along with the query result in response to the query to facilitate verification of the query result.

### Claim 7 (depends on 6)

The method of claim 6, further comprising generating a query plan for the query, one or more partial proofs from one or more commitments, and the overall proof from the one or more partial proofs, wherein each of the one or more partial proofs is associated with at least one node of the query plan.

### Claim 8 (depends on 7)

The method of claim 7, further comprising generating one or more intermediate values and the one or more commitments from the one or more intermediate values.

### Claim 9 (depends on 8)

The method of claim 8, further comprising generating the one more partial proofs form the one or more commitments.

### Claim 10 (depends on 7)

The method of claim 7, wherein the database is a structured query language (SQL) database and the method further comprises generating the query plan with a SQL engine, wherein the query plan comprises a directed acyclic graph (DAG) comprising the at least one node.

### Claim 11

A query verification apparatus, comprising a verifier device comprising first memory comprising first programmed instructions stored thereon and a first processor coupled to the first memory and configured to execute the stored first programmed instructions to:
generate a first commitment from received data and send the received data to at least one prover device for insertion into a table of a database;
receive a query result and an overall proof from the at least one prover device in response to a received query forwarded to the at least one prover device and associated with the database table; and
return the query result and an indication the query result was verified in response to the received query after verifying the query result based on a second commitment to the query result generated using the first commitment and the overall proof.

### Claim 12 (depends on 11)

The query verification apparatus of claim 11, wherein the first processor is further configured to execute the stored first programmed instructions to:
update the stored first commitment following receipt of additional data to be appended to the database table; and
send the additional data to the at least one prover device.

### Claim 13 (depends on 11)

The query verification apparatus of claim 11, further comprising the at least one prover device, wherein the at least one prover device comprises second memory comprising second programmed instructions stored thereon and a second processor coupled to the second memory and configured to execute the stored second programmed instructions to receive the data from the verifier device, store the received data into the database table, and receive the query associated with the database table from the verifier device.

### Claim 14 (depends on 13)

The query verification apparatus of claim 13, wherein the second processor is further configured to execute the stored programmed instructions to generate a query plan, the query result, one or more partial proofs from one or more commitments, and the overall proof from the one or more partial proofs, wherein each of the one or more partial proofs is associated with at least one node of the query plan.

### Claim 15 (depends on 13)

The query verification apparatus of claim 13, wherein the second processor is further configured to execute the stored programmed instructions to return the overall proof along with the query result to the verifier device in response to the query.

### Claim 16 (depends on 13)

The query verification apparatus of claim 13, wherein the database is decentralized and the at least one prover device comprises a plurality of prover devices hosting the decentralized database.

### Claim 17 (depends on 14)

The query verification apparatus of claim 14, wherein the second processor is further configured to execute the stored second programmed instructions to generate one or more intermediate values, wherein the one or more commitments are generated from the one or more intermediate values.

### Claim 18 (depends on 17)

The query verification apparatus of claim 17, wherein the at least one prover device further comprise one or more graphics processing units (GPUs) configured to execute the stored second programmed instructions to generate the one or more commitments from the one or more intermediate values.

### Claim 19 (depends on 18)

The query verification apparatus of claim 18, wherein the second processor is further configured to execute the stored second programmed instructions to generate the one more partial proofs form the one or more commitments.

### Claim 20 (depends on 14)

The query verification apparatus of claim 14, wherein the database is a structured query language (SQL) database and the second processor is further configured to execute the stored second programmed instructions to generate the query plan with a SQL engine, wherein the query plan comprises a directed acyclic graph (DAG) comprising the at least one node.
