Module vls_protocol::msgs
source · Structs
- CheckFutureSecret
- Connect a new client CLN only
- DeriveSecret
- Get a serialized signed heartbeat
- A serialized signed heartbeat
- Get per-commitment point n and optionally revoke a point n-2 by releasing the secret
- Get per-commitment point LDK only
- hsmd Init CLN only
- Signer Init for LDK LDK only
- HsmdInitReplyV1Deprecateddeprecated in CLN
- Memleak CLN only
- Get node public keys. Used by the frontend
- Store key-value pairs to persistent storage - potentially in the cloud. This message may be sent by the signer in response to a normal API message, before the actual API response. The front end should reply with
PersistReply
- Result of a
Persist
. - Ping request LDK only
- Ping reply LDK only
- PreapproveInvoice {
- PreapproveKeysend {
- A serial request header
- SignBolt12
- Sign channel update
- CLN only
- CLN only
- Sign invoice
- LDK only
- SignMessage
- CLN only
- LDK only
- CLN only
- LDK only
- CLN only
- An unknown message
- CLN only
- LDK only
Enums
- An enum representing all messages we can read and write
Traits
- Serialize a message with a type prefix, in BOLT style
Functions
- Read a BOLT message from a reader:
- Read a BOLT message from a vector:
- Read a length framed BOLT message of any type:
- Read a specific message type from a length framed BOLT message:
- Read a raw message from a length framed BOLT message:
- Read and return the serial request header Returns BadFraming if the magic is wrong.
- Read the serial response header and match the expected sequence number Returns BadFraming if the magic or sequence are wrong.
- Write a serial request header prefixed by two magic bytes
- Write a serial response header that includes two magic bytes and two sequence bytes