Skip to content
View 21r21a33333's full-sized avatar

Highlights

  • Pro

Block or report 21r21a33333

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
21r21a33333/README.md

LinkedIn Email Rust-first X


About

I'm Diwakar — a Blockchain & Backend Engineer writing production Rust for Bitcoin, EVM, Solana and multi-chain systems where correctness and security aren't optional.

I work across the cross-chain stack, applied cryptography, zero-knowledge and distributed systems.


What I'm building now

Crypto SDE 1 @ Garden Finance — a Bitcoin R&D studio.

I build production Rust across Garden's cross-chain stack — relayers, indexers, and secure signing infrastructure powering trust-minimized settlement over Bitcoin, EVM, and many other chains.

Lately: Munger, a cross-chain HTLC executor built to solve liquidity fragmentation — aggregating CEX, DEX and AMM routers for on-chain routing, with perps-based delta-neutral hedging, risk-aware inventory rebalancing, a policy-gated routing engine and enclave-based multichain signing over a double-entry ledger.

Mercury @ Unit Labs — your wealth, onchain.

A self-custodial brokerage for tokenized US equities on Solana: hold stablecoins, invest in stocks, ETFs and curated baskets, and spend with the card — all from one wallet you actually control. Live in beta, and Unit Labs' submission to Colosseum's Crypto World's Fair.


Deep dives

🔐 walletkit — safe EVM transaction infrastructure in Rust

Open-source · github.com/21r21a33333/walletkit. One ergonomic Rust facade over alloy that lets any dapp or backend send EVM transactions safely: keys that never leave a swappable signer backend, guardrails that cannot be bypassed, and a transaction lifecycle that survives stuck txs and reorgs. A client-side facade — not a custody service — where MPC/TEE signers, relayers, bundlers, paymasters and policy engines plug in behind narrow, object-safe traits (every layer is RPC-hoistable).

Core guarantees

  • 🔑 Signature-only keys — no plaintext export; env / keystore / HD → KMS / HSM / Ledger / TEE / MPC as config swaps
  • 🛡️ Un-bypassable policy — deny-over-allow rules gating every signature (tx, EIP-712, EIP-191, 7702); approved is provably what's signed
  • 🔁 Reliable lifecycle — authoritative nonce manager, EIP-1559 gas bumps, a stable tx handle across bumps, reorg-aware confirmation
  • 🧩 Pluggable everything — signer · policy · submission · nonce · gas · state, each behind a swappable trait

Standards & protocols (implemented + roadmap)

Area Standards
Signing EIP-712 · EIP-191 · EIP-2 low-s · EIP-1271 / ERC-6492
Keys & gas EIP-2335 keystores · BIP-44 HD · EIP-1559
Approvals Permit2 · EIP-2612 · EIP-3009
Meta-tx & MEV ERC-2771 · Flashbots / MEV-Share
Account abstraction ERC-4337 (UserOp v0.6/0.7/0.8) · ERC-7677 paymasters · EIP-7702 · ERC-7579 modules · EIP-5792
Privacy & intents ERC-5564 / 6538 stealth · ERC-7683 cross-chain
Auth RIP-7212 secp256r1 passkeys

Integrates (never re-implements): alloy signers · AWS KMS · Ledger / Trezor · Turnkey / Fireblocks / Web3Auth (MPC/TEE) · Safe{Core} multisig · Rundler / Silius / Alto bundlers · Pimlico / Alchemy / Gelato paymasters · Regorus (Rego/OPA) & WASM policy plugins · revm / Tenderly simulation · redb / SQLite state · eRPC.

🕶️ veil402 — a shielded pool that can still prove one transaction

github.com/21r21a33333/veil402 · A zero-knowledge shielded UTXO pool on Solana — Noir → Groth16 (Sunspot) → Anchor — hiding amounts and recipients in the Zcash / RAILGUN / Tornado-Nova lineage.

Why 402. Agentic payments settle on public rails, so an agent that pays its way through the world publishes your business as it runs — suppliers, prices, volume, timing.

The fix: pay shielded, then prove one transaction — (value, asset, recipient) — to one chosen verifier, bound and non-replayable, revealing nothing about any other. Not an all-or-nothing viewing key, not a global auditor key. Privacy by default, auditability on demand.

  • 🔏 Noir circuit, Groth16 verified on-chain via CPI; audited against Tornado Nova & RAILGUN prior art
  • 🌳 Append-only commitment tree, pool-scoped nullifier PDAs, reorg-safe state
  • 🤖 Agent-payment SDK + demo — roadmap

Research / active development — not audited, not for real funds.


Tech

Tech stack


Featured open-source

Area Project What it is
Privacy & ZK veil402 Shielded UTXO pool on Solana for the agentic-payments era — hides amounts and recipients, then proves one transaction to one chosen verifier · Noir · Groth16 · Anchor
openfhe-secure-maxcosine Maximum cosine similarity over encrypted vectors — OpenFHE CKKS, multiparty, no decryption
Intents & execution solvent Zero-inventory, protocol-agnostic intent resolver on 1inch Aqua — one non-custodial maker balance backs fills across UniswapX, CoW, Across…; displaced maker strategies stay routable or fund a price-restoration rebate, and The Compact extends it cross-chain
stockfront Your AI prime broker for tokenized stocks — carry, leverage, index baskets, managed portfolios and concentrated liquidity, composed by an intent compiler: plain language → a typed 11-primitive graph → steps emitted against live chain state
amm-rs Wei-exact AMM quoting and swap-calldata construction behind one object-safe Pool trait — Uniswap V2/V3/V4, Curve, Aerodrome; every path fork-proven to settle to the exact wei
arb-router Arbitrage detection over a live pool graph — per-chain block-consistent state, bounded path search quoted from local math, then USD-priced, ranked and served over an API
Wallet & chain infra walletkit One Rust facade over alloy for sending EVM transactions safely — signature-only keys behind swappable backends, policy gating every signature, a lifecycle surviving stuck txs and reorgs; MPC/TEE signers, bundlers and paymasters plug in
btc-tee-escrow Trustless Bitcoin escrow inside a TEE — enclave-compatible server, Bitcoin Script validation, provably-fair dispute resolution
blockchain Uniform Go clients for interacting with many different chains
Products & tooling ts-plugins- Contract-first plugin infrastructure — Rust host, out-of-process TypeScript runtimes over protobuf socket IPC, host-managed KV, and a pluginctl CLI
yt-notes Read YouTube instead of watching it — a local yt-dlp / ffmpeg / whisper pipeline, then Claude Code authors the note with real frames, mermaid diagrams and timestamp deep-links
distributed-systems GFS and MapReduce built from the papers, in Rust

More — choose-rich · multi-chain gaming API • interview-gpt-assistant · LLM interview assistant • alerts-notifier · Rust alert monitor with phone-call escalation


Hackathons

🏆 Mercury — your wealth, onchain · Colosseum Crypto World's Fair

A self-custodial brokerage for tokenized US equities on Solana, built with Unit Labs and live in beta. Hold stablecoins, invest in stocks, ETFs and one-token diversified baskets, and spend with the card.

Try the beta

🏆 Solvent — a solver that holds no inventory · ETHOnline 2026

A zero-inventory, protocol-agnostic intent resolver on 1inch Aqua. Solvent fills intent orders using non-custodial maker liquidity borrowed through Aqua at the instant of settlement, so one maker balance backs inventory across UniswapX, CoW, Across and more while the capital never leaves the maker's control. Displaced maker strategies either stay routable or fund a price-restoration rebate, an off-chain reservation engine handles over-commitment between winning an auction and settling, and The Compact extends the whole thing cross-chain.

Showcase · Code

🏆 Stockfront — your AI prime broker for tokenized stocks · BNB Chain

Users simply specify their financial intent — "the safest way to earn yield" — and Stockfront recommends and prepares the optimal strategy, sized to their holdings, unlocking yield, leverage and liquidity from a stock portfolio. Institutional strategies onchain: carry, leverage and index exposure, each with its live rate displayed before execution. Transparent risk — health factor before and after every borrow, liquidation distance, and the named risk per strategy. Every strategy is compiled, validated against live chain state, and user-signed.

Demo video · Code

🏆 uniPay — pay from any chain, settle and earn on Initia · DoraHacks "Initiate"

A multi-chain merchant checkout: customers pay in BTC, SOL or USDC on any major EVM, and merchants receive USDC on Initia in ~30 seconds through trustless HTLC atomic swaps — no bridges, no custodians. Idle merchant float auto-stakes into Initia DEX LP positions earning swap fees and staking rewards at once. HTLCs on four ecosystems with a per-chain watcher and executor each, a custom Initia EVM rollup, and an orderbook / solver / staking backend behind a React + InterwovenKit frontend. DeFi track, built with a teammate.

Project · Code

Pinned Loading

  1. amm-rs amm-rs Public

    Open, wei-exact AMM quoting library for Rust — Uniswap, Curve, Aerodrome, and your own pools.

    Rust

  2. walletkit walletkit Public

    Rust wallet-infrastructure facade over alloy: safe EVM tx execution with swappable key backends, un-bypassable policy, and a robust tx lifecycle

    Rust

  3. arb-router arb-router Public

    On-chain arbitrage-detection router

    Rust

  4. blockchain blockchain Public

    Forked from hashiraio/blockchain

    Simple clients for interacting with different blockchains.

    Go

  5. ts-plugins- ts-plugins- Public

    contract-first, high-performance plugin infrastructure

    TypeScript

  6. yt-notes yt-notes Public

    Read YouTube videos instead of watching them — a local, free pipeline that turns any video into a structured note with frames, diagrams & timestamp links.

    Python