HomePhabricator

[electrum] move-only: move helper functions to avoid libsecp dependency

Description

[electrum] move-only: move helper functions to avoid libsecp dependency

Summary:
This moves helper classes and helper functions to other modules to avoid introducing a dependency on cryptography code for the get_merkle_root.py script. This means we can continue using the script without unnecessarily compiling libsecp256k1.

Now interface.py no longer depends on libsecp, and a helper function was moved from network.py to networks.py because the latter also does not depend on libsecp.

Test Plan:

python test_runner.py

With libsecp256k1.so.0 missing:

scripts/get_merkle_root.py

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D16833

Details

Provenance
PiRKAuthored on Oct 1 2024, 14:56
PiRKPushed on Oct 2 2024, 08:21
Reviewer
Restricted Project
Differential Revision
D16833: [electrum] move-only: move helper functions to avoid libsecp dependency
Parents
rABC234c46fab519: [e.cash] Fix typo on use-eCash page
Branches
Unknown
Tags
Unknown