don't log private key

This commit is contained in:
hewigovens
2022-12-19 11:29:01 +09:00
committed by William Casarin
parent eb0b1061d8
commit d002654624

View File

@@ -69,7 +69,6 @@ func generate_new_keypair() -> Keypair {
let key = try! secp256k1.Signing.PrivateKey()
let privkey = hex_encode(key.rawRepresentation)
let pubkey = hex_encode(Data(key.publicKey.xonly.bytes))
print("generating privkey:\(privkey) pubkey:\(pubkey)")
return Keypair(pubkey: pubkey, privkey: privkey)
}