frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: We put ZK attribute proofs inside x402 payment headers

2•aggre•1h ago
Every x402 settlement in this repo carries a ZK proof bundle in PAYMENT-RESPONSE: issuer identity, payment settlement, and data integrity, independently verifiable. Live on Base Sepolia.

(Recap: x402 is Coinbase's revival of HTTP 402. Server returns 402, client signs an EIP-3009 USDC auth on Base, retries with PAYMENT-SIGNATURE, facilitator settles. Spec: https://x402.org)

I'm the CTO of FRAME00. We've been building Lemma, a document oracle that binds ZK attribute proofs to on-chain Merkle commitments. Three weeks ago I started asking whether the same proof bundle could ride inside an x402 round trip instead of a separate verification step. This repo is the answer.

The gap x402 leaves: the server gets a wallet address and a tx hash. It doesn't know who authorized the payment, under what policy, or whether the data arrives intact. As agents become the payer, a wallet address is an anonymous primitive, not a principal.

What this adds to the x402 flow:

  Phase 1  Agent hits any x402-protected endpoint with @x402/fetch.
           -> standard 402 with accepts[]. Nothing Lemma-specific.
  Phase 2  Wallet signs EIP-3009 USDC auth, retries with
           PAYMENT-SIGNATURE, facilitator settles.
           -> PAYMENT-RESPONSE carries extensions.lemma =
              { proof, inputs, circuitId, generatedAt }.
              A registered x402 extension, not a sidecar.
  Phase 3  Agent checks SHA-256(body) against
           attributes.integrity in the proof. No round trip.
  Phase 4  POST /query for BBS+ selective disclosure. Released
           only when the caller's x402 payment satisfies
           condition.circuitId = "x402-payment-v1" -- today this
           is API-level access gating; the binding is moving
           into the BBS+ challenge itself (see below).
The demo wraps Phase 1 in a free GET /article returning an X-Lemma-Attestation header pointing at /verify/:hash. Point @x402/fetch at any paid resource directly and Phase 1 is just standard 402.

Server side is a drop-in for @x402/hono:

  import { paymentMiddleware, x402ResourceServer,
           ExactEvmScheme } from "@lemmaoracle/x402";

  const server = new x402ResourceServer(facilitatorClient)
    .register("eip155:84532", new ExactEvmScheme());
  app.use("*", paymentMiddleware(routes, server));
paymentMiddleware auto-attaches a hook that writes extensions.lemma into PAYMENT-RESPONSE. Route handlers don't change.

Agent side uses stock @x402/fetch; no Lemma SDK on the client:

  const x402Fetch = wrapFetchWithPayment(fetch, client);
  const res = await x402Fetch(`${WORKER_URL}/example/verify/${hash}`);
  const settle = JSON.parse(atob(res.headers.get("PAYMENT-RESPONSE")));
  // settle.extensions.lemma = { proof, inputs, circuitId }
What this doesn't claim:

  * Data source is not on-chain. We bind SHA-256 of the body
    to a chain commitment; not authorship.
  * The issuer's BBS+ key is the trust anchor. Identity,
    settlement, and integrity proofs are independent.
  * Facilitator is a liveness dependency (x402 design).
    Fail-closed. Swap or self-host any x402-compatible one.
What is shipping next:

  * Agent-side identity. did:key -> agentId with role, scope,
    spendLimit. Lifts the paying wallet from anonymous
    primitive to verifiable principal.
  * Cryptographic settlement binding. Today condition.circuitId
    is enforced at the API layer; the BBS+ proof itself
    verifies offline once obtained. We are folding the x402
    settlement record into the BBS+ challenge so re-use
    without a fresh payment becomes infeasible at the
    proof layer.
Both are on-axis with the thesis: payment is the trigger; verifiable trust rides on top.

Repo: https://github.com/lemmaoracle/example-x402 x402 SDK: https://www.npmjs.com/package/@lemmaoracle/x402 Lemma SDK: https://www.npmjs.com/package/@lemmaoracle/sdk

Questions on the circuit layer, BBS+ binding, or DID roadmap welcome.

Comments

aggre•1h ago
One note on the MCP server we also shipped (github.com/lemmaoracle/lemma/tree/main/packages/mcp):

x402 is already agent-callable at the protocol level, so no MCP wrapper is needed for payments. The MCP server exposes the read side of the same trust layer (query verified attributes, get schema, get circuit, get generator, get proof status) for agents in MCP-native environments (Claude Desktop, Cursor, etc.) that want to read from Lemma without a custom REST integration.

Two surfaces, one trust layer: x402 : payment rail + ZK proof bundle in PAYMENT-RESPONSE MCP : read interface for MCP-native agents

Phaser: Create 2D games for the web – free, open source, and AI-ready

https://phaser.io/
1•doener•25s ago•0 comments

Wild GPT-image-2 use cases

https://medium.com/@HungryMinded/5-wild-use-cases-for-gpt-image-2-d9b803c1113c
2•hungryminded•52s ago•0 comments

Amtaitfy – Let Me Google That for You, but the AI Is Wrong on Purpose

https://amtaitfy.com/
1•meghneelgore•6m ago•0 comments

Nvidia Nemotron 3 Nano Omni

https://blogs.nvidia.com/blog/nemotron-3-nano-omni-multimodal-ai-agents/
1•tosh•6m ago•0 comments

Height hunt: a quest to find and visit every possible low bridge / height restri

https://adamtownsend.com/heighthunt/
1•fanf2•7m ago•0 comments

Shots Fired by Google Cloud CEO Thomas Kurian

https://twitter.com/tanayj/status/2048838842031956395
1•jmintz•7m ago•0 comments

Woman's Talkspace therapy app sessions exposed in court

https://www.proofnews.org/womans-talkspace-therapy-app-sessions-exposed-in-court/
1•pavel_lishin•7m ago•0 comments

The Guard Act Isn't Targeting Dangerous AI–It's Blocking Everyday Internet Use

https://www.eff.org/deeplinks/2026/04/guard-act-isnt-targeting-dangerous-ai-its-blocking-everyday...
2•hn_acker•8m ago•0 comments

GPT-Engineer: Precursor to Lovable.dev

https://github.com/antonosika/gpt-engineer
1•doener•10m ago•0 comments

Ask HN: Site that tracks AI subscription token amount?

1•yukIttEft•10m ago•0 comments

Show HN: Inter-session messaging between Claude Code sessions

https://github.com/yilunzhang/claude-code-inter-session
1•skysniper•10m ago•0 comments

OpenAI Models on Amazon Bedrock

https://aws.amazon.com/bedrock/openai/
1•jaredwiener•11m ago•1 comments

Distilling a Tiny Model for Fast Interpretability

https://ethanfast.substack.com/p/a-tiny-model-for-fast-interpretability
1•unignorant•13m ago•0 comments

Apple Weather App Down

https://9to5mac.com/2026/04/28/apple-weather-down-iphone-app-experiencing-issues-right-now/
1•bear_with_me•13m ago•0 comments

Bounce Update: PDS Provider Migrations

https://blog.anew.social/bounce-pds-provider-migrations/
2•Kye•18m ago•0 comments

Google DeepMind Paper Argues LLMs Will Never Be Conscious

https://www.404media.co/google-deepmind-paper-argues-llms-will-never-be-conscious/
1•Brajeshwar•19m ago•1 comments

Why So Many Mayors Are Quitting

https://thewalrus.ca/why-so-many-mayors-are-quitting/
1•speckx•19m ago•0 comments

BookStack Moves from GitHub to Codeberg

https://github.com/BookStackApp/BookStack/issues/4551
13•RadiozRadioz•20m ago•0 comments

Ryzen Saved AMD from Bankruptcy – 10 Years of CPUs Tested [video]

https://www.youtube.com/watch?v=EZeiaK0T3Jk
2•mariuz•20m ago•0 comments

How Semiconductors Were Made in America

https://www.siliconimist.com/p/semiconductors-made-in-america
3•johncole•22m ago•1 comments

Once I Understood Where AI Is Heading, I Stopped Being Anxious About It

https://ai.gopubby.com/once-i-understood-where-ai-is-heading-i-stopped-being-anxious-about-it-849...
2•swolpers•22m ago•0 comments

Buying, Selling on eBay Disrupted Worldwide for more than 24 hours

https://www.sanjoseinside.com/business/buying-selling-on-ebay-disrupted-worldwide-for-nearly-two-...
1•j79•23m ago•1 comments

Universal Transformers Need Memory: Depth-State Trade-Offs in Adaptive Recursive

https://arxiv.org/abs/2604.21999
1•che_shr_cat•27m ago•0 comments

Show HN: Art Coding Lab – Learn Creative Coding Through Micro Challenges

https://artcodinglab.com/
1•absurdwebsite•28m ago•1 comments

GraphCompose – declarative PDF layout engine for Java (MIT)

https://github.com/DemchaAV/GraphCompose
1•demchaav•29m ago•0 comments

Show HN: I built a dating SIM that prepares you for your date

https://claude.ai/public/artifacts/98750067-546b-4c9e-ab62-68cae2941329
2•danish00111•32m ago•0 comments

Study Finds a Third of New Websites Are AI-Generated

https://www.404media.co/study-finds-a-third-of-new-websites-are-ai-generated/
2•Brajeshwar•35m ago•1 comments

GB Electricity Bills

https://www.electricitybills.uk/
2•kieranmaine•35m ago•1 comments

OpenAI Models, Codex, and Managed Agents Come to AWS

https://openai.com/index/openai-on-aws/
5•meetpateltech•36m ago•0 comments

Show HN: PastePlop – yet another Mac clipboard manager

https://bendansby.com/apps/pasteplop.html
1•webwielder2•38m ago•0 comments