HomePhabricator

[electrum] properly handle point at infinity and point not on curve

Description

[electrum] properly handle point at infinity and point not on curve

Summary:
Raise a custom error for points not on the curve. Support a special *point a inifinity* value for ECPubkey (will be needed in the next diff for Cash Fusion code)

This is a backport of https://github.com/spesmilo/electrum/commit/59c1d03f018026ac301c4e74facfc64da8ae4708

Additional tests from:

  • electrumabc_plugins/fusion/tests/test_pedersen.py

Depends on D16676

Test Plan: python test_runner.py

Reviewers: #bitcoin_abc, bytesofman

Reviewed By: #bitcoin_abc, bytesofman

Subscribers: bytesofman

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

Details

Provenance
PiRKAuthored on Aug 26 2024, 11:04
PiRKPushed on Sep 3 2024, 06:19
Reviewer
Restricted Project
Differential Revision
D16681: [electrum] properly handle point at infinity and point not on curve
Parents
rABC26c62cc78b2c: [electrum] refactor private key class to better abstract ecdsa library usage
Branches
Unknown
Tags
Unknown