00 INTRODUCTION

Tushar Pamnani

I build privacy protocols and the developer programs that get people using them.

ZK circuit design on Midnight Network. Developer programs that actually ship things. Currently obsessed with market mechanisms and privacy-preserving DeFi.

DevRel hiring managers and protocol engineering teams at ZK/privacy chains — scroll for the work.
01 SELECTED WORK

Veracis — LMSR Prediction Market AMM on Midnight

Compact · ZK-SNARKs · TypeScript · Fixed-Point Arithmetic
Problem

LMSR requires transcendental functions (exp, ln) that are incompatible with ZK integer circuit constraints.

Approach

Rebuilt the mathematical substrate using fixed-point scaling (10^6), 15-term Taylor expansion for exp, argument reduction for ln, and log-sum-exp numerical stability. Off-chain witness computation verified on-chain via ZK proof.

Outcome

Working LMSR AMM on Midnight with published whitepaper. Prices provably sum to 1 via softmax. Market-maker loss bounded at b·ln(n).

pUSD — Privacy-Preserving Collateralized Lending Protocol

Compact · ZK-SNARKs · TypeScript · React · LevelDB
Problem

Transparent lending protocols expose position data enabling front-running and targeted liquidations.

Approach

Five ZK circuits in Compact enforce 150% collateralization invariant in arithmetic constraints. Individual debt and collateral live only on the client device as witnesses — never on-chain.

Outcome

MakerDAO-equivalent protocol where proof generation fails client-side on invariant violation. Published whitepaper v2.1.0. Full stack: contract, REST API, React frontend, CLI, LevelDB state store.

Confidential Orderbook — FHE-Native DEX

Solidity · Fhenix · CoFHE · TypeScript · Hardhat
Problem

On-chain orderbooks structurally enable front-running through mempool visibility.

Approach

Full FHE matching engine using FHE.gte, FHE.min, FHE.sub, FHE.select — encrypted comparisons and arithmetic at every step. Participant-gated decryption enforced at contract level.

Outcome

Front-running structurally impossible, not mitigated. Only buyer and seller of a matched trade can decrypt their fill. No trusted third party.

Midnight Bonding Curve — ZK AMM

Compact · ZK-SNARKs · TypeScript
Problem

Compact's truncating integer division breaks exact mint/burn reversibility in bonding curve AMMs.

Approach

Witness-supplied cost verified via dual-branch parity circuit — circuit checks both even and odd cases. Reserve invariant R = (a/2)·s² enforced in-circuit after every trade.

Outcome

160-test suite across 27 sections including fuzz testing to 10^11 supply. Featured in Awesome Midnight dApps.

Stellar Wallet Kit — Multi-Wallet SDK

TypeScript · React · Stellar SDK
Problem

Each Stellar wallet required separate integration logic, causing developers to spend days on basic connection flows.

Approach

Unified multi-wallet abstraction layer supporting Freighter, Albedo, WalletConnect, LOBSTR with React hooks API, session persistence, and auto-refresh balances.

Outcome

Reduced wallet integration time from 2-3 days to under one hour. Adopted across Stellar residency programs and builder projects.

02 EXPERIENCE

Timeline

Sevryn Labs

Founder & Protocol Researcher
Jan 2026 – Present

Stellar India

DevRel Engineer
Jul 2025 – Feb 2026

Gasyard Finance

Full Stack Developer
Aug 2025 – Sept 2025

DexGrator

Founder & Lead Developer
Sept 2024 – Dec 2024

Central DAO

Partnerships Head
Jan 2024 – Present

Fellowships

Atrium Academy

Uniswap v4 Hook Incubation Fellow
Jul – Sept 2025

Turbine3

Solana Foundation Fellow
Jul – Sept 2025

Base Fellowship 3.0

Base India / Coinbase
Aug 2025
03 RESEARCH & WRITING

Veracis: A Privacy-Ready LMSR Prediction Market Protocol on Midnight

March 2026

Implements LMSR inside ZK arithmetic circuits using fixed-point transcendental arithmetic and off-chain witness verification.

Read on Sevryn Labs

pUSD: A Collateralized Lending Protocol on Midnight

March 2026

Privacy-preserving MakerDAO equivalent where individual debt and collateral positions are enforced in ZK circuits and never exposed on-chain.

Read on Sevryn Labs

Technical Writing

Loading latest posts...

04 CONTACT

Currently open to DevRel and protocol engineering roles at ZK and privacy-focused chains.