-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Signed-digit multi-comb ecmult_gen algorithm #1058
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
aa00a6b
Introduce CEIL_DIV macro and use it
real-or-random ab45c3e
Initial gej blinding -> final ge blinding
sipa 486518b
Make exhaustive tests's scalar_inverse(&x,&x) work
sipa fde1dfc
Signed-digit multi-comb ecmult_gen algorithm
peterdettman 5f7be9f
Always generate tables for current (blocks,teeth) config
sipa ed2a056
Provide 3 configurations accessible through ./configure
sipa 7a33db3
Optimization: move (2^COMB_BITS-1)/2 term into ctx->scalar_offset
sipa 15d0cca
Optimization: first table lookup needs no point addition
sipa 6247f48
Optimization: avoid unnecessary doublings in precomputation
peterdettman 5005abe
Rename scalar_get_bits -> scalar_get_bits_limb32; return uint32_t
sipa e03dcc4
Make secp256k1_scalar_get_bits support 32-bit reads
sipa a0d32b5
Optimization: use Nx32 representation for recoded bits
peterdettman 07810d9
Reduce side channels from single-bit reads
peterdettman 644e86d
Reintroduce projective blinding
sipa 39b2f2a
Add test case for ecmult_gen recoded = {-1,0,1}
sipa a043940
Permit COMB_BITS < 256 for exhaustive tests
sipa 4c341f8
Add changelog entry for SDMC
sipa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think in the spirit of trying to make manual builds, i.e., without build system, easy (#929), it would be better to move the selection logic here to the C code, and have
ECMULT_GEN_KB
as the "exposed" configuration macro. Then configure, cmake, and manual builds will have the same interface. (We could still allow passingCOMB_BLOCKS
andCOMB_TEETH
directly as long asECMULT_GEN_KB
is not defined, to retain the possibility to select a non-standard config.)This shouldn't hold up this PR. It could also be done in a follow-up PR, if you feel that's easier.
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.
Let's leave this for a follow-up. I feel there is some discussion to be had about the interaction with precomputation etc.
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.
Makes sense, let me leave a link to #189 here, just as a reminder.
edit: I took the freedom to unresolve this conversation, as a reminder for follow-ups.