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

select indepentent generator with node js #61

Open
stef25761 opened this issue Mar 16, 2022 · 1 comment
Open

select indepentent generator with node js #61

stef25761 opened this issue Mar 16, 2022 · 1 comment

Comments

@stef25761
Copy link

Hey,

I need to select two independent generators from the curve.
How can I select them? If I use the generator function from ecp I always get the same points.
I this maybe e bug or i miss an initialisation?

This is the code i used.

let g = ctx.ECP.generator(); const g_Bytes = []; g.toBytes(g_Bytes, true);

For the second one i used:

let u = ctx.ECP.generator(); const u_Bytes = []; u.toBytes(u_Bytes, true);

@mcarrickscott
Copy link
Contributor

mcarrickscott commented Mar 16, 2022 via email

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

2 participants