Skip to content

Repository files navigation

invisibook

A privacy-preserving order book built on pure cryptography — no TEE, no centralized infrastructure. Invisibook tackles the three hard problems of privacy, censorship resistance, and price discovery simultaneously, solving what traditional DEXs, CEXs, and dark pools cannot. Trade amounts are encrypted end-to-end: only the order creator can see the plain-text amount; everyone else sees the cipher.

invisibook desktop

Prerequisites

  • Go 1.21+install
  • Rust nightlyinstall, then rustup install nightly
  • GCC / C compiler – required by CGo (SQLite driver)
  • Node.js 18+install (required for circom witness generation)
  • circom 2.2+cargo install --git https://github.com/iden3/circom.git
  • snarkjsnpm install -g snarkjs
  • rapidsnark (optional, for fast proving) – build from iden3/rapidsnark

Build & Run

Chain

cd chain
go build -o invisibook .
./invisibook

The chain node listens on:

  • HTTP localhost:7999 – reading & writing API
  • WebSocket localhost:8999
  • P2P localhost:8887

Configuration files are in chain/cfg/:

  • chain.toml – yu framework config (ports, consensus, chain_id)
  • core.toml – tripod config (DB paths, genesis accounts)

Docker

Build the image and start the container:

docker-compose build
docker-compose up -d

To stop:

docker-compose down

Desktop

cd app/desktop
cargo run --release

Mobile (iOS / Android)

Mobile builds use Dioxus CLI. Install it first:

cargo install dioxus-cli

iOS (requires macOS + Xcode):

cd app/mobile
dx serve --platform ios

Android (requires Android SDK + NDK):

cd app/mobile
dx serve --platform android

Usage

Use the trade form on the right panel to place orders:

  • Select Buy or Sell
  • Choose a token pair from the dropdowns
  • Enter a Price and Amount (positive integers)
  • Click the submit button

Privacy

  • Your own orders: amount is displayed in plain text.
  • Other orders: amount is shown as encrypted cipher text.

License

See LICENSE.

About

A privacy-preserving, censorship-resistant, decentralized order book.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages