Impervious
Search…
Signing
Sign and Verify messages with your LND node

Overview

The Signing API is very simple, and simply allows for signing and verification of messages using the Impervious node's underlying LND node. Potential applications of this are key exchange mechanisms and trust models.

proto/imp/api/signing/signing.proto

Allows an Imp node to sign and verify messaging with the connected LND

Signing

Signing service allows an Imp node to sign and verify messages with the connected lightning node.
Method Name
Request Type
Response Type
Description
SignMessage
SignRequest
SignResponse
SignMessage signs a message with your node's private key.
VerifySignature
VerifyRequest
VerifyResponse
Verifymessage verifies a message was signed from another node.

HTTP bindings

Method Name
Method
Pattern
SignMessage
POST
/v1/sign
VerifySignature
POST
/v1/verify

SignRequest

Represents a request to sign a message
Field
Type
Label
Description
msg
string
message to be signed

SignResponse

Represents a response from a signature request
Field
Type
Label
Description
signature
string
signature of signed message

VerifyRequest

Represents a request to verify a signature and message
Field
Type
Label
Description
msg
string
message to be verified
signature
string
signature of message

VerifyResponse

Represents a response back from a verification request
Field
Type
Label
Description
result
bool
result of signature verification

Scalar Value Types

.proto Type
C++
Java
Python
Go
C#
PHP
Ruby
double
double
double
float
float64
double
float
Float
float
float
float
float
float32
float
float
Float
int32
int32
int
int
int32
int
integer
Bignum or Fixnum (as required)
int64
int64
long
int/long
int64
long
integer/string
Bignum
uint32
uint32
int
int/long
uint32
uint
integer
Bignum or Fixnum (as required)
uint64
uint64
long
int/long
uint64
ulong
integer/string
Bignum or Fixnum (as required)
sint32
int32
int
int
int32
int
integer
Bignum or Fixnum (as required)
sint64
int64
long
int/long
int64
long
integer/string
Bignum
fixed32
uint32
int
int
uint32
uint
integer
Bignum or Fixnum (as required)
fixed64
uint64
long
int/long
uint64
ulong
integer/string
Bignum
sfixed32
int32
int
int
int32
int
integer
Bignum or Fixnum (as required)
sfixed64
int64
long
int/long
int64
long
integer/string
Bignum
bool
bool
boolean
boolean
bool
bool
boolean
TrueClass/FalseClass
string
string
String
str/unicode
string
string
string
String (UTF-8)
bytes
string
ByteString
str
[]byte
ByteString
string
String (ASCII-8BIT)
Last modified 2mo ago