Try to solve the stack smashing / discriminant changes object branch
This commit is contained in:
parent
31bd13a5d3
commit
3c140d0c3d
|
@ -195,7 +195,7 @@ proc newKeyPair*(): tuple[pub: ValidatorPubKey, priv: ValidatorPrivKey] {.noInit
|
||||||
let written = randomBytes(ikm)
|
let written = randomBytes(ikm)
|
||||||
doAssert written >= 32, "Key generation failure"
|
doAssert written >= 32, "Key generation failure"
|
||||||
|
|
||||||
result.pub.kind = Real
|
result.pub = ValidatorPubKey(kind: Real)
|
||||||
doAssert keyGen(ikm, result.pub.blsValue, result.priv), "Key generation failure"
|
doAssert keyGen(ikm, result.pub.blsValue, result.priv), "Key generation failure"
|
||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
|
|
Loading…
Reference in New Issue