compact-core:compact-structure

Official

Scaffold and explain Compact contract structure

Authordevrelaicom
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Helps developers write, structure, and review Compact smart contracts for the Midnight blockchain by codifying contract anatomy, pragma and import usage, ledger and witness declarations, constructors, circuits, and disclosure rules so contracts compile and integrate with ZK proving and off-chain provers.

Core Features & Use Cases

  • Contract Scaffolding: Clear ordering and examples for pragma, imports, custom types, ledger declarations (including sealed ledgers), witness declarations, constructors, helper circuits, and exported circuits.
  • Type and ADT Guidance: Explanations for primitives, collections, enums, structs, counters, maps, sets, lists, Merkle trees, and casting rules to prevent common type errors.
  • Safety & Patterns: Disclosure rules, common mistakes, commit-reveal, Merkle membership, authentication patterns, and guidance for pure circuits to meet ZK-proof and compilation constraints.

Quick Start

Ask the skill to scaffold a Compact contract with pragma, imports, ledger and witness declarations, a constructor, helper circuits, and exported transaction circuits.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: compact-core:compact-structure
Download link: https://github.com/devrelaicom/midnight-expert/archive/main.zip#compact-core-compact-structure

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.