Liquidations occur when a trader’s margin falls below the Maintenance Margin requirement. In Spectre’s private architecture, this process is unique because the specific details of a position (size, entry price, leverage) are cryptographically hidden.
In a traditional exchange, the engine knows every user’s exact balance and position size. It can simply iterate through all users, check Equity < Maintenance, and liquidate if true.On Spectre, position details are encrypted and stored as commitments. The engine cannot “see” your position to check its health directly.
Instead of the engine reading your data, the protocol requires a Position Health Proof. This is a cryptographic proof generated by a ZK-circuit that asserts:
“I know a private position (Quantity, Collateral, Leverage) that corresponds to my on-chain commitment, and I attest that its Collateral is greater than or equal to the Maintenance Margin.”
If this proof cannot be generated (because the position is actually underwater), or if the proof verification fails, the system knows the position is unhealthy.