core-lightning/doc/lightning-makesecret.7.md
Rusty Russell 49fe1c8ed7 lightningd: have makesecret take hex or string (just like datastore)
Changelog-Added: JSON-RPC: `makesecret` can take a string argument instead of hex.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-09-29 16:10:57 +09:30

996 B

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

SYNOPSIS

makesecret [hex] [string]

DESCRIPTION

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

One of hex or string must be specified: hex can be any hex data, string is a UTF-8 string interpreted literally.

RETURN VALUE

On success, an object is returned, containing:

  • secret (secret): the pseudorandom key derived from HSM_secret (always 64 characters)

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