Switch language한국어
Back to the list

Compact Is Not TypeScript. That's the Whole Point.

TL;DR AI

Key summary

2 min read
  1. Compact is not ordinary executable code like TypeScript; it defines constraints for zero-knowledge proofs.

  2. The model proves correct computation over private data, while the chain only verifies the proof.

  3. Concepts like assert, witness data, and disclose() define privacy boundaries and what can be revealed.

  4. Limits such as bounded loops and compile-time constants make the language fit ZK circuit execution safely.

Read the original