# zPredict

> Shielded prediction market on Zcash. Price public, participants private: orders are XOR-shared across three relayers and crossed inside 3-party MPC; collateral sits in a FROST 2-of-3 Ironwood escrow. Testnet demo; the docs say what is live and what is a mock.

Links point at Markdown (`.md`). Drop the suffix for HTML.

## Docs

- [Acknowledgements](https://docs.zpredict.site/docs/acknowledgements.md): The open-source work zPredict stands on.
- [Circuits](https://docs.zpredict.site/docs/circuits.md): The Garble clearing circuit (orders, balances, credentials, withdrawals), the resolution circuit, and what they cost in gates and seconds.
- [Contributing](https://docs.zpredict.site/docs/contributing.md): Issue first, small conventional commits, CI green, and the privacy rules every change keeps.
- [Evidence](https://docs.zpredict.site/docs/evidence.md): The test suites, the end-to-end runs and their outputs, the testnet transactions, and how to check each claim yourself.
- [FAQ](https://docs.zpredict.site/docs/faq.md): Short answers to what people ask first.
- [How it works](https://docs.zpredict.site/docs/how-it-works.md): Deposit, order, crossing in MPC, resolution, withdrawal. What happens at each step and who sees what.
- [Introduction](https://docs.zpredict.site/docs/introduction.md): A prediction market on Zcash where nobody learns that you bet, which side you took, or how much. Price public, participants private.
- [Markets & resolution](https://docs.zpredict.site/docs/markets.md): Chain-data markets, the hourly rolling market, mirrored Polymarket markets and whose word each one trusts.
- [Privacy](https://docs.zpredict.site/docs/privacy.md): Who can learn what, through which data flow, the open caveats of the hosted demo, and how to check each claim yourself.
- [Relayer API](https://docs.zpredict.site/docs/relayer-api.md): Every HTTP endpoint the three relayers serve, the JSON they take and return, and the byte encodings behind the hex.
- [Run a relayer](https://docs.zpredict.site/docs/run-a-relayer.md): Three relayers on your machine with real MPC, the full regtest end-to-end run, and how the hosted demo is deployed through Coolify.
- [SDK](https://docs.zpredict.site/docs/sdk.md): @zpredict/sdk: order encoding, XOR sharing, deposit memos, withdrawals, outcome verification and the relayer client, as used by the web app.
- [Settlement & FROST](https://docs.zpredict.site/docs/settlement.md): The FROST 2-of-3 key generation, batched Ironwood payouts, verify-then-sign, and how every relayer secret is sealed at rest.
- [Status](https://docs.zpredict.site/docs/status.md): What runs for real, what is a labelled mock, and what is still open, as of the main branch.
- [Threat model](https://docs.zpredict.site/docs/threat-model.md): Funds are 2-of-3, order privacy is 3-of-3. What each observer and each coalition of relayers can do, and the attacks that remain.
- [Your money](https://docs.zpredict.site/docs/your-money.md): The FROST 2-of-3 escrow, fixed-denomination deposits with an encrypted memo, batched withdrawals to fresh addresses, and why judge credit never pays out.

## Optional

- [Full documentation](https://docs.zpredict.site/llms-full.txt): every page in one Markdown file
- [GitHub](https://github.com/zpredict/zpredict): source, DESIGN.md, PRIVACY.md
