MCPcopy Create free account
hub / github.com/0xEigenLabs/eigen-secret

github.com/0xEigenLabs/eigen-secret @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
382 symbols 1,096 edges 74 files 22 documented · 6% updated 3y ago★ 443 open issues

Browse by type

Functions 307 Types & classes 75
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Eigen Secret

Eigen Secret is a zk-zkRollup providing confidential transaction and selective exposure for users with low gas cost.

Building on Private State Model and zkSnark.

The circuits is written by Circom 2, proved by eigen zkit.

Task

npx hardhat --help

Gas Reporter

npx hardhat test

ETH Price: 1899.33 usd/eth

GasPrice: 20Gwei

Contract Method gas consumption

Contract Method Min Max Avg usd(avg)
Rollup approveToken - - 63083 2.40
Rollup deposit - - 226016 8.59
Rollup processDeposits - - 2086729 79.27
Rollup registerToken - - 49443 1.88
Rollup update 333467 350963 339443 12.89
Rollup withdraw - - 983815 37.37
TestToken approve 46223 46235 46229 1.76
TestToken transfer 26678 51378 50142 1.90
TokenRegistry setRollupNC - - 46053 1.75

Contract deployment gas consumption

Deployments Min Max Avg usd(avg)
PoseidonFacade - - 354579 13.47
Rollup - - 4390248 166.77
SMT 358301 358313 358307 13.61
SpongePoseidon - - 271682 10.32
TestToken - - 735448 27.94
TokenRegistry - - 310495 11.79

SDK

The SDK tutorial is generated by typedoc.

Licence

Not determined, any suggestions are welcome.

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Method 186
Function 121
Class 67
Enum 4
Interface 4

Languages

TypeScript99%
Python1%

Modules by API surface

core/lib/sdk.ts42 symbols
docs/assets/main.js34 symbols
core/lib/state_tree.ts27 symbols
core/lib/utils.ts26 symbols
core/lib/account.ts25 symbols
core/lib/prover.ts21 symbols
circuits/main_update_state_js/witness_calculator.js16 symbols
core/lib/transaction.ts15 symbols
core/lib/rollup.sc.ts14 symbols
core/lib/smt.ts13 symbols
core/lib/join_split.ts12 symbols
aggregation/src/aggregation_prover.ts11 symbols

For agents

$ claude mcp add eigen-secret \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page