2019-05-15 16:36:32 +00:00
|
|
|
from py_ecc import bls
|
2019-05-17 18:54:34 +00:00
|
|
|
from eth2spec.phase0 import spec
|
2019-05-15 16:36:32 +00:00
|
|
|
|
2019-05-17 18:54:34 +00:00
|
|
|
privkeys = [i + 1 for i in range(spec.SHARD_COUNT * 8)]
|
2019-05-15 16:36:32 +00:00
|
|
|
pubkeys = [bls.privtopub(privkey) for privkey in privkeys]
|
|
|
|
pubkey_to_privkey = {pubkey: privkey for privkey, pubkey in zip(privkeys, pubkeys)}
|