compact-core:compact-privacy-disclosure

Official

Keep private data private in Compact contracts.

Authordevrelaicom
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Managing privacy in Compact contracts is challenging due to witness taint tracking. This skill teaches how to correctly apply the disclose() annotation to reveal only what must be public, preventing unintended data leakage across ledger writes, circuit returns, and conditionals.

Core Features & Use Cases

  • Clarifies the Witness Protection Program model and how to place disclose() accurately at public boundaries.
  • Covers common privacy patterns (commitments, nullifiers, MerkleTree proofs, unlinkable auth, selective disclosure) with practical guidance for real-world contracts.
  • Provides debugging workflows for fixing "potential witness-value disclosure must be declared" errors and implementing safe, auditable privacy designs.

Quick Start

Place a disclose() around the witness-derived values at the first public boundary to resolve compiler errors.

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-privacy-disclosure
Download link: https://github.com/devrelaicom/midnight-expert/archive/main.zip#compact-core-compact-privacy-disclosure

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.