What problem does it solve?
Provides a concise, actionable catalog of Compact smart contract design patterns so developers can choose, combine, and implement secure, privacy-aware primitives without reinventing common solutions.
Core Features & Use Cases
- Pattern Catalog: Coverage of access control (owner-only, RBAC, pausable, initializable), state management (state machines, time-locks), commitments (commit-reveal, sealed-bid auctions), value handling (escrow, treasury), governance (multi-sig, voting), identity/membership (registry, credentials, anonymous Merkle membership), and privacy (unlinkability, selective disclosure).
- Composition Guidance: Advice for combining patterns safely with integration points, ordering rules (auth before action, state checks after auth), and privacy stacking considerations.
- Operational Guidance: Key primitives, test checklists, privacy trade-offs, and cross-skill references to related Compact skills (tokens, privacy deep dives, ledger types).
- Use Case Example: Design a private sealed-bid auction that uses commit-reveal, escrowed deposits, a time-locked reveal phase, and anonymous bidder membership via a HistoricMerkleTree.
Quick Start
Ask for pattern recommendations to design a Compact escrow that supports anonymous membership, time-locked releases, and emergency pause controls.