Run a Tamperproof Query
The Space and Time network allows users to run tamperproof queries that use ZK cryptography to generate a proof that ensures neither the SQL nor the data have been tampered with. You can have that proof immediately applied within the SxT network, or send it to another third-party verifiers, allowing you to extend the zero-trust model of a blockchain into a big-data system.
Let's Get Started!
To be able to validate your script, we'd ask that you generate a new file called <span style={{ color: "blue" }}>Run_Tamperproof_Query.sh that you can commit to your branch of the SXT-Community/SXTAccreditation repo at the end of the activity.
Automated Verification
Running a tamperproof query is surprisingly simple - you only need a Space and Time account, a tamperproof table, and a verifier.
Native Verification with Space and Time Studio
The easiest way to run a tamperproof query is using Space and Time Studio, as it provides a seamless and unified experience.
First, log into Space and Time Studio
Native Verification with Space and Time API
If you interface with the Space and Time Database using APIs and you want to run Native Verification, the change is as easy as using a different, but identical, SQL API endpoint.
Run a Tamperproof Query
Other Ways to Verify
Run Your Own Verifier
Space and Time has open-sourced the verifier code, meaning for centralized use-cases you can install and perform local verification. This is great for any use-case where you alone need to verify the proof, such as internal analytics, centralized transactions, or fully internal work not shared with 3rd parties (or those parties trust you to perform the work correctly).
To get started with your own verifier, simply clone the Proof of SQL Verifier repo, located here:
https://github.com/spaceandtimelabs/SXT-proof-of-sql
Coming Soon! Verify with Partners (like Chainlink)
Space and Time is partnering with ZK verifier networks to broaden the choice of decentralized, 3rd party verifiers for your proofs. These will be coming online over the course of the next few months, so check back frequently for the growing list!
Coming Soon! Verify On-Chain
Space and Time cryptography teams are working hard to hyper-optimize the verifier to run onchain efficiently enough to be financially practical, even for high-cost / settlement chains. Look for this coming soon!
Get Credit:
You'll get credit for this activity if you:
- Run a natively verified query on the table
SXTDemo_TP.Temperature_v01 - Commit your work file to the SXT-Community/SXTAccreditation repo
{/ looking for some.table /}
Updated 5 months ago