rpc: add SignMessage and VerifyMessage interface

This commit allows users to sign messages with their node's private key
with the SignMessage interface. The signatures are zbase32 encoded for
human readability/paste-ability.  Others users can verify that a message
was signed by another node in their channel database with the
VerifyMessage interface.
This commit is contained in:
Philip Hayes authored and Olaoluwa Osuntokun committed 2017-05-12 14:21:19 -07:00
1 parent 2486097554
commit 2249215260
7 files changed
+694 -333

No files matched your search

+38
View File
@@ -1706,6 +1706,23 @@
"lnrpcSetAliasResponse": {
"type": "object"
},
"lnrpcSignMessageRequest": {
"type": "object",
"properties": {
"msg": {
"type": "string",
"format": "byte"
}
}
},
"lnrpcSignMessageResponse": {
"type": "object",
"properties": {
"signature": {
"type": "string"
}
}
},
"lnrpcStopRequest": {
"type": "object"
},
@@ -1754,6 +1771,27 @@
}
}
},
"lnrpcVerifyMessageRequest": {
"type": "object",
"properties": {
"msg": {
"type": "string",
"format": "byte"
},
"signature": {
"type": "string"
}
}
},
"lnrpcVerifyMessageResponse": {
"type": "object",
"properties": {
"valid": {
"type": "boolean",
"format": "boolean"
}
}
},
"lnrpcWalletBalanceRequest": {
"type": "object",
"properties": {