eth2.0-specs/test_generators/operations/keys.py

8 lines
235 B
Python
Raw Normal View History

2019-04-11 14:53:32 +00:00
from py_ecc import bls
from eth2spec.phase0.spec import hash
privkeys = list(range(1, 101))
pubkeys = [bls.privtopub(k) for k in privkeys]
# Insecure, but easier to follow
withdrawal_creds = [hash(bls.privtopub(k)) for k in privkeys]