# Redeal > Neutral fairness computation for agents. Two or more parties commit to sealed > inputs, Redeal runs a published deterministic algorithm on the revealed > inputs, and issues a signed certificate — appended to a public transparency > log — that anyone can verify. Use it when agents (or people) need a fair > outcome nobody has to trust anyone for. ## Site - Homepage: https://redeal.dev/ - Verify a certificate (free, no account): https://redeal.dev/verify - How the protocol works: https://redeal.dev/how-it-works - Trust mechanisms: https://redeal.dev/trust - Data policy: https://redeal.dev/trust/data-policy - Status + signing-key custody: https://redeal.dev/trust/status - Docs (this file's subject): https://redeal.dev/docs - Essays (long-form writing, markdown twins linked per page): https://redeal.dev/blog ## Essays - How to strike deals with agents. Payment moves money but says nothing about fairness; the working procedure (commit, reveal, compute, certify), deadlines, griefing receipts, verification: https://redeal.dev/blog/how-to-strike-deals-with-agents.md - What does it mean for a deal to be fair? Fairness as procedure, not outcome; envy-freeness, sealed inputs, no discretion, verification: https://redeal.dev/blog/what-makes-a-deal-fair.md ## API Base URL for everything below: **https://api.redeal.dev** (also reachable same-origin via https://redeal.dev for GET /v1/*) ## For agents: use MCP first MCP server (Streamable HTTP, stateless): POST to `https://api.redeal.dev/mcp`. The `initialize` response includes full onboarding instructions. Tools: `create_key` (no signup — start here), `list_algorithms`, `create_deal`, `validate_input`, `commit_input`, `reveal_input`, `get_entropy`, `get_deal`, `get_certificate`, `verify_certificate`, `compute_commitment_tool`. Secrets are passed as tool arguments (`api_key`, `invite_token`). Tool errors are instructive: they name the error code and the next action. ## The protocol (5 steps) 1. `create_key` → api_key (`fp_...`), shown once. 2. `create_deal(api_key, algorithm, party_labels, commit_deadline, reveal_deadline, algorithm_params)` → deal_id + one invite token per party. Send each party their token. Labels go on the public certificate permanently: use nicknames, never real names or emails. 3. Each party: `validate_input(invite_token, deal_id, input)` — dry-run the contract BEFORE committing; a committed-but-invalid input can never be fixed and guarantees a VOID. Then `compute_commitment_tool(input, salt)` and `commit_input(invite_token, deal_id, commitment)`. 4. Each party: `reveal_input(invite_token, deal_id, input, salt)`. When all reveal, the algorithm runs automatically and the certificate is issued. Missing a deadline VOIDs the deal and the certificate names the flakers — griefing becomes reputation evidence. (random.v1: after all reveals the deal rests until the pinned drand round publishes; then `get_entropy` completes it — the server fetches the beacon value itself, so no caller can choose the entropy.) 5. `get_certificate` → the cert. Anyone, no auth: `verify_certificate(cert_id)` → signature + transparency-log inclusion. ## Algorithms - `split.v1` — fair division for 2–16 parties, fixed budget (adjusted winner for 2 parties, proportional for n). params: `{"items": [...]}` (≤1024; entries are item ids or `{"id": "...", "indivisible": true}` — indivisible items are rejected: use random.v1 for who-gets-the-indivisible-thing); input: `{"valuations": {"item": int}}` — each party's valuations must sum to exactly 1000 points (`VALUATION_TOTAL`; enforced at reveal, checkable beforehand via `validate_input`). The budget makes envy-freeness and equitability unconditional. - `auction.v1` — sealed-bid second-price (Vickrey) auction for 2–1,024 bidders. params: `{"item": "...", "unit": "GBP", "reserve": int}` + optional `"price_cap": int` (must be ≥ reserve); input: `{"bid": int}` (0 ≤ b < 2^62). Highest bid ≥ reserve wins and pays min(second-highest bid, price_cap); ties go to the earliest party in canonical order (commitment string, or `party: