CipherCipherStart building
Integration

Base bridge

On-chain settlement contract that anchors Cipher state on Base.

State layout

  • BridgeState.merkle_root — current pool root
  • BridgeState.program_version — version handshake
  • Per-nullifier records under a shared namespace
  • ValidatorRegistry — authority, totals, minimum stake

Instructions

  • deposit — lock ETH and emit a commitment leaf
  • withdraw — verify proof and pay out, gated by expiration_slot
  • shielded_transfer — record nullifiers and update root
  • register_validator / distribute_fee / claim_rewards / slash_validator

Events

Every state-mutating instruction emits a typed event. Off-chain indexers reconstruct pool history from these events without needing a separate API.