Suggestions on adding precomputes for verification #653

issue xxuejie openend this issue on July 30, 2019
  1. xxuejie commented at 2:13 am on July 30, 2019: none

    Hi there,

    Right now secp256k1 has a ecmult-static-precomputation module which allows us to trade space for speed. However the precomputation is only activated in secp256k1_ecmult_gen_context used in signing part. In our case we want to enable the precomputation in secp256k1_ecmult_context used in verification part as well.

    We do have a patch that is mostly working here, and we are interested in submitting it to upstream. However, the result here, is that a 512KB code size increase(actually 1MB if endomorphism is also enabled). So before wasting everyone’s time, we want to first check the best possible way going forward here. Should we put it in a second flag so we can disable it by default and enable it on demand? Or is it good enough to share the same precomputation flag?

    Many thanks!

  2. real-or-random commented at 7:48 am on July 30, 2019: contributor
    Thanks, great stuff. This is a related PR (abandoned but just because the creator is not working on it anymore): #614 It introduces precomputed values only if the table is small, which may make more sense than a huge (1 MB) table.
  3. sipa commented at 2:15 pm on December 26, 2021: contributor
    I just stumbled upon this issue. It seems we did some double work in #956, but it does mean this can be now closed.
  4. sipa closed this on Dec 26, 2021


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-22 14:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me