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-MAKESECRET(7) LIGHTNING-MAKESECRET(7)

lightning-makesecret -- Command for deriving pseudorandom key from HSM

makesecret [hex] [string]

The makesecret RPC command derives a secret key from the HSM_secret.

  • hex (hex, optional): One of hex or string must be specified: hex can be any hex data.

  • string (string, optional): One of hex or string must be specified: string is a UTF-8 string interpreted literally.

On success, an object is returned, containing:

secret (secret): The pseudorandom key derived from HSM_secret.

The following error codes may occur:

-1: Catchall nonspecific error.

Aditya <aditya.sharma20111@gmail.com> is mainly responsible.

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

Example 1:

Request:

$ lightning-cli makesecret "73636220736563726574"

{

"id": "example:makesecret#1",
"method": "makesecret",
"params": [
"73636220736563726574"
] }

Response:

{

"secret": "82d3e65651ac89124448cb88b5f4cd009f6c321f58ada0fca6e9e3f2d1c5889e" }

Example 2:

Request:

$ lightning-cli makesecret -k "string"="scb secret"

{

"id": "example:makesecret#2",
"method": "makesecret",
"params": {
"string": "scb secret"
} }

Response:

{

"secret": "82d3e65651ac89124448cb88b5f4cd009f6c321f58ada0fca6e9e3f2d1c5889e" }
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.