2019-10-13 07:19:37 +02:00
lightning-signmessage -- Command to create a signature from this node
=====================================================================
SYNOPSIS
--------
**signmessage** *message*
DESCRIPTION
-----------
The **signmessage** RPC command creates a digital signature of
*message* using this node's secret key. A receiver who knows your
node's *id* and the *message* can be sure that the resulting signature could
only be created by something with access to this node's secret key.
*message* must be less that 65536 characters.
RETURN VALUE
------------
2021-06-16 03:10:17 +02:00
[comment]: # (GENERATE-FROM-SCHEMA-START)
On success, an object is returned, containing:
2022-09-05 23:33:09 +02:00
2021-06-16 03:10:17 +02:00
- **signature** (hex): The signature (always 128 characters)
- **recid** (hex): The recovery id (0, 1, 2 or 3) (always 2 characters)
2023-01-10 00:51:01 +01:00
- **zbase** (string): *signature* and *recid* encoded in a style compatible with **lnd** 's [SignMessageRequest ](https://api.lightning.community/#grpc-request-signmessagerequest )
2021-09-03 12:07:59 +02:00
2021-06-16 03:10:17 +02:00
[comment]: # (GENERATE-FROM-SCHEMA-END)
2019-10-13 07:19:37 +02:00
AUTHOR
------
Rusty Russell < < rusty @ rustcorp . com . au > > is mainly responsible.
SEE ALSO
--------
lightning-checkmessage(7)
RESOURCES
---------
Main web site: < https: / / github . com / ElementsProject / lightning >
2020-08-25 03:33:16 +02:00
2023-01-30 07:24:16 +01:00
[comment]: # ( SHA256STAMP:04bac6c24dea9dbf1f0d42015b1452875154d4f270e264fbad5145ed4b747448)