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

ComponentStays privateProven on NEAR
Shielded trade logevery record (time, side, price, fill)it existed at that moment and was never edited, deleted or backdated
Private stats APIthe records behind each answerthe answer came from a TEE-attested NEAR AI model (signed receipt)
R oraclehow R is computedpublished R history is never repainted

Live on NEAR testnet

Read straight from the contracts by your browser (get_count via public RPC).

ContractHoldsCommits

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.