Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 850 Bytes

File metadata and controls

34 lines (27 loc) · 850 Bytes

Proof of SQL "Hello World"

This example demonstrates generating and verifying a proof of the query SELECT b FROM table WHERE a = 2 for the table:

a b
1 hi
2 hello
3 there
2 world

Run

cargo run --example hello_world 

Note

To run this example without the blitzar (i.e CPU only) feature:

cargo run --example hello_world --no-default-features --features="test cpu-perf"

Output

Warming up GPU... 520.959485ms
Loading data... 3.229767ms
Parsing Query... 1.870256ms
Generating Proof... 467.45371ms
Verifying Proof... 7.106864ms
Valid proof!
Query result: OwnedTable { table: {Ident { value: "b", quote_style: None }: VarChar(["hello", "world"])} }