-
Notifications
You must be signed in to change notification settings - Fork 3
Update to latest Plonky3 #1
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
base: main
Are you sure you want to change the base?
Conversation
…hanges are needed now for test passing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ran prettier
on this
//Generating proofs for the program | ||
let vmair = VMAir {}; | ||
vmair.generate_proof(vm); | ||
vmair.generate_proof(vm).expect("end-to-end proof generation") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise unused Result
warning
type Val = Mersenne31; | ||
type Challenge = BinomialExtensionField<Val, 3>; | ||
type ByteHash = Keccak256Hash; | ||
type FieldHash = SerializingHasher<ByteHash>; | ||
type MyCompress = CompressionFunctionFromHasher<ByteHash, 2, 32>; | ||
type ValMmcs = MerkleTreeMmcs<Val, u8, FieldHash, MyCompress, 32>; | ||
type ChallengeMmcs = ExtensionMmcs<Val, Challenge, ValMmcs>; | ||
type Challenger = SerializingChallenger32<Val, HashChallenger<u8, ByteHash, 32>>; | ||
type Pcs = CirclePcs<Val, ValMmcs, ChallengeMmcs>; | ||
#[allow(dead_code)] | ||
type MyConfig = StarkConfig<Pcs, Challenge, Challenger>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
slightly cleaner IMHO to place here, but unsure
#[allow(dead_code)]
to reduce strange warning of these not being used 🤷
let fri_config = FriConfig { | ||
log_blowup: 1, | ||
num_queries: 40, | ||
proof_of_work_bits: 8, | ||
mmcs: challenge_mmcs, | ||
log_final_poly_len: todo!(), | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new item in struct I am not sure how to decide on.
let local = main.row_slice(0).unwrap(); | ||
let next = main.row_slice(1).unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unsure this is correct. Perhaps leads to e2e failure?
WIP
Update to a recent Plonky3 and other deps.
Also clean up a bit &
cargo fix
to reduce warningsPresent status: need to read up on API changes and get e2e test passing
@armanthepythonguy if you are interested in this getting pr to a place it can be merged, let me know 😁 . Thanks a ton for making this!