From 1b0807444b80a12cd2d1ae3bff80e79214e8d30a Mon Sep 17 00:00:00 2001 From: ZmnSCPxj jxPCSnmZ Date: Tue, 4 Feb 2020 11:07:52 +0800 Subject: [PATCH] hsmd/hsmd.c: Correct a comment. ChangeLog-none --- hsmd/hsmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hsmd/hsmd.c b/hsmd/hsmd.c index cc4224365..93c202bd9 100644 --- a/hsmd/hsmd.c +++ b/hsmd/hsmd.c @@ -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) {