minipay

Instant exchange on/offramp using state channels and a hub-and-spoke model.

Repo
minipay banner

About

This project enables instant token deposits and withdrawals from exchanges by combining a state channels hub-and-spoke architecture with a browser-based frontend. Users open a state channel with a central hub, allowing off-chain transfers that are fast, cheap, and scalable.

By integrating the Worldcoin minikit-web3-example, we add secure identity verification, ensuring that only verified users can access on/offramp functionality. This enhances security and enables compliance-ready flows (e.g., for regulated exchanges).

The hub abstracts complex channel operations and provides a simple interface for users to deposit and withdraw tokens instantly, minimizing on-chain interactions to final settlement only. This drastically reduces gas fees and improves user experience, making it practical for real-world exchange onboarding/offboarding.

How it's made

The system is built using Solidity smart contracts to handle channel creation, deposits, and final on-chain settlement logic. The off-chain hub logic is written in TypeScript (Node.js), managing state transitions, user sessions, and liquidity routing.

The frontend is a React app that integrates with ethers.js for wallet interactions and uses the Worldcoin minikit-web3-example for proof of personhood verification. This lets us securely verify users' identities without compromising privacy.

We use cryptographic signatures (ECDSA) for all off-chain state updates, and a Merkle tree structure to efficiently handle proofs during disputes. Exchange APIs are integrated to simulate realistic liquidity and instant pricing.

A notable hacky detail: we implemented an emergency exit mechanism that lets users forcibly settle their balances on-chain in case the hub becomes unavailable, inspired by Lightning Network-like watchtower logic.

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

simpleTracker

Instant exchange onramp/offramp using a state-channel hub model for fast, low-cost token transfers.