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

ECP group cofactor #1

Open
davxy opened this issue Jan 28, 2023 · 0 comments
Open

ECP group cofactor #1

davxy opened this issue Jan 28, 2023 · 0 comments
Assignees

Comments

@davxy
Copy link
Owner

davxy commented Jan 28, 2023

Add cofactor (h) to curve group structure.

Mostly used as the generator order.

For example ecdsa keygen is currently broken for two reasons:

  1. we don't produce values within the scalar field r = n/h
  2. we don't exclude trivial scalar values (i.e. 1 and r-1)

Curves included within the library have all cofactor h=1, but we should be more generic to allow the user to plug-in other curve params (e.g. secp112r2 has h=4)

@davxy davxy self-assigned this Jan 28, 2023
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

No branches or pull requests

1 participant