Show that one wallet of a ring holds a Basis position, in zero knowledge. The proof is made in your browser and says nothing about which one.
Three signatures, no transaction, no gas. Your deposit stays where it is.
- Create your key
Your wallet signs one fixed message. The browser turns that signature into your private proof key. It is never sent.
- Sign it once more
The same message again. Both signatures must match, so your wallet can always find the same key.
- Register the public half
A second message binds your address to your public key. This one is public and gets stored.
Connect a wallet with at least 10 USDC in the vault.
The verifier gives you both texts. One wallet has one tag per context, so nobody counts it twice.
Your browser checks the mathematics and every wallet signature in the ring. The Basis API reads the positions on Elysium.
Your wallet signs one fixed message and the browser derives a key on ristretto255 from it. The wallet must sign deterministically, which regular wallets do and contract wallets do not.
The ring is every registered key whose wallet holds at least 10 USDC in the vault right now. Each key comes with its wallet's signature, so anyone can check the list.
Your browser proves in zero knowledge that it holds the secret of one key in the ring, and that the tag of this context comes from the same secret. No circuit, no setup ceremony.
The proof carries the ring, the context, the statement and the expiry. Change one character of any of them and it stops verifying.
Pick a context, put a fresh code in the statement, send the proof to the API and keep the tags you have seen. A tag you already hold is a wallet you already counted.
curl -X POST https://usebasis.xyz/api/basis/zk/verify \
-H "content-type: application/json" \
-d '{"proof": { ... }}'This code is unaudited. It touches no funds and cannot move your position. Use it for votes, access and reputation, and do not let anything critical depend on it yet.