HomePhabricator

[electrum] cleanup point_to_ser and stop leaking ecdsa implementation details…

Description

[electrum] cleanup point_to_ser and stop leaking ecdsa implementation details for ECPubkey

Summary:
Better variable names, support Tuple[int, int] as input

User of ECPubkey should not have to know anything about the ecdsa library, so ECPubkey.point() now returns an int 2-tuple and ECPubkey.from_point() accepts such a tuple.

Depends on D16349

This is split out of D16301

Test Plan: python test_runner.py

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
PiRKAuthored on Jun 19 2024, 09:48
PiRKPushed on Jun 20 2024, 10:19
Reviewer
Restricted Project
Differential Revision
D16350: [electrum] cleanup point_to_ser and stop leaking ecdsa implementation details for ECPubkey
Parents
rABCa3595882e2a7: [electrum] introduce a new ECPubkey class
Branches
Unknown
Tags
Unknown