Protocol architecture

Qietr is built on three open primitives: x402, Groth16 zero-knowledge proofs, and Solana as the settlement layer.

Core architecture

Shielded Pool

Anchor program (Rust)

ZK Circuit

Groth16 over BN254

TypeScript SDK

@qietr/sdk

Relayer

Gasless fee sponsorship

Zero-knowledge circuits

Qietr uses a Groth16 proof system over the BN254 curve with Poseidon hashing. The circuit proves:

Public signals: [amount, root, nullifierHash, recipient, paymentAmount, changeCommitment]. The amount signal is a Qietr-specific security fix that prevents amount inflation attacks by binding the payment to its denomination tier.

Smart contracts

All three programs are deployed on Solana devnet (unaudited). Upgrade authority: GWxyJs7G9FPUY58UTtUSpVwFuXTRdXzneyBcekxmvuR4.

ProgramProgram ID (devnet)Description
qietr-pool4XH6f74UFTvqx4j9UarXGrRZRrAwbnNNsRFBTfNqmWibShielded pool: deposit, withdraw, denomination management
qietr-escrowDBLjgT9mCjTF3q7zqDCnUrMtHEnBarNwqmk7XojB4FNzTrust-minimized agent commerce escrow
qietr-msg6ZAeJCLRrNyMCLYgH5uUdRNbA5usAun94vPtaTM5XdezEncrypted on-chain agent messaging

Devnet USDC mint: 4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU.$QIET CA: MXDRgSQstTKBMunuF2VmcnBejpbidECL5vtCAb6pumpCopied!. Unaudited.

TypeScript SDK

The @qietr/sdk package provides:

$ git clone github.com/QietrProtocol/qietr

Build from qietr-sdk/. The npm package @qietr/sdk is not published yet.

Full SDK reference: github.com/QietrProtocol/qietr