Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@punwai
Copy link
Collaborator

@punwai punwai commented Feb 26, 2023

Added some boilerplate for testing correctness of functions -- adds the boilerplate for creating new circuits.

@punwai punwai changed the title Add boilerplate for testing correctness Add boilerplate for testing completeness Feb 26, 2023
use ndarray::{ArrayBase, Dim, IxDynImpl, OwnedRepr};

pub const K: u64 = 19;
pub const GLOBAL_SF: i64 = 2 ^ 16;
Copy link
Owner

Choose a reason for hiding this comment

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

Is this xor or exponentiation?

Copy link
Collaborator Author

@punwai punwai Feb 28, 2023

Choose a reason for hiding this comment

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

That's supposed to be an exponentiation. Thanks for catching that

@@ -0,0 +1,321 @@
use halo2_proofs::{dev::MockProver, halo2curves::bn256::Fr};
Copy link
Owner

Choose a reason for hiding this comment

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

Why don't you just use the regular model for this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah we can do that too.

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.

3 participants