How proof verification works today
Kloak verification is intentionally layered. The goal is to rely less on Kloak alone over time and more on the package itself plus public Aleo evidence.
Verification order
The order matters because a proof package should fail fast if it was changed before any deeper checks happen.
First, Kloak checks the proof package structure and digest integrity.
Second, Kloak checks public Aleo references such as the payment transaction and the disclosure transaction.
Third, Kloak checks its own proof record status for support signals like revocation and stored history.
Public chain checks
The public chain layer is treated as the primary confidence signal in the verify experience.
It checks whether the payment transaction exists.
It checks whether the disclosure transaction exists.
It checks whether the disclosure transaction called the expected proof function.
If the public chain says the references do not match, Kloak should not silently treat the proof as valid.
Why this matters
Kloak record status
Kloak should not be the only trust layer, but it still plays an important support role.