HomePhabricator

[electrum] introduce a new ECPubkey class

Description

[electrum] introduce a new ECPubkey class

Summary:
and start using it in transaction.py to verify tx signatures.
This makes the MyVerifyingKey private to ecc.py.

In a following diff, it will be used to verify other type of messages as well, and will serve as a base class for a ECPrivkey class that will replace the current ECKey class.
These new classes will encapsulate the interaction with the ecdsa lib, so that other modules don't need to know about this implementation detail.

Depends on D16348

This is split out of D16301

Test Plan: python test_runner.py

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
PiRKAuthored on Jun 19 2024, 10:10
PiRKPushed on Jun 20 2024, 10:19
Reviewer
Restricted Project
Differential Revision
D16349: [electrum] introduce a new ECPubkey class
Parents
rABC1e5fc68f200a: [electrum] cleanup ser_to_point
Branches
Unknown
Tags
Unknown