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

DRS62 #121

Open
ViktYusk opened this issue Jan 18, 2022 · 1 comment
Open

DRS62 #121

ViktYusk opened this issue Jan 18, 2022 · 1 comment

Comments

@ViktYusk
Copy link

Could you please give a source about the method of modular inversion you use in the project? It is DRS62 (delayed right shift 62 bits). I can't find any articles about this method on the internet.

@JeanLucPons
Copy link
Owner

JeanLucPons commented Jan 19, 2022

Hi,
Link are in the code.
The one currently used in the Thomas Pornin's method (used with 62 bits instead of 31 in his implementation): https://github.com/pornin/bingcd/blob/main/doc/bingcd.pdf
You can also activate the one used in bitcoin library (implementation by Peter Dettman) all info,papers can be found there bitcoin-core/secp256k1#767.
The Thomas Pornin's method is faster, especially for variable time implementation.
JL

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