Loading...
Loading...
Comprehensive guide to the Compact programming language for writing privacy-preserving smart contracts on Midnight Network. Use when users need to write Compact smart contracts with zero-knowledge proofs, understand Compact syntax and language features, implement ZK circuit patterns and optimizations, generate contract boilerplate and project scaffolding, learn best practices for secure contract development, access Compact standard library functions, and compile and test Compact contracts.
npx skill4agent add mzf11125/midnight_agent_skills midnight-compactcircuit myContract(private secretInput, public publicInput) {
// Private data hidden in proof
// Public data visible to all
// Proof shows execution was correct
}scripts/init-compact-project.pyscripts/generate-contract.pyscripts/compile-compact.pyassets/templates/python scripts/init-compact-project.py <project-name>python scripts/generate-contract.py <template-name>python scripts/compile-compact.py <contract-file>