hsmd: use the new mnemonic-compatible hsm_secret routines.

Changelog-Changed: hsmd: New nodes will now be created with a BIP-39 12-word phrase as their root secret.
Changelog-Deprecated: config: `encrypted-hsm` to require a passphrase (use `hsm-passphrase`).
Changelog-Added: config: `hsm-passphrase` indicates we should use a manual passphrase with the hsm secret.
This commit is contained in:
Sangbida Chaudhuri
2025-10-24 13:57:44 +10:30
committed by Rusty Russell
parent e3fe739f64
commit 218dc2fe20
11 changed files with 315 additions and 216 deletions

View File

@@ -51,7 +51,7 @@
#include <common/deprecation.h>
#include <common/ecdh_hsmd.h>
#include <common/errcode.h>
#include <common/hsm_encryption.h>
#include <common/hsm_secret.h>
#include <common/memleak.h>
#include <common/timeout.h>
#include <common/trace.h>
@@ -231,6 +231,7 @@ static struct lightningd *new_lightningd(const tal_t *ctx)
ld->alias = NULL;
ld->rgb = NULL;
ld->recover = NULL;
ld->hsm_passphrase = NULL;
list_head_init(&ld->connects);
list_head_init(&ld->waitsendpay_commands);
list_head_init(&ld->close_commands);