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

Random non-zero scalar generation #303

Closed
chris-wood opened this issue Nov 30, 2021 · 0 comments · Fixed by #305
Closed

Random non-zero scalar generation #303

chris-wood opened this issue Nov 30, 2021 · 0 comments · Fixed by #305

Comments

@chris-wood
Copy link
Contributor

Currently, Group.RandomScalar() returns a scalar from the group Z_p, which includes the zero element. Some protocols require randomly sampling a scalar from the set of scalars with a multiplicative inverse (Z_p^*). One can implement this with Group.RandomScalar, but I wonder if adding a function to the Group interface would be useful. Thoughts?

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 a pull request may close this issue.

1 participant