Skip to content

Commit 08a4a56

Browse files
committed
[test] Move test framework crypto functions to crypto/
1 parent 8371914 commit 08a4a56

14 files changed

+10
-10
lines changed

test/functional/feature_taproot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
tweak_add_privkey,
106106
ECKey,
107107
)
108-
from test_framework import secp256k1
108+
from test_framework.crypto import secp256k1
109109
from test_framework.address import (
110110
hash160,
111111
program_to_witness,

test/functional/feature_utxo_set_hash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
COutPoint,
1212
from_hex,
1313
)
14-
from test_framework.muhash import MuHash3072
14+
from test_framework.crypto.muhash import MuHash3072
1515
from test_framework.test_framework import BitcoinTestFramework
1616
from test_framework.util import assert_equal
1717
from test_framework.wallet import MiniWallet

test/functional/test_framework/blockfilter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
55
"""Helper routines relevant for compact block filters (BIP158).
66
"""
7-
from .siphash import siphash
7+
from .crypto.siphash import siphash
88

99

1010
def bip158_basic_element_hash(script_pub_key, N, block_hash):

test/functional/test_framework/ellswift.py renamed to test/functional/test_framework/crypto/ellswift.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import random
1313
import unittest
1414

15-
from test_framework.secp256k1 import FE, G, GE
15+
from test_framework.crypto.secp256k1 import FE, G, GE
1616

1717
# Precomputed constant square root of -3 (mod p).
1818
MINUS_3_SQRT = FE(-3).sqrt()

0 commit comments

Comments
 (0)