Skip to content

Repository files navigation

PPBridge: A Zero-Knowledge-Proof-Based Privacy-Preserving Bridge for Cryptocurrency Networks

PPBridge is a prototype zero-knowledge privacy-preserving bridge protocol for EVM-compatible networks. It combines fixed-denomination origin-chain deposits, Merkle-tree note commitments, zk-SNARK-based destination withdrawals, and wrapped ERC-20 minting. Some cryptographic building blocks and design patterns are adapted from existing open-source zero-knowledge tooling, including Circom/circomlib and Tornado-Cash-style note commitments. Upstream notices are preserved where applicable.

Security status

PPBridge is a research prototype. It has not been professionally audited and must not be used to bridge real funds.

Main components

  • Origin-chain locking contract
  • Destination-chain wrapped-token contract
  • Circom/Groth16 withdrawal circuit
  • Solidity verifier contract
  • JavaScript relayer
  • Command-line client

Security model

The current prototype provides one-way unlinkability for origin-to-destination transfers under anonymity-set assumptions. It does not provide private reclaim, trust-minimized root import, or production-grade relayer availability.

Preliminaries

  1. Nodejs v22 LTS
  2. Working directory is the root of this solution
  3. npm install -g npx

 

Quick start

1. Install dependencies:

npm install

2. Set all neccessary env variables in .env file (there is an .env.example for you).

3. Deploy the contracts:

npm run migrate

4. Run relayer:

node .\bridge_relayer\relayer.js

5. Now the console app can be used. Get help:

node .\src\cli.js --help

About

No description, website, or topics provided.

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages