test.include.ecc: function renames: *_py_ecdsa() -> *_pyecdsa()
This commit is contained in:
parent
8a87aebeb1
commit
8c092e9152
2 changed files with 4 additions and 4 deletions
|
|
@ -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) +
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue