mirror of https://github.com/nucypher/nucypher.git
Move known test enrico private key to tests constants file.
parent
e81512d2d7
commit
6d85c3e3bb
|
@ -3,7 +3,6 @@ import time
|
|||
|
||||
import click
|
||||
import maya
|
||||
from hexbytes import HexBytes
|
||||
from nucypher_core.ferveo import DkgPublicKey
|
||||
from web3 import Web3
|
||||
|
||||
|
@ -19,17 +18,12 @@ from nucypher.crypto.powers import TransactingPower
|
|||
from nucypher.policy.conditions.lingo import ConditionLingo
|
||||
from nucypher.utilities.emitters import StdoutEmitter
|
||||
from nucypher.utilities.logging import GlobalLoggerSettings
|
||||
from tests.constants import GLOBAL_ALLOW_LIST
|
||||
from tests.constants import DEFAULT_TEST_ENRICO_PRIVATE_KEY, GLOBAL_ALLOW_LIST
|
||||
|
||||
GlobalLoggerSettings.start_console_logging()
|
||||
|
||||
emitter = StdoutEmitter(verbosity=2)
|
||||
|
||||
# private key for wallet address '0x070a85eD1Ddb44ecD07e746235bE0B959ff5b30A'
|
||||
DEFAULT_ENRICO_PRIVATE_KEY = HexBytes(
|
||||
"0x900edb9e8214b2353f82aa195e915128f419a92cfb8bbc0f4784f10ef4112b86"
|
||||
)
|
||||
|
||||
|
||||
def get_transacting_power(signer: Signer):
|
||||
account_address = signer.accounts[0]
|
||||
|
@ -335,7 +329,7 @@ def nucypher_dkg(
|
|||
if not use_random_enrico:
|
||||
# use known enrico address
|
||||
print("Using default Enrico signing account")
|
||||
private_key = DEFAULT_ENRICO_PRIVATE_KEY
|
||||
private_key = DEFAULT_TEST_ENRICO_PRIVATE_KEY
|
||||
|
||||
enrico_signer = InMemorySigner(private_key)
|
||||
enrico_account = enrico_signer.accounts[0]
|
||||
|
|
|
@ -4,6 +4,7 @@ from datetime import datetime
|
|||
from pathlib import Path
|
||||
from random import SystemRandom
|
||||
|
||||
from hexbytes import HexBytes
|
||||
from web3 import Web3
|
||||
|
||||
from nucypher.blockchain.eth.token import NU
|
||||
|
@ -79,6 +80,15 @@ __valid_password_chars = string.ascii_uppercase + string.ascii_lowercase + strin
|
|||
|
||||
INSECURE_DEVELOPMENT_PASSWORD = ''.join(SystemRandom().choice(__valid_password_chars) for _ in range(32))
|
||||
|
||||
#
|
||||
# Known Enrico signer
|
||||
#
|
||||
|
||||
# private key for wallet address '0x070a85eD1Ddb44ecD07e746235bE0B959ff5b30A'
|
||||
DEFAULT_TEST_ENRICO_PRIVATE_KEY = HexBytes(
|
||||
"0x900edb9e8214b2353f82aa195e915128f419a92cfb8bbc0f4784f10ef4112b86"
|
||||
)
|
||||
|
||||
#
|
||||
# Temporary Directories and Files
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue