mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-04 21:05:11 +00:00
ecc_fast: require libsecp256k1 on lightning, channel graph breaks electrum without
This commit is contained in:
parent
1988b552e1
commit
9862fe5c0c
1 changed files with 2 additions and 4 deletions
|
@ -186,10 +186,8 @@ def _prepare_monkey_patching_of_python_ecdsa_internals_with_libsecp256k1():
|
||||||
|
|
||||||
def do_monkey_patching_of_python_ecdsa_internals_with_libsecp256k1():
|
def do_monkey_patching_of_python_ecdsa_internals_with_libsecp256k1():
|
||||||
if not _libsecp256k1:
|
if not _libsecp256k1:
|
||||||
# FIXME logging 'verbosity' is not yet initialised
|
raise Exception('libsecp256k1 library not available. '
|
||||||
_logger.info('libsecp256k1 library not available, falling back to python-ecdsa. '
|
'Verifying Lightning channels is too computationally expensive without libsecp256k1, aborting.')
|
||||||
'This means signing operations will be slower.')
|
|
||||||
return
|
|
||||||
if not _patched_functions.prepared_to_patch:
|
if not _patched_functions.prepared_to_patch:
|
||||||
raise Exception("can't patch python-ecdsa without preparations")
|
raise Exception("can't patch python-ecdsa without preparations")
|
||||||
ecdsa.ecdsa.Private_key.sign = _patched_functions.fast_sign
|
ecdsa.ecdsa.Private_key.sign = _patched_functions.fast_sign
|
||||||
|
|
Loading…
Add table
Reference in a new issue