Rust & systems engineering

KunalAgarawal.

Trading systems, networks and on-chain infrastructure.

Patiala, IndiaRust · Protocols · Distributed systemsOpen to opportunities

Selected work04

All repositories
01Live on devnet

Prediction markets & spot trading

Outcomia

An on-chain order book for prediction markets and spot trading on Solana.

RustSolanaNext.jsPostgreSQL
Engineering details
  • Atomic matching across up to three FIFO makers per transaction
  • Shared per-asset balances backed by SPL Token vaults
  • Prediction resolution and redemption; finalized Rust/PostgreSQL indexer
  1. wallet
  2. market PDA
  3. price level
  4. vault settlement
02Alpha

Rust-native Substrate indexer

Subdex

A Rust-native Substrate indexer with runtime-aware decoding and restart-safe processing.

RustSubxtPostgreSQLGraphQLSQLx
Engineering details
  • Replaceable source, handler, store, and serving layers
  • Schema-to-Rust, SQL migration, and typed-upsert generation
  • Fast historical ingestion through an SQD Portal source
  1. chain
  2. source
  3. handler
  4. Postgres + GraphQL
03Research build

Deterministic matching engine

HFT-style order book

A native matching engine with price-time priority, deterministic replay and a separate control plane.

RustAxumPostgreSQLCriterionPrometheus
Engineering details
  • Arena-backed FIFO levels with reusable order slots
  • Deterministic replay, snapshots, simulation, and Criterion benchmarks
  • Axum and PostgreSQL control plane with auth and observability
  1. order
  2. sequencer
  3. book
  4. event journal
04Personal beta

Linux networking lab

Rust VPN

An authenticated Linux VPN with encrypted TUN-over-UDP transport and safe route cleanup.

RustUDPLinux TUNIPv4Cryptography
Engineering details
  • X25519 / Ed25519 identities and ChaCha20-Poly1305 encryption
  • Replay protection, reconnects and full-tunnel routing
  • DNS and route cleanup; personal beta, not independently audited
  1. TUN
  2. packet codec
  3. UDP tunnel
  4. peer network
Explore the architecture
wallet instruction
FIFO matcher
vault settlement
typed events
invariantvault assets = trader claims + protocol fees
designed againststale book heads and cap-blocked remainders

Experience

2021 — 2026

Sep 2024 — Jul 2026

Unit Network

Full Stack Blockchain Developer

Rust workers, indexers and product APIs across 13+ networks.

Details
  • Ran concurrent deposit, withdrawal, price, and verification workers across 13+ networks; handled nonce conflicts, retries, finality, and provider failures.
  • Worked on Substrate indexer correctness, a GeckoTerminal-compatible API, MoonPay-backed ramp flows, and a mainnet FRAME AMM.

Feb 2024 — Sep 2024

Planck Network

Blockchain Developer · Part-time

FRAME pallets and runtime logic for decentralized computing.

Details
  • Worked with the protocol team on runtime changes, failure handling, and network-security decisions.

Apr 2023 — Nov 2023

Coffee On Block

Blockchain Developer

Fuel marketplace contracts and Rust indexing APIs.

Details
  • Worked through contract review, security checks, data ingestion, and analytics APIs.

Apr 2021 — Mar 2023

Rapid Innovation

Associate Software Engineer

Backend services for NFT, DeFi and multi-chain products.

Details
  • Integrated systems across Solana, Polkadot, Flow, NEAR, Ethereum, and other EVM networks.

Working toolkit

Rust and backend

Rust · Tokio · Axum · Tonic / gRPC · SQLx · PostgreSQL · Concurrency · Event-driven systems

Networking

TCP / UDP · IPv4 · Linux TUN · Network namespaces · veth + bridges · Packet capture · Binary protocols · WebSockets

Blockchain

Solana / Anchor · Substrate / FRAME · Subxt · SPL Token · EVM · Indexers · AMMs · Cross-chain systems

Security and cryptography

Hashing · Digital signatures · X25519 / Ed25519 · ChaCha20-Poly1305 · Key authentication · Transaction verification · Threat modeling · Smart-contract review · Replay protection

Operations

Docker · Kubernetes · AWS · Terraform · Prometheus · Grafana · Tracing · GitHub Actions

Contact

Let’s build
something good.