Less warnings (#813)

Co-authored-by: Diego <diego@status.im>
This commit is contained in:
Tanguy
2023-05-18 10:24:17 +02:00
committed by GitHub
parent 7d6bc545e0
commit 225accd11b
94 changed files with 918 additions and 587 deletions

View File

@@ -35,9 +35,6 @@ type
SkSignature* = distinct secp256k1.SkSignature
SkKeyPair* = distinct secp256k1.SkKeyPair
template pubkey*(v: SkKeyPair): SkPublicKey = SkPublicKey(secp256k1.SkKeyPair(v).pubkey)
template seckey*(v: SkKeyPair): SkPrivateKey = SkPrivateKey(secp256k1.SkKeyPair(v).seckey)
proc random*(t: typedesc[SkPrivateKey], rng: var HmacDrbgContext): SkPrivateKey =
#TODO is there a better way?
var rngPtr = addr rng