-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Security level of a STARK #3
Comments
It seems like probability of an invalid execution trace being accepted can be calculated as: ([constraint degree] / [extension factor])^[execution trace queries] For example, if constraint degree = 4, extension factor = 8, and number of execution trace queries = 80, an invalid execution trace has about 8.3 / 10-25 chance of being accepted. This should be roughly equivalent to 80-bit security level. Similarly, if constraint degree = 4, extension factor = 16, and number of execution trace queries = 64, the probability is 2.9 / 10-39 (which is roughly equivalent to 128-bit security level). This is only for the execution trace security - so, a formula for FRI proof security is still needed, and hash function security / field size probably also come into play. |
From here: https://medium.com/starkware/starkdex-deep-dive-the-stark-core-engine-497942d0f0ab
This is about FRI proofs. So, it seems like FRI proof soundness can be calculated as: log2([extension factor]) * [fri proof queries] For example, if extension factor = 8 and the number of FRI proof queries = 40, we get soundness of of about 120 bits. Similarly, if extension factor = 16 and the number of queries is 32, the soundness is 128 bits. If this (and the previous posts) is correct, the only remaining pieces left are: (1) security of the hash function and (2) size of the field used. The latter one may not be relevant at all. |
To sum up the previous two posts, it seems like soundness of STARK proofs can be approximated as: soundness = min(log2((f/d)q1), log2(f) * q2, c) where:
Example 1: when f = 16, d = 4, q1 = 48, q2 = 24, and c = 128, the soundness is ≈ 96 bits. Example 2: when f = 16, d = 4, q1 = 64, q2 = 32, and c = 128, the soundness is ≈ 128 bits. Some open questions:
|
Seems like soundness of FRI does depend on constraint degree - so, the formula should be adjusted. Great analysis is here: https://eprint.iacr.org/2019/1020 |
There should be a getter on the
Stark
object to calculate security level of a specific STARK instance. Something as simple asStark.SecurityLevel
will do. The security level probably depends on:Need to come up with the exact formula for how all these come together.
The text was updated successfully, but these errors were encountered: