Fluppy SDK Documentation
Fluppy is an open-source, privacy-preserving payment protocol on Stellar Soroban. It combines Groth16 ZK membership proofs with atomic 95/5 USDC settlement โ built as a three-layer modular SDK.
SDK Architecture
Three composable packages โ each layer depends on the one below it.
@fluppy/coreCompleteProtocol primitives: constants, errors, encoding, recipient hash, chain ID, shared types.
@fluppy/browserCompleteBrowser SDK: Merkle client, artifact loader, ZK prover, identity, Stellar/Freighter, payment orchestrator.
@fluppy/reactCompleteReact SDK: FluppyProvider, useFluppyCredential, useFluppyPayment, useFluppyWallet, useFluppyHistory.
Current usage: Internal pnpm monorepo workspace. Packages are consumed via "workspace:*" dependencies.
Future: npm publication is planned after further release-readiness work. These packages are not yet available as public npm packages.
How It Works
Browser (User)
โ
โโ @fluppy/react โ useFluppyCredential: AES-GCM secret (IndexedDB)
โโ @fluppy/browser โ computeCommitment โ POST /api/merkle-proof
โโ @fluppy/browser โ snarkjs.groth16.fullProve() โ ZK proof (BN254)
โโ @fluppy/browser โ verifyProofLocally() โ โ VALID
โโ @fluppy/browser โ Freighter sign โ Soroban RPC submit
โ
Soroban Contract
โ
โโ Nullifier replay protection
โโ Merkle root validation
โโ ChainId binding (cross-network guard)
โโ Atomic split: 95% merchant / 5% treasury
via Stellar Asset Contract (USDC SAC)Explore the Docs
Validation Evidence
All SDK packages build and typecheck clean. Payment E2E confirmed on Stellar Testnet.
| Command / Test | Result |
|---|---|
pnpm build:core | โ Pass |
pnpm build:browser | โ Pass |
pnpm build:react | โ Pass |
pnpm --filter @fluppy/react typecheck | โ Pass (0 errors) |
pnpm build:app | โ Pass |
Payment E2E (Stellar Testnet) | โ Confirmed |
Latest Testnet Tx: cd0905471d7397174d51f8b2b6347ff6e7634ed875146cfadef459ab7d26cfec
Current MVP Scope
โ Included in this MVP
- ยทStellar Testnet deployment
- ยทBrowser-side Groth16 proof generation
- ยทPoseidon Merkle membership proof
- ยทLocal proof verification before submission
- ยทFreighter wallet signing (user-paid fee)
- ยทAtomic 95/5 USDC split on-chain
- ยทNullifier-based replay protection
- ยทChainId binding (cross-network guard)
- ยทThree-layer modular SDK (@fluppy/*)
โณ Future / Not in MVP
- ยทMainnet deployment
- ยทProduction relayer or gas sponsorship
- ยทAPI key billing system
- ยทPublic npm package publication
- ยทNative on-chain BN254 pairing check (pending SDK)
- ยทMulti-party trusted setup ceremony
- ยทExternal security audit
- ยทReact SDK app integration (next phase)
- ยทMerchant production dashboard