2021-03-27 00:42:23 +00:00
|
|
|
# Mainnet preset - Custody Game
|
2021-03-26 23:46:04 +00:00
|
|
|
|
|
|
|
# Time parameters
|
|
|
|
# ---------------------------------------------------------------
|
|
|
|
# 2**1 (= 2) epochs, 12.8 minutes
|
|
|
|
RANDAO_PENALTY_EPOCHS: 2
|
|
|
|
# 2**15 (= 32,768) epochs, ~146 days
|
|
|
|
EARLY_DERIVED_SECRET_PENALTY_MAX_FUTURE_EPOCHS: 32768
|
|
|
|
# 2**14 (= 16,384) epochs ~73 days
|
|
|
|
EPOCHS_PER_CUSTODY_PERIOD: 16384
|
|
|
|
# 2**11 (= 2,048) epochs, ~9 days
|
|
|
|
CUSTODY_PERIOD_TO_RANDAO_PADDING: 2048
|
|
|
|
# 2**15 (= 32,768) epochs, ~146 days
|
|
|
|
MAX_CHUNK_CHALLENGE_DELAY: 32768
|
|
|
|
|
|
|
|
# Misc parameters
|
|
|
|
# ---------------------------------------------------------------
|
|
|
|
# 2**256 - 189
|
|
|
|
CUSTODY_PRIME: 115792089237316195423570985008687907853269984665640564039457584007913129639747
|
|
|
|
# 3
|
|
|
|
CUSTODY_SECRETS: 3
|
|
|
|
# 1/1024 chance of custody bit 1
|
|
|
|
CUSTODY_PROBABILITY_EXPONENT: 10
|
|
|
|
|
|
|
|
# Max operations
|
|
|
|
# ---------------------------------------------------------------
|
|
|
|
# 2**8 (= 256)
|
|
|
|
MAX_CUSTODY_KEY_REVEALS: 256
|
|
|
|
# 2**0 (= 1)
|
|
|
|
MAX_EARLY_DERIVED_SECRET_REVEALS: 1
|
|
|
|
# 2**2 (= 2)
|
|
|
|
MAX_CUSTODY_CHUNK_CHALLENGES: 4
|
|
|
|
# 2** 4 (= 16)
|
|
|
|
MAX_CUSTODY_CHUNK_CHALLENGE_RESP: 16
|
|
|
|
# 2**0 (= 1)
|
|
|
|
MAX_CUSTODY_SLASHINGS: 1
|
|
|
|
|
|
|
|
# Reward and penalty quotients
|
|
|
|
# ---------------------------------------------------------------
|
|
|
|
EARLY_DERIVED_SECRET_REVEAL_SLOT_REWARD_MULTIPLE: 2
|
|
|
|
# 2**8 (= 256)
|
|
|
|
MINOR_REWARD_QUOTIENT: 256
|
|
|
|
|
|
|
|
# Signature domains
|
|
|
|
# ---------------------------------------------------------------
|
|
|
|
DOMAIN_CUSTODY_BIT_SLASHING: 0x83000000
|
|
|
|
DOMAIN_LIGHT_SELECTION_PROOF: 0x84000000
|
|
|
|
DOMAIN_LIGHT_AGGREGATE_AND_PROOF: 0x85000000
|