GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
LIGHTNING-EXPOSESECRET(7) LIGHTNING-EXPOSESECRET(7)

lightning-exposesecret -- Command for extracting the hsm_secret file for backup

exposesecret passphrase [identifier]

The exposesecret RPC command allows you to read the HSM secret, and does not work with encrypted hsm secrets. It only operates if the exposesecret-passphrase has been set in the configuration.

  • passphrase (string): The passphrase, which must match the exposesecret-passphrase configuration parameter.

  • identifier (string, optional): A four-character, valid lowercase bech32 string (not 1, i, o or b) to use in the resulting BIP-93 output. If not specified, this is generated from the node alias.

On success, an object is returned, containing:

  • identifier (string): The four-character identifier used in the codex32 output. Redundant, but presented separately for clarity.

  • codex32 (string): The full codex32-encoded (i.e. BIP-93 encoded) HSM secret.

Rusty Russell <rusty@rustcorp.com.au> is mainly responsible.

lightning-hsmtool(8)

Main web site: https://github.com/ElementsProject/lightning

Example 1:

Request:

$ lightning-cli exposesecret -k "passphrase"="test_exposesecret"

{

"id": "example:exposesecret#1",
"method": "exposesecret",
"params": {
"passphrase": "test_exposesecret"
} }

Response:

{

"identifier": "luea",
"codex32": "cl10lueasd35kw6r5de5kueedxyesqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqanvrktzhlhusz" }

Example 2:

Request:

$ lightning-cli exposesecret "test_exposesecret" "cln2"

{

"id": "example:exposesecret#2",
"method": "exposesecret",
"params": [
"test_exposesecret",
"cln2"
] }

Response:

{

"identifier": "cln2",
"codex32": "cl10cln2sd35kw6r5de5kueedxyesqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqn9lcvcu7cez4s" }
Core Lightning v25.02.2

Search for    or go to Top of page |  Section 7 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.