midnight-explain-circuit
Explain a Compact circuit's function in plain language, covering zero-knowledge proof implications and privacy considerations.
Instructions
Explain what a specific Compact circuit does in plain language, including its zero-knowledge proof implications and privacy considerations.
USAGE GUIDANCE: • Call once per circuit - explanations are deterministic • Provide complete circuit code including parameters and body • For full contract analysis, use midnight-analyze-contract first
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"circuitCode": "<circuitCode>"
},
"name": "midnight-explain-circuit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| circuitCode | Yes | Circuit definition from Compact to explain |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| circuitName | Yes | Circuit name | |
| isPublic | No | Whether it's exported | |
| parameters | No | Circuit parameters | |
| returnType | No | Return type | |
| explanation | Yes | Plain language explanation | |
| operations | No | Operations performed by the circuit | |
| zkImplications | Yes | Zero-knowledge proof implications | |
| privacyConsiderations | Yes | Privacy-related considerations |