-
Notifications
You must be signed in to change notification settings - Fork 43
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
Preallocated Contexts - Take 2 #63
Preallocated Contexts - Take 2 #63
Conversation
@GeneFerneau could you throw an eye again on this one? |
secp256k1_gej d; | ||
secp256k1_ge a_ge, d_ge, p_ge; | ||
secp256k1_ge last_ge; | ||
secp256k1_gej pj; | ||
secp256k1_fe zi; | ||
secp256k1_fe zr; | ||
secp256k1_fe dx_over_dz_squared; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function is also different from the original repo.
https://github.com/bitcoin-core/secp256k1/blob/1e5d50fa93d71d751b95eec6a80f6732879a0071/src/ecmult_impl.h#L145
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Cross checked every line with:
- https://github.com/bitcoin-core/secp256k1
- https://github.com/ElementsProject/secp256k1-zkp
Specifically regarding the differences insecp256k1_ecmult_odd_multiples_table_storage_var
compared with commit at BlockstreamResearch/secp256k1-zkp@efa783f
Re-ran tests with ASAN and the fixes from #64, no issues 🚀 Tested against static precomp enabled and disabled. |
Replaces #61
Slightly more focused, with lower risk