2020-02-28 21:02:11 +00:00
|
|
|
import os
|
|
|
|
|
|
|
|
|
2020-05-23 16:19:41 +00:00
|
|
|
ZERO_BYTES32 = b'\x00' * 32
|
|
|
|
|
2020-08-24 14:01:48 +00:00
|
|
|
# Eth2-spec constants taken from https://github.com/ethereum/eth2.0-specs/blob/dev/specs/phase0/beacon-chain.md
|
2020-02-28 12:02:29 +00:00
|
|
|
DOMAIN_DEPOSIT = bytes.fromhex('03000000')
|
2020-05-21 14:10:03 +00:00
|
|
|
BLS_WITHDRAWAL_PREFIX = bytes.fromhex('00')
|
2020-02-28 12:02:29 +00:00
|
|
|
|
2020-02-28 15:35:52 +00:00
|
|
|
MIN_DEPOSIT_AMOUNT = 2 ** 0 * 10 ** 9
|
|
|
|
MAX_DEPOSIT_AMOUNT = 2 ** 5 * 10 ** 9
|
|
|
|
|
2020-05-08 20:11:02 +00:00
|
|
|
|
2020-05-21 14:10:03 +00:00
|
|
|
# File/folder constants
|
|
|
|
WORD_LISTS_PATH = os.path.join('eth2deposit', 'key_handling', 'key_derivation', 'word_lists')
|
2020-05-08 20:11:02 +00:00
|
|
|
DEFAULT_VALIDATOR_KEYS_FOLDER_NAME = 'validator_keys'
|
2020-06-26 14:10:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Sundry constants
|
|
|
|
UNICODE_CONTROL_CHARS = list(range(0x00, 0x20)) + list(range(0x7F, 0xA0))
|