Skip to content

Commit

Permalink
Merge branch '202209_fe_ge_classes' into py-ellsq
Browse files Browse the repository at this point in the history
  • Loading branch information
sipa authored and stratospher committed Jun 1, 2023
1 parent 9e54dde commit 1e54054
Show file tree
Hide file tree
Showing 3 changed files with 408 additions and 286 deletions.
4 changes: 2 additions & 2 deletions test/functional/feature_taproot.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@
sign_schnorr,
tweak_add_privkey,
ECKey,
SECP256K1
)
from test_framework import secp256k1
from test_framework.address import (
hash160,
program_to_witness,
Expand Down Expand Up @@ -694,7 +694,7 @@ def spenders_taproot_active():
# Generate an invalid public key
while True:
invalid_pub = random_bytes(32)
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')):
break

# Implement a test case that detects validation logic which maps invalid public keys to the
Expand Down
Loading

0 comments on commit 1e54054

Please sign in to comment.