Skip to content

Conversation

nuke-web3
Copy link

@nuke-web3 nuke-web3 commented May 8, 2025

WIP
Update to a recent Plonky3 and other deps.
Also clean up a bit & cargo fix to reduce warnings

Present 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!

Copy link
Author

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")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise unused Result warning

Comment on lines +25 to +35
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>;
Copy link
Author

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 🤷

Comment on lines 106 to 112
let fri_config = FriConfig {
log_blowup: 1,
num_queries: 40,
proof_of_work_bits: 8,
mmcs: challenge_mmcs,
log_final_poly_len: todo!(),
};
Copy link
Author

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.

Comment on lines +40 to +41
let local = main.row_slice(0).unwrap();
let next = main.row_slice(1).unwrap();
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant