HomePhabricator

Update key.cpp to use new libsecp256k1
a56054be6500Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Update key.cpp to use new libsecp256k1

libsecp256k1's API changed, so update key.cpp to use it.

Libsecp256k1 now has explicit context objects, which makes it completely thread-safe.
In turn, keep an explicit context object in key.cpp, which is explicitly initialized
destroyed. This is not really pretty now, but it's more efficient than the static
initialized object in key.cpp (which made for example bitcoin-tx slow, as for most of
its calls, libsecp256k1 wasn't actually needed).

This also brings in the new blinding support in libsecp256k1. By passing in a random
seed, temporary variables during the elliptic curve computations are altered, in such
a way that if an attacker does not know the blind, observing the internal operations
leaks less information about the keys used. This was implemented by Greg Maxwell.

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Apr 22 2015, 21:28
deadalnixPushed on May 14 2017, 22:04
Parents
rABC4dda253190e6: Update libsecp256k1
Branches
Unknown
Tags
Unknown

Event Timeline

Pieter Wuille <pieter.wuille@gmail.com> committed rABCa56054be6500: Update key.cpp to use new libsecp256k1 (authored by Pieter Wuille <pieter.wuille@gmail.com>).May 4 2015, 12:45