Skip to content

feat: add ZK Proof Service Real cryptographic compute via MPP#391

Open
Himess wants to merge 1 commit intotempoxyz:mainfrom
Himess:feat/add-zk-proof-service
Open

feat: add ZK Proof Service Real cryptographic compute via MPP#391
Himess wants to merge 1 commit intotempoxyz:mainfrom
Himess:feat/add-zk-proof-service

Conversation

@Himess
Copy link

@Himess Himess commented Mar 19, 2026

New Service: ZK Proof Service

Live: https://himess-zk-proof-service.hf.space
Source: https://github.com/Himess/zk-proof-service
llms.txt: https://himess-zk-proof-service.hf.space/llms.txt

What it does

Generates Groth16 zero-knowledge proofs for private UTXO transactions. This is real cryptographic computation — 13,726 constraints, elliptic curve pairings on BN254 — not an API proxy. Agents send circuit inputs, pay via MPP, and get back a proof ready for on-chain Solidity verifiers.

Endpoints

Route Price Description
GET /circuits Free List circuits and pricing
POST /prove/1x2 $0.01 1-input 2-output JoinSplit proof (13,726 constraints)
POST /prove/2x2 $0.02 2-input 2-output JoinSplit proof (25,877 constraints)
POST /verify/1x2 Free Verify a proof
POST /verify/2x2 Free Verify a proof

Stack

  • Engine: snarkjs Groth16 + BN254 curve
  • Server: Hono + mppx (first-party MPP integration)
  • Payment: MPP (USDC on Tempo), per-proof charging via 402 flow
  • Hosting: Hugging Face Spaces (16GB RAM)
  • Extras: MCP server for Claude/Cursor, llms.txt for agent discovery

Performance

  • Proof generation: ~2-5s (warm)
  • Verification: ~50ms
  • Output includes contractProof (uint256[8]) for direct Solidity verifyProof() calls

Verified

$ tempo request -t https://himess-zk-proof-service.hf.space/circuits
  1x2: $0.01, 2x2: $0.02

$ tempo request -v -X POST -H "Content-Type: application/json" \
    -d @input.json https://himess-zk-proof-service.hf.space/prove/1x2
  Paid 0.01 USDC · 0x68ec5052...
  { proof: { pi_a, pi_b, pi_c }, generationTimeMs: 2031 }

Add Groth16 zero-knowledge proof generation as a third-party compute
service. Agents pay $0.01–$0.02 per proof via Tempo MPP and receive
BN254 proofs ready for on-chain Solidity verifiers.

Live at https://himess-zk-proof-service.hf.space
Source: https://github.com/Himess/zk-proof-service
@vercel
Copy link

vercel bot commented Mar 19, 2026

@Himess is attempting to deploy a commit to the Tempo Team on Vercel.

A member of the Team first needs to authorize it.

@Himess Himess changed the title feat: add ZK Proof Service — real cryptographic compute via MPP feat: add ZK Proof Service Real cryptographic compute via MPP Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant