ShadowSats

On-chain BTC dark pool with blinded orders, batch matching, and atomic settlement via zk proofs.

Visit

About

## Wave 1 submission

Core Settlement Contracts & Dummy Frontend Demo In this initial wave, we laid the groundwork for ShadowSats by building the on-chain settlement logic and a bare-bones frontend to demo the flow end-to-end.

Smart Contracts

DarkPool.sol

ERC-20 collateral management: deposit(uint256), withdraw(uint256). Order registry: submitOrder(bytes32 commitment). Event hooks for Deposit, Withdraw, and OrderSubmitted.

Verifier Interface & Stub

IDarkPoolVerifier.sol interface. DarkPoolVerifier.sol stub that always returns true for any non-empty proof.

Testing & CI

Hardhat unit tests covering deposit/withdraw and order submission flows. GitHub Actions running hardhat test on every PR.

Dummy Frontend Demo

Minimal Next.js app with a single page:

Wallet Connect via ethers.js and Web3Modal on Citrea testnet RPC. Deposit/Withdraw UI: inputs for BTC amount and buttons to call respective contract methods. Order Submission Form: enter a dummy price & size, hash locally (simulating commitment), and call submitOrder. Live logs of transaction hashes and emitted events.

Deployed Demo:

https://shadowsats.vercel.app

Source Code (Wave1 branch):

https://github.com/sambitsargam/ShadowSats

## Wave 2 submission

Updates in this Wave (Wave 2):

🔹 Built a Circom circuit (order_commitment.circom) that takes price (USD×100), size (satoshis), side (buy/sell) and a nonce, enforces bounds checks, and outputs a 32-byte Pedersen commitment.

🔹 Created a snarkjs proof generator (generateOrderProof.ts) which loads the WASM and ZKey files, runs groth16.fullProve(...), and writes out proof.json and publicSignals.json.

🔹 Added helper scripts (compile.sh to compile the circuit and setup-keys.sh for the Groth16 trusted setup) so anyone can rebuild and re-setup the circuit.

🔹 Compiled and deployed DarkPoolVerifier.sol on Citrea testnet; integrated it into DarkPool.sol so that both order submission and batch execution call verifyProof(...) before proceeding.

🔹 Extended CI to run circuit compilation, proof verification (snarkjs groth16 verify), and Hardhat unit tests to ensure valid proofs pass and invalid proofs are rejected.

Prizes

  • Wave 1 grant · 27.91 USDT
  • Wave 2 grant · 10.65 USDT

From the public Akindo product 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?

No public repo linked, so we can't tell.

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.