Correct template parameter naming

This commit is contained in:
Gruruya 2023-04-05 17:49:48 -04:00
parent 359a54ab44
commit 78a0f867a2
1 changed files with 2 additions and 2 deletions

View File

@ -474,14 +474,14 @@ func signRecoverable*(key: SkSecretKey, msg: SkMessage): SkRecoverableSignature
doAssert res == 1, "cannot create recoverable signature, key invalid?"
SkRecoverableSignature(data: data)
template signSchnorrImpl(makeKeypair: untyped): untyped {.dirty.} =
template signSchnorrImpl(signMsg: untyped): untyped {.dirty.} =
var kp: secp256k1_keypair
let res = secp256k1_keypair_create(
getContext(), addr kp, key.data.baseAddr)
doAssert res == 1, "cannot create keypair, key invalid?"
var data {.noinit.}: array[SkRawSchnorrSignatureSize, byte]
let res2 = makeKeypair
let res2 = signMsg
doAssert res2 == 1, "cannot create signature, key invalid?"
SkSchnorrSignature(data: data)