mirror of
https://github.com/0xbow-io/privacy-pools-core.git
synced 2026-01-09 01:17:58 -05:00
c45259e9fe8cdad9c421c05c0c759201332fb356
- Set cors_allow_all default to true for development - Add default allowed_domains including localhost and production URLs - Fixes CORS blocking on /relayer/details endpoint from localhost:3000 - Allow all origins in production only when running on testnet-relayer.privacypools.com - Use restricted domain list for other production environments
Privacy Pool Protocol
Privacy Pool is a blockchain protocol that enables private asset transfers. Users can deposit funds publicly and partially withdraw them privately, provided they can prove membership in an approved set of addresses.
Overview
The protocol implements a system of smart contracts and zero-knowledge proofs to enable privacy-preserving transfers while maintaining compliance through approved address sets. It supports both native assets and ERC20 token transfers.
Repository Structure
This is a Yarn workspaces monorepo containing four packages:
├── packages/
│ ├── circuits/ # Zero-knowledge circuits
│ └── contracts/ # Smart contract implementations
│ └── relayer/ # Minimal relayer implementation
│ └── sdk/ # Typescript toolkit
See the README in each package for detailed information about their specific implementations:
Development
To set up the development environment:
# Install dependencies
yarn
Description
Languages
TypeScript
52.3%
Solidity
41.6%
JavaScript
5%
Circom
0.9%
Smarty
0.1%