-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b7e744f
commit 51ad3d4
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
use.std::crypto::stark::verifier | ||
|
||
#! Verify a STARK proof attesting to the correct execution of a program in the Miden VM. | ||
#! The following simplifying assumptions are currently made: | ||
#! - The blowup is set to 8. | ||
#! - The maximal allowed degree of the remainder polynomial is 7. | ||
#! - The public inputs are composed of the input and output stacks, of fixed size equal to 16. | ||
#! - There are two trace segments, main and auxiliary. It is assumed that the main trace segment | ||
#! is 70 columns wide while the auxiliary trace segment is 7 columns wide. | ||
#! - The OOD evaluation frame is composed of two interleaved rows, current and next, each composed | ||
#! of 70 elements representing the main trace portion and 7 elements for the auxiliary trace one. | ||
#! - To boost soundness, the protocol is run on a quadratic extension field and this means that | ||
#! the OOD evaluation frame is composed of elements in a quadratic extension field i.e. tuples. | ||
#! Similarly, elements of the auxiliary trace are quadratic extension field elements. The random | ||
#! values for computing random linear combinations are also in this extension field. | ||
#! - The following procedure makes use of global memory address beyond 3 * 2^30 and these are | ||
#! defined in `constants.masm`. | ||
#! | ||
#! Input: [log(trace_length), num_queries, log(blowup), grinding, ...] | ||
#! Output: [...] | ||
#! | ||
#! Cycles: | ||
#! 1- Remainder codeword size 32: | ||
#! 5013 + num_queries * (40 + num_fri_layers * 76 + 26 + 445) + 83 * num_fri_layers + 10 * log(trace_length) + 1633 | ||
#! 2- Remainder codeword size 64: | ||
#! 5013 + num_queries * (40 + num_fri_layers * 76 + 26 + 445) + 83 * num_fri_layers + 10 * log(trace_length) + 3109 | ||
export.verifier::verify |