2022-06-24 03:39:12 +02:00
|
|
|
lightning-makesecret -- Command for deriving pseudorandom key from HSM
|
|
|
|
=====================================================================
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
|
2022-09-29 05:48:53 +02:00
|
|
|
**makesecret** [*hex*] [*string*]
|
2022-06-24 03:39:12 +02:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
2022-11-11 02:44:56 +01:00
|
|
|
The **makesecret** RPC command derives a secret key from the HSM\_secret.
|
2022-06-24 03:39:12 +02:00
|
|
|
|
2022-09-29 05:48:53 +02:00
|
|
|
One of *hex* or *string* must be specified: *hex* can be any hex data,
|
|
|
|
*string* is a UTF-8 string interpreted literally.
|
2022-06-24 03:39:12 +02:00
|
|
|
|
|
|
|
RETURN VALUE
|
|
|
|
------------
|
|
|
|
|
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-START)
|
|
|
|
On success, an object is returned, containing:
|
2022-09-05 23:33:09 +02:00
|
|
|
|
2022-11-11 03:03:13 +01:00
|
|
|
- **secret** (secret): the pseudorandom key derived from HSM\_secret (always 64 characters)
|
2022-06-24 03:39:12 +02:00
|
|
|
|
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-END)
|
|
|
|
|
|
|
|
|
|
|
|
The following error codes may occur:
|
|
|
|
- -1: Catchall nonspecific error.
|
|
|
|
|
|
|
|
AUTHOR
|
|
|
|
------
|
|
|
|
|
|
|
|
Aditya <<aditya.sharma20111@gmail.com>> is mainly responsible.
|
|
|
|
|
|
|
|
RESOURCES
|
|
|
|
---------
|
|
|
|
|
|
|
|
Main web site: <https://github.com/ElementsProject/lightning>
|
|
|
|
|
2022-11-11 03:03:13 +01:00
|
|
|
[comment]: # ( SHA256STAMP:5560433bde5292bad74eab0b688d8e6baa0a51562670a4f486d41b4eb2103ca8)
|