]> Git Repo - secp256k1.git/commit
Merge #580: Add trivial ecmult_multi algorithm which does not require a scratch space
authorGregory Maxwell <[email protected]>
Sun, 24 Feb 2019 03:01:31 +0000 (03:01 +0000)
committerGregory Maxwell <[email protected]>
Sun, 24 Feb 2019 03:06:54 +0000 (03:06 +0000)
commit14196379ec8ec6343b2fbafd67669d3d694d08dd
tree061f4ad329fe053bb0d7d38b20162d58a5a18b7b
parent5545e13deac6ad26690ce3664db660f9a604ed7a
parenta697d82da967ad3210c08304b1a18240eedb9fb1
Merge #580: Add trivial ecmult_multi algorithm which does not require a scratch space

a697d82 Add trivial ecmult_multi to the benchmark tool (Jonas Nick)
bade617 Add trivial ecmult_multi algorithm. It is selected when no scratch space is given and just multiplies and adds the points. (Jonas Nick)

Pull request description:

  This commit adds a new ecmult_multi algorithm that is automatically selected when `ecmult_multi_var` is called with scratch space set to `NULL`. This is a trivial algorithm that simply multiplies the points with the corresponding scalars and adds them up.

  The use case is to allow creating exposed function that uses `ecmult_multi` but without requiring a scratch space argument. For example, in MuSig when computing the combined public key we need to compute a weighted sum of points but we most likely don't care about the performance. And if we do we can still provide a scratch space. Having the option of not providing a scratch space is useful because creating a scratch space is not entirely trivial. One needs to decide on a size and it needs to be destroyed.

Tree-SHA512: 2de20feeff00902ca0936ec1f8d81cf7a95d0917f80e76e9eacbd739c8c2e248fbdaeb468a0aeaf715ec251c2c79b5e271ff4d77456218d02332e26e003d796e
This page took 0.02242 seconds and 4 git commands to generate.