mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
hsmd/hsmd.c: Correct a comment.
ChangeLog-none
This commit is contained in:
committed by
Rusty Russell
parent
f8a21f16c9
commit
1b0807444b
@@ -750,8 +750,8 @@ static struct io_plan *handle_ecdh(struct io_conn *conn,
|
|||||||
if (!fromwire_hsm_ecdh_req(msg_in, &point))
|
if (!fromwire_hsm_ecdh_req(msg_in, &point))
|
||||||
return bad_req(conn, c, msg_in);
|
return bad_req(conn, c, msg_in);
|
||||||
|
|
||||||
/*~ We simply use the secp256k1_ecdh function: if ss.data is invalid,
|
/*~ We simply use the secp256k1_ecdh function: if privkey.secret.data is invalid,
|
||||||
* we kill them for bad randomness (~1 in 2^127 if ss.data is random) */
|
* we kill them for bad randomness (~1 in 2^127 if privkey.secret.data is random) */
|
||||||
node_key(&privkey, NULL);
|
node_key(&privkey, NULL);
|
||||||
if (secp256k1_ecdh(secp256k1_ctx, ss.data, &point.pubkey,
|
if (secp256k1_ecdh(secp256k1_ctx, ss.data, &point.pubkey,
|
||||||
privkey.secret.data, NULL, NULL) != 1) {
|
privkey.secret.data, NULL, NULL) != 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user