[test] Move test framework crypto functions to crypto/
This commit is contained in:
1 parent
8371914604
commit
08a4a56cbc
14 files changed
+10
-10
No files matched your search
@@ -105,7 +105,7 @@ from test_framework.key import (
|
|||||||
tweak_add_privkey,
|
tweak_add_privkey,
|
||||||
ECKey,
|
ECKey,
|
||||||
)
|
)
|
||||||
from test_framework import secp256k1
|
from test_framework.crypto import secp256k1
|
||||||
from test_framework.address import (
|
from test_framework.address import (
|
||||||
hash160,
|
hash160,
|
||||||
program_to_witness,
|
program_to_witness,
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ from test_framework.messages import (
|
|||||||
COutPoint,
|
COutPoint,
|
||||||
from_hex,
|
from_hex,
|
||||||
)
|
)
|
||||||
from test_framework.muhash import MuHash3072
|
from test_framework.crypto.muhash import MuHash3072
|
||||||
from test_framework.test_framework import BitcoinTestFramework
|
from test_framework.test_framework import BitcoinTestFramework
|
||||||
from test_framework.util import assert_equal
|
from test_framework.util import assert_equal
|
||||||
from test_framework.wallet import MiniWallet
|
from test_framework.wallet import MiniWallet
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
"""Helper routines relevant for compact block filters (BIP158).
|
"""Helper routines relevant for compact block filters (BIP158).
|
||||||
"""
|
"""
|
||||||
from .siphash import siphash
|
from .crypto.siphash import siphash
|
||||||
|
|
||||||
|
|
||||||
def bip158_basic_element_hash(script_pub_key, N, block_hash):
|
def bip158_basic_element_hash(script_pub_key, N, block_hash):
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ import os
|
|||||||
import random
|
import random
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from test_framework.secp256k1 import FE, G, GE
|
from test_framework.crypto.secp256k1 import FE, G, GE
|
||||||
|
|
||||||
# Precomputed constant square root of -3 (mod p).
|
# Precomputed constant square root of -3 (mod p).
|
||||||
MINUS_3_SQRT = FE(-3).sqrt()
|
MINUS_3_SQRT = FE(-3).sqrt()
|
||||||
File renamed without changes.
|
500 Internal Server Error
An error occurred: An error occurred Gitea Version: 28.1.0 |