We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b741a62 commit 1830dd8Copy full SHA for 1830dd8
test/functional/feature_taproot.py
@@ -104,8 +104,8 @@
104
sign_schnorr,
105
tweak_add_privkey,
106
ECKey,
107
- SECP256K1
108
)
+from test_framework import secp256k1
109
from test_framework.address import (
110
hash160,
111
program_to_witness,
@@ -695,7 +695,7 @@ def spenders_taproot_active():
695
# Generate an invalid public key
696
while True:
697
invalid_pub = random_bytes(32)
698
- if not SECP256K1.is_x_coord(int.from_bytes(invalid_pub, 'big')):
+ if not secp256k1.GE.is_valid_x(int.from_bytes(invalid_pub, 'big')):
699
break
700
701
# Implement a test case that detects validation logic which maps invalid public keys to the
0 commit comments