Veil Protocol v2 is a private cross-chain reputation protocol. Users prove a banded reputation state from social and protocol activity without exposing raw wallet history, linked addresses, or private score inputs.
Veil is no longer framed as a credit-scoring product. Lending can integrate Veil, but the primary surface is private reputation for DeFi, DAOs, airdrops, incentives, and access systems.
packages/
contract/ Midnight Compact v2 reputation contract
sdk/ @veil-reputation-protocol/sdk for protocol integrators and apps
cli/ Deployment and smoke-test CLI
backend/ DUST sponsorship and optional encrypted backup API
apps/
veil-ui/ Single EVM-wallet reputation dashboard
docs/ Static v2 documentation site
- A user connects one EVM-compatible wallet.
- The app/SDK derives a CKB lock-hash anchor and stable Veil ID.
- The user signs the registration message and submits
Identity_register. - The SDK collects public chain signals and submits
Reputation_prove. - Integrators call
checkReputationorReputation_checkfor a minimum band. - The backend only sponsors DUST and optionally stores encrypted client backups.
Base path: /api/v1
| Endpoint | Purpose |
|---|---|
GET /health |
Backend health and enabled scopes |
GET /contract |
Active Midnight contract address |
POST /sponsor/dust |
DUST sponsorship |
POST /dust-sponsor |
Compatibility alias |
PUT /backups/:backupId |
Store encrypted private-state or wallet metadata backup |
GET /backups/:backupId?owner=... |
Fetch one encrypted backup |
GET /backups?owner=... |
List backup metadata |
DELETE /backups/:backupId?owner=... |
Delete a backup |
Deprecated v1 credit-decision, issuer-event, DID, DOB, and score-entry endpoints are no longer mounted.
@veil-reputation-protocol/sdk is the main integration surface for cross-chain protocols:
- identity derivation and registration
- reputation witness collection
- proof submission
- band checks and batch checks
- DUST sponsor client
- deployment helper constants and contract argument builders
Install dependencies:
bun installBuild all workspaces:
bun run buildRun focused packages:
cd packages/sdk && bun run test:run
cd packages/apps/docs && bun run dev
cd packages/apps/veil-ui && bun run dev
cd packages/backend && bun run devThe full contract has identity, reputation, governance, and utility circuits. Because the full surface exceeds the small bootstrap set, deployment uses the staged bootstrap flow and then installs the missing verifier keys.
See packages/contract/README.md and packages/contract/SECURITY.md.
The contract verifies proof bindings, witness commitments, signal bounds, replay protection, band matching, and governance timelocks. Wallet-signature verification and canonical source-chain readers are part of the SDK/prover integration boundary until native verifier circuits are available.