Projects

  • Pluto: AI Harness for DeFi Trading Wallet
    Jun 2026 - present

    • Building a self-hosted DeFi trading agent. Each cycle collects market data and news, retrieves relevant history, and produces a cited buy, sell, or hold for every configured pair. Strategy and security checks run before signing; trades can wait for approval or auto-execute, and a failure on one chain does not take down the others.

    • The agent runs on a custom TypeScript tool-calling harness over an OpenAI-compatible chat API, with Zod-validated structured outputs and schema-guided repair. Tools are allowlisted (on-chain quoting, wallet balances, and similar). The runtime enforces turn, call, and cost budgets, plus security hooks for denial, re-decision, and approval.

    • Supports three aggression levels — conservative, balanced, and aggressive — that shape how the agent styles its decisions. The matching prompt is injected into the decide system prompt from the user's configuration.

    TypeScript / Zod / DeFi / Tool Calling
  • Fast and Gas-efficient Private Sealed-bid Auctions
    Feb 2025 - Jun 2025

    • Proposed a new family of algorithms for private, trustless sealed-bid auctions on blockchain, combining Dutch auction model with a novel stepwise revelation tree structure.

    • Designed a reveal tree that reduces the number of rounds to O(log n), significantly lowering gas costs and execution times while ensuring bid confidentiality through cryptographic commitments and zero-knowledge proofs.

    Solidity / Ethereum / Zero-Knowledge Proofs / Commitment Schemes
  • Improved Gas Optimization of Smart Contracts
    Nov 2024 - Mar 2025

    • Developed a novel dynamic programming algorithm for gas superoptimization of smart contracts, addressing the scalability limitations of existing Max-SMT-based approaches on large bytecode blocks.

    • Achieved more than double the gas savings compared to syrup 2.0 alone, reducing the gas usage of real-world smart contracts by 11.23%.

    Solidity / Optimization / Ethereum / Dynamic Programming / Max-SMT
  • Blockchain-based E-voting system using Blind Signatures
    Sep 2023 - Feb 2024

    • Designed and implemented a blockchain-based e-voting system utilizing blind signatures and the relayer structure, achieving untraceable anonymity, verifiability, together with strong security, privacy, etc.

    • Achieved at least 40% greater efficiency in terms of gas costs comparing to existing systems with similar security measures.

    Solidity / Blind Signatures / Ethereum
  • 3-party Random Number Generation on Ethereum
    Feb 2023 - May 2023

    • Implemented a tamper-proof protocol for generating truly uniform random numbers on Ethereum by leveraging RSA, Goldwasser-Micali cryptosystem, and a secret sharing scheme.

    • The generated numbers are tamper-proof and remain secret until they are finalized.

    RSA / Goldwasser-Micali Cryptosystem / Homomorphic Encryption / Ethereum
  • Data Visualization of COVID-19
    Sep 2022 - Dec 2022

    • Visualized COVID-19 data—including infection, death, and vaccination rates—in U.S. prisons using various graphs. The system summarizes data by geography, state political affiliation, facility type, and prison personnel.

    Matplotlib / Tableau / D3
  • Real-time Vacancy Detection System Using Fisheye Cameras [See more]
    Aug 2022 - May 2023

    • Awarded the HKUST Best FYP Award and the Huawei FYP award for the year 22/23.

    • Collaborated with FYP team members to design and implement a Vacancy Detection System for a smart car park, achieving 91% accuracy with no false detections in real-world testing.

    • The system utilizes transfer learning, CNN, and YOLOv5, and achieves a wider detection angle than industry standards by incorporating a fisheye camera and an undistortion algorithm.

    CNN / Yolov5 / cv2 / Django
  • Stock Price Predictor
    Feb 2022 - May 2022

    • Developed a price predictor for Apple Inc. (AAPL) by training a multilayer perceptron on historical stock data. The system dynamically forecasts the next-hour stock trend, displayed on an interactive webpage built using AWS for seamless user engagement.

    Multilayer Perceptron model / AWS