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

Clean up trait bounds + safer group checks #787

Merged
merged 4 commits into from
May 14, 2024
Merged

Clean up trait bounds + safer group checks #787

merged 4 commits into from
May 14, 2024

Conversation

jonas-lj
Copy link
Contributor

@jonas-lj jonas-lj commented May 13, 2024

The Mul trait is not needed for ParameterizedGroupElement's nor for the windowed multiplier.

This PR also changes the discriminant method for class group elements to return a BigInt instead of a wrapped Discriminant. This is to give a stronger guarantee that Discriminant objects have been validated at some point.

@jonas-lj jonas-lj changed the title Use fast multiplier for proof generation Clean up trait bounds May 13, 2024
@jonas-lj jonas-lj requested a review from benr-ml May 13, 2024 12:48
@jonas-lj jonas-lj requested a review from kchalkias May 13, 2024 18:24
@jonas-lj jonas-lj changed the title Clean up trait bounds Clean up trait bounds + safer group checks May 13, 2024
Copy link
Collaborator

@kchalkias kchalkias left a comment

Choose a reason for hiding this comment

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

LGTM

let x =
QuadraticForm::hash_to_group_with_default_parameters(&[0, 1, 2], &discriminant).unwrap();
let y =
QuadraticForm::hash_to_group_with_default_parameters(&[3, 4, 5], &discriminant).unwrap();
Copy link
Collaborator

Choose a reason for hiding this comment

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

ah previously it was just a product of generator and now they are random? Nice, that's better.

@jonas-lj jonas-lj merged commit 60fb4ec into main May 14, 2024
7 checks passed
@jonas-lj jonas-lj deleted the jonas/fast_prove branch May 14, 2024 07:21
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