From 8c092e91527f5cb37c137be760ab2bc5edff285c Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Fri, 26 Jan 2024 10:54:02 +0000 Subject: [PATCH] test.include.ecc: function renames: `*_py_ecdsa()` -> `*_pyecdsa()` --- test/include/ecc.py | 4 ++-- test/unit_tests_d/ut_ecc.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/include/ecc.py b/test/include/ecc.py index fab7f3eb..4fae1675 100755 --- a/test/include/ecc.py +++ b/test/include/ecc.py @@ -28,10 +28,10 @@ def _check_pub_point(pub_point,vk_bytes,addend_bytes=None): vk_bytes.hex(), '' if addend_bytes is None else f' + {addend_bytes.hex()}')) -def pubkey_check_py_ecdsa(vk_bytes): +def pubkey_check_pyecdsa(vk_bytes): _check_pub_point(_pubkey_to_pub_point(vk_bytes), vk_bytes) -def pubkey_tweak_add_py_ecdsa(vk_bytes,pk_addend_bytes): +def pubkey_tweak_add_pyecdsa(vk_bytes,pk_addend_bytes): pk_addend = int.from_bytes(pk_addend_bytes) point_sum = ( _pubkey_to_pub_point(vk_bytes) + diff --git a/test/unit_tests_d/ut_ecc.py b/test/unit_tests_d/ut_ecc.py index 5e437db8..947cd273 100755 --- a/test/unit_tests_d/ut_ecc.py +++ b/test/unit_tests_d/ut_ecc.py @@ -8,7 +8,7 @@ from mmgen.color import gray,pink,blue from mmgen.proto.secp256k1.secp256k1 import pubkey_gen,pubkey_tweak_add,pubkey_check from ..include.common import cfg,qmsg,vmsg -from ..include.ecc import pubkey_tweak_add_py_ecdsa +from ..include.ecc import pubkey_tweak_add_pyecdsa from mmgen.protocol import CoinProtocol secp256k1_group_order = CoinProtocol.Secp256k1.secp256k1_group_order @@ -35,7 +35,7 @@ class unit_tests: pubkey_check(res1) vmsg(f' tweaked: {res1.hex()}') - res2 = pubkey_tweak_add_py_ecdsa(pubkey_bytes,pk_addend_bytes) + res2 = pubkey_tweak_add_pyecdsa(pubkey_bytes,pk_addend_bytes) pubkey_check(res2) assert len(res1) == length