Update validator keygen
This commit is contained in:
parent
14bc9e60ca
commit
65d668c3f6
|
@ -37,9 +37,14 @@ proc generateDeposits*(totalValidators: int,
|
|||
debug "Rewriting unreadable deposit", err = err.formatMsg(depositFn)
|
||||
discard
|
||||
|
||||
let
|
||||
privKey = if randomKeys: ValidatorPrivKey.random
|
||||
else: makeInteropPrivKey(i)
|
||||
var
|
||||
privkey{.noInit.}: ValidatorPrivKey
|
||||
pubKey{.noInit.}: ValidatorPubKey
|
||||
|
||||
if randomKeys:
|
||||
(pubKey, privKey) = newKeyPair()
|
||||
else:
|
||||
privKey = makeInteropPrivKey(i)
|
||||
pubKey = privKey.pubKey()
|
||||
|
||||
let dp = makeDeposit(pubKey, privKey)
|
||||
|
|
Loading…
Reference in New Issue