lightning-hsmtool.8.md: Update documentation showing new method

[ Modified to extend generatehsm --RR ]
This commit is contained in:
bstin 2024-11-13 17:52:08 +10:30 committed by Rusty Russell
parent b7d77b49df
commit fb65ec9063

View File

@ -53,8 +53,8 @@ and is usually no greater than the number of channels that the node has
ever had.
Specify *password* if the `hsm_secret_path` is encrypted.
**generatehsm** *hsm\_secret\_path*
Generates a new hsm\_secret using BIP39.
**generatehsm** *hsm\_secret\_path* \[*lang* *seed\_phrase* \[*passphrase*\]\]
Generates a new hsm\_secret using BIP39. If lang, seed\_phrase and optional passphrase are not provided they will be prompted for. *lang* can be "en" (English), "es" (Spanish), "fr" (French), "it" ("Italian"), "jp" (Japanese), "zhs" (Chinese Simplified) or "zht" ("Chinese Traditional"). Note that the seed phrase consists of multiple words, so should be surrounded by quotes.
**checkhsm** *hsm\_secret\_path*
Checks that hsm\_secret matches a BIP39 passphrase.
@ -117,4 +117,3 @@ COPYING
Note: the modules in the ccan/ directory have their own licenses, but
the rest of the code is covered by the BSD-style MIT license.
Main web site: <https://github.com/ElementsProject/lightning>