Skip to content
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

fix bulletproofs test #50

Merged
merged 1 commit into from
Dec 23, 2020
Merged

fix bulletproofs test #50

merged 1 commit into from
Dec 23, 2020

Conversation

sunhuachuang
Copy link
Member

Add R1 to test code.

@@ -844,7 +844,10 @@ mod tests {
}
.matrix_to_map();

let f = [&statement[..], &witness[..]].concat();
let mut r1_statement = vec![G::Fr::one()];
Copy link
Contributor

Choose a reason for hiding this comment

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

Mark: we put one in the first of the statement array. It acts as a default public input.

@@ -958,7 +959,7 @@ mod tests {
let CL = vec![vec![zer, one, zer, zer]];
let CR = vec![vec![zer, zer, one, zer]];
let CO = vec![vec![zer, zer, zer, one]];
let statement = vec![one];
let statement = vec![];
Copy link
Contributor

Choose a reason for hiding this comment

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

so we omit the default public input one here

@p0n1 p0n1 merged commit a942a10 into sec-bit:master Dec 23, 2020
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.

2 participants