don't log private key
This commit is contained in:
committed by
William Casarin
parent
eb0b1061d8
commit
d002654624
@@ -69,7 +69,6 @@ func generate_new_keypair() -> Keypair {
|
|||||||
let key = try! secp256k1.Signing.PrivateKey()
|
let key = try! secp256k1.Signing.PrivateKey()
|
||||||
let privkey = hex_encode(key.rawRepresentation)
|
let privkey = hex_encode(key.rawRepresentation)
|
||||||
let pubkey = hex_encode(Data(key.publicKey.xonly.bytes))
|
let pubkey = hex_encode(Data(key.publicKey.xonly.bytes))
|
||||||
print("generating privkey:\(privkey) pubkey:\(pubkey)")
|
|
||||||
return Keypair(pubkey: pubkey, privkey: privkey)
|
return Keypair(pubkey: pubkey, privkey: privkey)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user