mirror of
https://gitlab.com/pulsechaincom/staking-deposit-cli.git
synced 2025-01-10 13:01:22 +00:00
353c40215f
* dev: (22 commits) Remove BLS incompatability warning Adds preproduction warning Adds typing & Moves global variables into pytest function args Linting fixes Test key_info != b'' import pytest into test_tree Apply suggestions from @hwwhww's code review Fix lint Add Altona setting Remove extra newline (lint) Update tests for new EIP2333 (bls v2 compliant HKDF_mod_r) Rename json file fields Create uuid at execution time instead of class attribute Add uuid test Fix key path Add Witti gitignore dist/ Revert to DepositMessage & DepositData as per spec Add fork_version adds build/ to .gitignore ...
21 lines
491 B
Python
21 lines
491 B
Python
import os
|
|
|
|
|
|
ZERO_BYTES32 = b'\x00' * 32
|
|
|
|
# Spec constants
|
|
DOMAIN_DEPOSIT = bytes.fromhex('03000000')
|
|
BLS_WITHDRAWAL_PREFIX = bytes.fromhex('00')
|
|
|
|
MIN_DEPOSIT_AMOUNT = 2 ** 0 * 10 ** 9
|
|
MAX_DEPOSIT_AMOUNT = 2 ** 5 * 10 ** 9
|
|
|
|
|
|
# File/folder constants
|
|
WORD_LISTS_PATH = os.path.join('eth2deposit', 'key_handling', 'key_derivation', 'word_lists')
|
|
DEFAULT_VALIDATOR_KEYS_FOLDER_NAME = 'validator_keys'
|
|
|
|
|
|
# Sundry constants
|
|
UNICODE_CONTROL_CHARS = list(range(0x00, 0x20)) + list(range(0x7F, 0xA0))
|