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

Disentangle Pedersen generators from Bulletproofs generators #163

Merged
merged 8 commits into from Sep 19, 2018

Conversation

hdevalence
Copy link
Contributor

Closes #161.

@hdevalence hdevalence added the T-api Change to the API label Sep 18, 2018
@hdevalence hdevalence added this to the 0.2 milestone Sep 18, 2018
@cathieyun
Copy link
Member

cathieyun commented Sep 18, 2018

It looks like a toolchain bump is in order! I updated other PRs to use nightly-2018-09-16 which fixed the problem.

@hdevalence
Copy link
Contributor Author

I also had to amend the commit to change the benchmarks to match the new API, so it was probably broken in at least two ways

Copy link
Member

@cathieyun cathieyun left a comment

Choose a reason for hiding this comment

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

LGTM
(I just have one q about the randomness)


#[test]
fn test_delta() {
let mut rng = OsRng::new().unwrap();
let mut rng = rand::thread_rng();
Copy link
Member

Choose a reason for hiding this comment

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

what's the motivation for changing the source of randomness?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's no really good reason -- I removed the OsRng that was used in other parts of the test code while changing that code, then removed the use declaration that brought it into scope, then realized that the test_delta function was using it, and didn't want to re-add it, so I just made everything use thread_rng

@cathieyun cathieyun merged commit b515c03 into main Sep 19, 2018
@cathieyun cathieyun deleted the pedersen branch September 19, 2018 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-api Change to the API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants