Getting Started
Prerequisites
- Node.js 20+
- npm
- Foundry (
forge,cast) - Noir toolchain (
nargo,bb) for circuit work - Anvil for local end-to-end testing
Repository quick check
From the project root:
# Contracts tests
cd contracts && forge test --offline
# SDK unit/integration tests
cd ../sdk && npm install && npm run build && npm test
# Full SDK <-> contracts e2e
npm run test:e2e
# Circuit tests
cd ../circuits/zkjwt && nargo test
Key entry points
- Spec:
SPEC.md - Architecture map:
ARCHITECTURE.md - SDK package:
sdk/src/index.ts - Recovery contracts:
contracts/src/RecoveryManager.sol
Typical integration path
- Deploy shared verifiers, RecoveryManager implementation, and factory.
- In your wallet flow, deploy a per-wallet RecoveryManager via factory.
- Authorize that RecoveryManager inside the wallet.
- Use SDK clients/adapters to run start/submit/execute/cancel flows.
- Add monitoring for recovery events and owner-side cancellation UX.