Skip to content

Commit

Permalink
hsmd/hsmd.c: Correct a comment.
Browse files Browse the repository at this point in the history
ChangeLog-none
  • Loading branch information
ZmnSCPxj authored and rustyrussell committed Feb 28, 2020
1 parent f8a21f1 commit 1b08074
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hsmd/hsmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -750,8 +750,8 @@ static struct io_plan *handle_ecdh(struct io_conn *conn,
if (!fromwire_hsm_ecdh_req(msg_in, &point))
return bad_req(conn, c, msg_in);

/*~ We simply use the secp256k1_ecdh function: if ss.data is invalid,
* we kill them for bad randomness (~1 in 2^127 if ss.data is random) */
/*~ We simply use the secp256k1_ecdh function: if privkey.secret.data is invalid,
* we kill them for bad randomness (~1 in 2^127 if privkey.secret.data is random) */
node_key(&privkey, NULL);
if (secp256k1_ecdh(secp256k1_ctx, ss.data, &point.pubkey,
privkey.secret.data, NULL, NULL) != 1) {
Expand Down

0 comments on commit 1b08074

Please sign in to comment.