Module vls_protocol::msgs
source · Structs§
- Start or continue streaming a full block. Used when the compact proof has a false positive. The hash and the offset are provided to fail fast if there is a communication error. The stream of messages is always followed by an
AddBlock
with a proof typeExternalBlock
. - CheckFutureSecret
- CheckPubKey
- Connect a new client CLN only
- A debug wrapper around a TxoProof
- 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
- Developer setup for testing Must preceed
HsmdInit{,2}
message NOT FOR PRODUCTION USE - 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 {
- CLN only
- A serial request header
- CLN only Same as SignChannelAnnouncement but called from lightningd
- 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
- CLN only
- Sign invoice
- LDK only
- SignMessage
- CLN only
- LDK only
- CLN only
- LDK only
- CLN only
- CLN only
- An unknown message
- CLN only
- LDK only
Enums§
- An enum representing all messages we can read and write
Constants§
- Our default protcol version (see also
HsmdInit::hsm_wire_min_version
, etc.) - Our minimum protcol version
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