Token and contracts
SDK and MCP
TypeScript
import { posCommit, bookInputs, MODE } from "gyges/zk/core";
import { proveInBrowser } from "gyges/zk/client";
const pos = { market: 3, long: true, size, entry, margin,
fundingIdx, label, nf: randField(), secret: randField() };
const c = posCommit(pos); // the note's commitment
const engineKey = [await book.engineKeyX(), await book.engineKeyY()];
const { input } = bookInputs({ mode: MODE.open, tree, pos, cash,
market: 3, price, fundingPub, ctHash, engineKey }); // engine copy made in the proof
const { proof, pub } = await proveInBrowser("book", input); // Groth16, web workerHTTP
Read endpoints, no key:
GET /api/mids HyperCore marks for BTC, ETH, HYPE
GET /api/candles?coin=HYPE hourly candles used by the audit
GET /api/funding?coin=HYPE last 24 h of HyperCore fundingMCP
An agent can read the same three endpoints as MCP tools (gyges_marks, gyges_candles, gyges_funding) and, once the contracts are live, prepare an open or close for the user to prove and sign. The agent never holds the spending key. llms.txt lists the pages for crawlers and models.