An ecmult_gen for user-defined generators #1676
Replies: 2 comments 2 replies
-
Do you imagine this to be something done at runtime, or at compile time? The current As for scope, we tend to think of libsecp256k1 as a high-level library whose public API implements protocols, not primitives, and the internal implementation is whatever is needed for those. So in that sense, absent a new module for a protocol we intend to support, it wouldn't be a great fit.
Indeed, except internally in
The "normal" Benchmarks (see
|
Beta Was this translation helpful? Give feedback.
-
On my laptop (Apple M1 Max), I get: ecmult_gen , 15.6 , 15.7 , 16.0 So const is about 2x gen, which is about the same as 0p_g. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If I understand correctly, ecmult_gen computes x * G for a specific generator G using a pre-computed table T_G that depends on G.
Looking at the code, it seems that all the logic is there to compute other tables T_H for any generator H.
Would it be reasonable to ask for a version of ecmult_gen that worked for an arbitrary generator H using a table T_H pre-computed by the user and passed into the function?
I have applications where this would be nice to have.
I don't think such a function exists right now, but please correct me if I'm wrong.
While I'm asking, is there or would it be easy to build a function like ecmult_gen that uses a pre-computed table to speed things up but doesn't try to hide the secret scalar x?
Beta Was this translation helpful? Give feedback.
All reactions