Consistently apply {.noinit.} pragma

This commit is contained in:
Gruruya 2023-04-05 17:54:06 -04:00
parent 78a0f867a2
commit 340606cb8c
1 changed files with 1 additions and 1 deletions

View File

@ -475,7 +475,7 @@ func signRecoverable*(key: SkSecretKey, msg: SkMessage): SkRecoverableSignature
SkRecoverableSignature(data: data)
template signSchnorrImpl(signMsg: untyped): untyped {.dirty.} =
var kp: secp256k1_keypair
var kp {.noinit.}: secp256k1_keypair
let res = secp256k1_keypair_create(
getContext(), addr kp, key.data.baseAddr)
doAssert res == 1, "cannot create keypair, key invalid?"