XYR Shield
Prove trading data is honest without revealing the strategy behind it.
Built for the NEAR HACKATHON · source on GitHub
What stays private, what is proven
| Component | Stays private | Proven on NEAR |
|---|---|---|
| Shielded trade log | every record (time, side, price, fill) | it existed at that moment and was never edited, deleted or backdated |
| Private stats API | the records behind each answer | the answer came from a TEE-attested NEAR AI model (signed receipt) |
| R oracle | how R is computed | published R history is never repainted |
Live on NEAR testnet
Read straight from the contracts by your browser (get_count via public RPC).
| Contract | Holds | Commits |
|---|
Try it: verify a record
A reveal bundle is what the owner hands an auditor: the record, its salt and its hash. Your browser recomputes
sha256(record : salt) and asks NEAR whether that hash was committed, and when.
The demo bundle is a synthetic record committed to xyr-shield-demo.testnet, not a real trade.
Click Verify to see it check out, then Tamper to change the price by $1 and watch the proof fail.
Run the rest locally
The trade-log node, attested /ask and the R oracle (with its tamper test, python -m shield.rverify --tamper)
run from the repository. See the README.