Testnet MVP โ€” Internal Monorepo SDK

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.

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

payment flow
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 / TestResult
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

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