Structs§
- AddBlock
- AddBlock
Reply - Block
Chunk - 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
. - Block
Chunk Reply - Check
Future Secret - CheckFutureSecret
- Check
Future Secret Reply - Check
Outpoint - Check
Outpoint Reply - Check
PubKey - CheckPubKey
- Check
PubKey Reply - Client
HsmFd - Connect a new client CLN only
- Client
HsmFd Reply - Debug
TxoProof - A debug wrapper around a TxoProof
- Derive
Secret - DeriveSecret
- Derive
Secret Reply - Ecdh
- Ecdh
Reply - Forget
Channel - Forget
Channel Reply - Forward
Watches - Forward
Watches Reply - GetChannel
Basepoints - GetChannel
Basepoints Reply - GetHeartbeat
- Get a serialized signed heartbeat
- GetHeartbeat
Reply - A serialized signed heartbeat
- GetPer
Commitment Point - Get per-commitment point n and optionally revoke a point n-2 by releasing the secret
- GetPer
Commitment Point2 - Get per-commitment point LDK only
- GetPer
Commitment Point2 Reply - GetPer
Commitment Point Reply - Hsmd
Init - HsmdDevPreinit2 does not return a reply hsmd Init CLN only
- Hsmd
Init2 - Signer Init for LDK LDK only
- Hsmd
Init2 Reply - Hsmd
Init Reply V2 - deprecated after CLN v23.05
- Hsmd
Init Reply V4 - Lock
Outpoint - Lock
Outpoint Reply - Memleak
- Memleak CLN only
- Memleak
Reply - NewChannel
- NewChannel
Reply - Node
Info - Get node public keys. Used by the frontend
- Node
Info Reply - Ping
- Ping request LDK only
- Pong
- Ping reply LDK only
- Preapprove
Invoice - PreapproveInvoice {
- Preapprove
Invoice Reply - Preapprove
Keysend - PreapproveKeysend {
- Preapprove
Keysend Reply - Remove
Block - Remove
Block Reply - Reverse
Watches - Reverse
Watches Reply - Revoke
Commitment Tx - CLN only
- Revoke
Commitment TxReply - Serial
Request Header - A serial request header
- Setup
Channel - Setup
Channel Reply - Sign
Anchorspend - Sign
Anchorspend Reply - Sign
AnyChannel Announcement - CLN only Same as SignChannelAnnouncement but called from lightningd
- Sign
AnyChannel Announcement Reply - Sign
AnyDelayed Payment ToUs - CLN only Same as SignDelayedPaymentToUs but called from lightningd
- Sign
AnyLocal Htlc Tx - CLN only Same as SignLocalHtlcTx but called from lightningd
- Sign
AnyPenalty ToUs - Same as SignPenaltyToUs but called from lightningd
- Sign
AnyRemote Htlc ToUs - CLN only Same as SignRemoteHtlcToUs but called from lightningd
- Sign
Bolt12 - SignBolt12
- Sign
Bolt12 Reply - Sign
Channel Announcement - Sign
Channel Announcement Reply - Sign
Channel Update - Sign channel update
- Sign
Channel Update Reply - Sign
Commitment Tx - CLN only
- Sign
Commitment TxReply - Sign
Commitment TxWith Htlcs Reply - Sign
Delayed Payment ToUs - CLN only
- Sign
Gossip Message - Sign
Gossip Message Reply - Sign
Htlc TxMingle - CLN only
- Sign
Htlc TxMingle Reply - Sign
Invoice - Sign invoice
- Sign
Invoice Reply - Sign
Local Commitment Tx2 - LDK only
- Sign
Local Htlc Tx - Sign
Local Htlc Tx2 - LDK message to sign a local HTLC transaction.
- Sign
Message - SignMessage
- Sign
Message Reply - Sign
Mutual Close Tx - CLN only
- Sign
Mutual Close Tx2 - LDK only
- Sign
Node Announcement - Sign
Node Announcement Reply - Sign
Penalty ToUs - Sign
Remote Commitment Tx - CLN only
- Sign
Remote Commitment Tx2 - LDK only
- Sign
Remote Htlc ToUs - CLN only
- Sign
Remote Htlc Tx - Sign
Splice Tx - CLN only
- Sign
TxReply - Sign
Withdrawal - Sign
Withdrawal Reply - Signer
Error - TipInfo
- TipInfo
Reply - Unknown
- An unknown message
- Unknown
Placeholder - Validate
Commitment Tx - CLN only
- Validate
Commitment Tx2 - LDK only
- Validate
Commitment TxReply - Validate
Revocation - Validate
Revocation Reply
Enums§
- Message
- An enum representing all messages we can read and write
Constants§
- CODE_
ORPHAN_ BLOCK - DEFAULT_
MAX_ PROTOCOL_ VERSION - Our default protcol version
(see also
HsmdInit::hsm_wire_min_version
, etc.) - MIN_
PROTOCOL_ VERSION - Our minimum protcol version
- PROTOCOL_
VERSION_ NO_ SECRET - PROTOCOL_
VERSION_ REVOKE - UNKNOWN_
PLACEHOLDER
Traits§
Functions§
- from_
reader - Read a BOLT message from a reader:
- from_
vec - Read a BOLT message from a vector:
- message_
name_ from_ vec - read
- Read a length framed BOLT message of any type:
- read_
message - Read a specific message type from a length framed BOLT message:
- read_
raw - Read a raw message from a length framed BOLT message:
- read_
serial_ request_ header - Read and return the serial request header Returns BadFraming if the magic is wrong.
- read_
serial_ response_ header - Read the serial response header and match the expected sequence number Returns BadFraming if the magic or sequence are wrong.
- write
- write_
serial_ request_ header - Write a serial request header prefixed by two magic bytes
- write_
serial_ response_ header - Write a serial response header that includes two magic bytes and two sequence bytes
- write_
vec