Support for your own BOLT implementation
By dumping key log file
Your own BOLT implementation can use lightning-dissector by dumping key log file.
Whenever key lotation happens, BOLT implementation write out <16byte MAC & key> of "first BOLT packet" to key log file.
Every line of the key log file consists of:
<16-byte MAC of the encrypted message length> <rk or sk to decrypt that message>
BOLT #8 describes each item in detail.
Both items must be encoded as hex string like:
Implementations must insert a new line to the key log file when key rotation happens.
When you use Wireshark, you can specify key log file by Wireshark preference
Protocols -> LIGHTNING -> Key log file.