mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-09 10:22:00 +00:00
7 lines
261 B
Python
7 lines
261 B
Python
from py_ecc import bls
|
|
from eth2spec.phase0 import spec
|
|
|
|
privkeys = [i + 1 for i in range(spec.SLOTS_PER_EPOCH * 16)]
|
|
pubkeys = [bls.privtopub(privkey) for privkey in privkeys]
|
|
pubkey_to_privkey = {pubkey: privkey for privkey, pubkey in zip(privkeys, pubkeys)}
|