Try to solve the stack smashing / discriminant changes object branch

This commit is contained in:
Mamy André-Ratsimbazafy 2020-03-04 23:26:39 +01:00 committed by tersec
parent 31bd13a5d3
commit 3c140d0c3d
1 changed files with 1 additions and 1 deletions

View File

@ -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