Skip to content
View basantzp's full-sized avatar
🎯
Focusing
🎯
Focusing

Block or report basantzp

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. 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
basantzp/README.md

⚑ Principal Protocol Engineer & EVM Systems Architect

Solidity Foundry Cancun EVM C++17 Rust License: MIT

High-Throughput DeFi Primitives β€’ Cancun EVM Optimization (EIP-1153) β€’ Anti-LVR Uniswap v4 Hooks β€’ Modular Account Abstraction (ERC-4337 / ERC-7579) β€’ ZK Merkle Accumulators β€’ Bitcoin Core Script VM
"In code we trust, on-chain we verify." β€” Engineering deterministic, gas-optimized, and formally verified blockchain infrastructure from first principles.


πŸ›οΈ Flagship Protocol Architectures

Protocol / System Architecture & Engineering Focus Rigor & Testing Live Deployments
v4-volatility-fee-hook Uniswap v4 Dynamic Volatility Fee Hook
Realized tick-variance tracking with exponential moving average decay. Protects liquidity providers against Loss-Versus-Rebalancing (LVR) and toxic MEV arbitrage via automated dynamic swap fee tiers.
8 / 8 Tests Passing
Foundry Fuzz Testing (256 runs)
Bit-packed single-slot storage layout
🌐 Live App
πŸ“¦ GitHub Repo
100-solidity-projects Master Protocol Curriculum (100 Contracts)
Production-ready EVM architecture across 10 pillars: ERC Standards, AMMs, Lending, ZK Groth16, Cancun EIP-1153 transient storage, Diamond Proxies, DAOs, ERC-7579 AA, and Rollup Settlement.
201 / 201 Tests Passing
Foundry Invariant & Unit Fuzzing
Cancun tstore/tload gas-optimized
🌐 Live Curriculum
πŸ“¦ GitHub Repo
bitcoin-testnet-cpp High-Performance Bitcoin Core Testnet4 Suite
Modern C++17 Bitcoin suite featuring a step-by-step Opcode Script VM evaluator, SegWit (BIP-173) and Taproot (BIP-350) address generator, multithreaded SHA-256 block miner, and raw transaction deserializer.
Zero External Dependencies
OpenSSL 3.0+ cryptographic primitives
Native C++17 architecture
πŸ“¦ GitHub Repo
aether-erc4337-paymaster Enterprise ERC-4337 Account Abstraction Paymaster
Production AA gas sponsorship paymaster with EIP-712 cryptographic signature verification, Chainlink oracle ERC-20 multi-token payments, and strict invariant state checks.
Foundry Tested
Stateful invariant validation
ERC-4337 v0.7 compliant
πŸ“¦ GitHub Repo
aegis-zk-accumulator EVM Sparse Merkle Tree Cryptographic Accumulator
High-performance Sparse Merkle Tree (SMT) accumulator and vault written in C11 and Solidity for efficient zero-knowledge membership proofs and stateless verification on EVM chains.
Formal Verification
C11 native memory performance
O(log N) verification complexity
πŸ“¦ GitHub Repo
local-evm-studio Foundry Anvil Web Control Center
Zero-dependency browser command center for local EVM instances: JSON-RPC console, sandbox state snapshots (anvil_mine, evm_snapshot), and 1-click MetaMask connector.
Production Deployed
Sub-millisecond RPC telemetry
Zero cloud dependency
🌐 Live Application
πŸ“¦ GitHub Repo
degencheck-web3 High-Throughput Multi-Chain Security Engine
Sub-second smart contract security scanner and DEX execution companion for Solana, Base, and EVM chains. Real-time honeypot, mint-trap, and LP lock verification.
Production Deployed
Real-time GoPlus & RugCheck integration
Anti-MEV Telegram bot routing
🌐 Live Application
πŸ“¦ GitHub Repo

πŸ”¬ Protocol Engineering Stack & Mental Models

                           ╔═════════════════════════════════════════════════╗
                           β•‘      DECENTRALIZED SYSTEMS ARCHITECTURE        β•‘
                           β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•
                                                      β”‚
         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
         β–Ό                   β–Ό                                                β–Ό                   β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  DeFi & AMMs    β”‚ β”‚   Cancun EVM Low-Level  β”‚              β”‚  Account Abstraction   β”‚ β”‚ Bitcoin Core    β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€              β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚β€’ Uniswap v4 Hookβ”‚ β”‚β€’ EIP-1153 tstore/tload  β”‚              β”‚β€’ ERC-4337 Bundlers     β”‚ β”‚β€’ Testnet4 Engineβ”‚
β”‚β€’ Anti-LVR Curvesβ”‚ β”‚β€’ Yul Fixed-Point Math   β”‚              β”‚β€’ ERC-7579 Modular AA   β”‚ β”‚β€’ Script VM Eval β”‚
β”‚β€’ Curve Invariantβ”‚ β”‚β€’ Custom Memory Allocatorβ”‚              β”‚β€’ EIP-712 Paymasters    β”‚ β”‚β€’ Taproot BIP-350β”‚
β”‚β€’ Morpho Blue Mktsβ”‚β”‚β€’ Namespaced Storage     β”‚              β”‚β€’ Session Key Guards    β”‚ β”‚β€’ SegWit BIP-173 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜              β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

1. Advanced EVM & Cancun Optimization

  • Transient Storage (EIP-1153): Single-transaction reentrancy locks reducing overhead from 2,100 gas (sstore) to 100 gas (tstore), intra-tx fee accumulators, and zero-storage transient routers.
  • Yul Inline Assembly: Custom memory bump allocators bypassing standard Solidity memory expansion penalties, high-performance function selector jump tables, and bitwise fixed-point WAD ($10^{18}$) / RAY ($10^{27}$) arithmetic.
  • Storage Engineering: Multi-variable bit-packing into single 32-byte slots and ERC-7201 formulaic namespaced storage collision detectors.

2. High-Frequency DeFi & Liquidity Primitives

  • Anti-LVR Mechanics: Continuous tick displacement tracking and exponential half-life volatility decay curves dynamically adjusting pool fee tiers to capture toxic flow as LP yields.
  • Concentrated & Multi-Asset AMMs: Uniswap v3 $Q64.96$ tick ranges, Balancer generalized geometric invariant pools ($\prod B_i^{w_i} = k$), and Curve Newton-Raphson amplification pools.
  • Lending & Margin Markets: Overcollateralized CDP stablecoin minters, isolated peer-to-peer agreements, Dutch auction liquidation engines, and multi-collateral margin baskets.

3. Account Abstraction & Applied Cryptography

  • ERC-4337 & ERC-7579: Modular smart accounts, gas sponsorship verifying paymasters, scoped temporary session key plugins, and pre-execution spending guardian policy hooks.
  • Biometric & Off-Chain Verification: WebAuthn / Passkey P-256 (secp256r1) signature verification, EIP-712 structured meta-transactions, and blind signature anonymous ballot schemes.
  • Zero-Knowledge & Accumulators: Groth16 zk-SNARK pairing checks on the alt_bn128 curve (0x08 precompile), and Sparse Merkle Tree (SMT) accumulator architectures.

4. Bitcoin Core & Script VM

  • Opcode Execution Engine: Deterministic stack machine implementing OP_DUP, OP_HASH160, OP_EQUALVERIFY, OP_CHECKSIG, and OP_CHECKMULTISIG.
  • Address Encodings: Native SegWit (Bech32, BIP-173) and Taproot (Bech32m, BIP-350) key derivation and signing.

πŸ› οΈ Tooling & Infrastructure

Foundry Solidity Yul C++ Rust TypeScript Hardhat Next.js Arch Linux


πŸ“Š Verification & Protocol Rigor

All protocol repositories enforce:

  • Strict Invariant Property Testing: State machine fuzzing via Foundry (--runs 256 to 10,000+).
  • Cancun EVM Compatibility: Tested and verified against Ethereum Cancun hardfork opcodes (evm_version = "cancun").
  • Formal Code Formatting: Standardized via forge fmt.
  • Zero External Baggage: Self-contained, custom-error driven contracts designed for gas minimization and audit readiness.

"In code we trust, on-chain we verify." β€’ Basant Pokhrel β€” Open Source Protocol Engineering

🌐 Active Open-Source Protocol Contributions

Ecosystem & Target Scope & Architecture Pull Request
Mastering Ethereum Core Protocol Literature & Standards
Addressed maintainer review feedback from @alessandromazza98 on Chapter 2 (Ethereum Basics) Further Reading.
πŸš€ PR #1332
Awesome Solidity Curated EVM Directory (7,000+ ⭐)
Added 100-solidity-projects to Resources > Examples > Educational with full invariant fuzzing coverage.
πŸš€ PR #226
Awesome Uniswap Hooks Uniswap v4 Dynamic Hook Ecosystem
Contributed v4-volatility-fee-hook (Anti-LVR & toxic MEV mitigation) to Community Examples.
πŸš€ PR #99
Awesome Account Abstraction ERC-4337 Standards Index (1,000+ ⭐)
Contributed aether-erc4337-paymaster (Enterprise EntryPoint v0.7 Paymaster with Chainlink settlement) to Code > Paymasters.
πŸš€ PR #1190
Awesome Foundry Foundry Framework Registry (1,100+ ⭐)
Added 100-solidity-projects (201/201 Foundry unit & invariant tests on Cancun EVM) to Projects Using Foundry.
πŸš€ PR #58

Pinned Loading

  1. sunya-visiblity sunya-visiblity Public

    Autonomous Local Website & Lead-Generation Agency for Kathmandu Valley (Discovery, Multi-Template Generation, Outreach & Automated Handoff)

    TypeScript

  2. degencheck-web3 degencheck-web3 Public

    ⚑ High-Throughput Web3 Smart Contract Security Scanner & Anti-MEV DEX Execution Companion

    TypeScript 1

  3. 100-solidity-projects 100-solidity-projects Public

    πŸ’― Master curriculum of 100 production-ready smart contracts in pure Solidity with 201 Foundry tests on Cancun EVM

    Solidity

  4. solidity-by-example.github.io solidity-by-example.github.io Public

    Forked from Cyfrin/solidity-by-example.github.io

    Solidity By Example

    TypeScript

  5. ethereumbook/ethereumbook ethereumbook/ethereumbook Public

    Mastering Ethereum: 2nd Edition, by Andreas M. Antonopoulos, Gavin Wood, Carlo Parisi, Alessandro Mazza, NiccolΓ² Pozzolini

    21.5k 5.2k

  6. open-ibc/ibc-app-solidity-template open-ibc/ibc-app-solidity-template Public template

    Template starter for IBC enabled contracts in Solidity for use with vibc-core-smart-contracts

    JavaScript 351 837