Module vls_protocol::msgs
source · Structs
- CheckFutureSecret
- CheckPubKey
- 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
- deprecated after CLN v23.05
- Memleak CLN only
- Get node public keys. Used by the frontend
- Ping request LDK only
- Ping reply LDK only
- PreapproveInvoice {
- PreapproveKeysend {
- A serial request header
- CLN only Same as SignDelayedPaymentToUs but called from lightningd
- CLN only Same as SignLocalHtlcTx but called from lightningd
- Same as SignPenaltyToUs but called from lightningd
- CLN only Same as SignRemoteHtlcToUs but called from lightningd
- 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