Browse Source

test.include.ecc: function renames: `*_py_ecdsa()` -> `*_pyecdsa()`

The MMGen Project 9 months ago
parent
commit
8c092e9152
2 changed files with 4 additions and 4 deletions
  1. 2 2
      test/include/ecc.py
  2. 2 2
      test/unit_tests_d/ut_ecc.py

+ 2 - 2
test/include/ecc.py

@@ -28,10 +28,10 @@ def _check_pub_point(pub_point,vk_bytes,addend_bytes=None):
 				vk_bytes.hex(),
 				vk_bytes.hex(),
 				'' if addend_bytes is None else f' + {addend_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)
 	_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)
 	pk_addend = int.from_bytes(pk_addend_bytes)
 	point_sum = (
 	point_sum = (
 		_pubkey_to_pub_point(vk_bytes) +
 		_pubkey_to_pub_point(vk_bytes) +

+ 2 - 2
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 mmgen.proto.secp256k1.secp256k1 import pubkey_gen,pubkey_tweak_add,pubkey_check
 
 
 from ..include.common import cfg,qmsg,vmsg
 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
 from mmgen.protocol import CoinProtocol
 
 
 secp256k1_group_order = CoinProtocol.Secp256k1.secp256k1_group_order
 secp256k1_group_order = CoinProtocol.Secp256k1.secp256k1_group_order
@@ -35,7 +35,7 @@ class unit_tests:
 				pubkey_check(res1)
 				pubkey_check(res1)
 				vmsg(f'      tweaked: {res1.hex()}')
 				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)
 				pubkey_check(res2)
 
 
 				assert len(res1) == length
 				assert len(res1) == length