-
Notifications
You must be signed in to change notification settings - Fork 11
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
crates/stark/src/oods.rs:31:18: attempt to subtract with overflow #55
Comments
Could it be that my annotations look like that: "V->P: /cpu air/STARK/Out Of Domain Sampling/OODS values: Evaluation point: Field Element(0x6554169f2c8b8fa0f8b0c2f65af48039f64ad47f2fd90caaa2bb808f600f829)",
"P->V[96:128]: /cpu air/STARK/Out Of Domain Sampling/OODS values: 0: Field Element(0x40536e9e9158351e084b9ec5f9831c96969e4efd8f0b56f8532f377d2988483)",
"P->V[128:160]: /cpu air/STARK/Out Of Domain Sampling/OODS values: 1: Field Element(0x369e29b182cf9accf1868d724708ba83a462c4c8fa425d0c9d5c956a43ec75a)",
"P->V[160:192]: /cpu air/STARK/Out Of Domain Sampling/OODS values: 2: Field Element(0x2e553a9831fa0df8fa5d1029d152a7dcda95c310aa6bd5a9fe5b650abce5078)",
"P->V[192:224]: /cpu air/STARK/Out Of Domain Sampling/OODS values: 3: Field Element(0x1f179c246f2d0347d1cad76a75781ef805854f85b3fe933c5179a0131a6b0d6)", while your code expect the Annotation::OodsValues => PrefixAndKind {
prefix: "STARK/Out Of Domain Sampling/OODS values".to_string(),
kinds: AnnotationKinds::FieldElements,
}, |
Yup, I think something is wrong in the parsing because I printed my let x = stark_proof.unsent_commitment.oods_values;
panic!("{:?}", x); and got |
do u have latest stone built? |
I think I build it from source: https://github.com/starkware-libs/stone-prover cpu_air_prover -version
cpu_air_prover version INVALID_NAME-INVALID_PROOF_HASH-INVALID_COMMIT Which version do you recommend I use? |
Oh It is not version issue latest Stone v3 is fine |
Mine is currently: {
"field": "PrimeField0",
"stark": {
"fri": {
"fri_step_list": [
0,
4,
4,
4,
4
],
"last_layer_degree_bound": 32,
"n_queries": 18,
"proof_of_work_bits": 30
},
"log_n_cosets": 4
},
"use_extension_field": false
} What else should I change? |
Just copy json from my link and adjust fri layers for ur case |
Is this the only configuration verifiable with |
I tryied different mixed fri but always get the same error: Caused by:
0: OodsVerifyError Error
1: oods invalid 709992957254620831002252392826336286100946637269575755219814514419612025930 - 1868104729289279686881179178362914385993703678119283254310630101746102206724 (actual values may vary) Last I used is: {
"field": "PrimeField0",
"channel_hash": "poseidon3",
"commitment_hash": "blake256_masked248_lsb",
"n_verifier_friendly_commitment_layers": 10,
"pow_hash": "blake256",
"statement": {
"page_hash": "pedersen"
},
"stark": {
"fri": {
"fri_step_list": [
0,
4,
4,
4,
2
],
"last_layer_degree_bound": 128,
"n_queries": 18,
"proof_of_work_bits": 24
},
"log_n_cosets": 2
},
"use_extension_field": false,
"verifier_friendly_channel_updates": true,
"verifier_friendly_commitment_hash": "poseidon3"
} |
should I tried it (setting it to 14 while keeping the last config I showed) and it failed |
this command should verify proof with above configuration (i saw u use starknet layout in the prev proof) |
Given the correctly generated proof the verifier fails to verify with error More context: I created this #56 that just removes the vm specific final_pc check u can use it for now Your proof is verified succesfully on branch https://github.com/iosis-tech/swiftness/tree/fix/final_pc |
|
At
crates/stark/src/oods.rs:31:18
which is:Originally posted by @tdelabro in #54 (comment)
The text was updated successfully, but these errors were encountered: