lnd: add aux data parser

This commit adds an optional data parser that can inspect and in-place
format custom data of certain RPC messages.
We don't add an implementation of the interface itself, as that will be
provided by external components when packaging up lnd as a bundle with
other software.
This commit is contained in:
Oliver Gugger committed 2024-09-18 19:07:27 +02:00
1 parent 5e1a98cd43
commit d49da574e3
4 files changed
+143 -5

No files matched your search

+4
View File
@@ -178,6 +178,10 @@ type AuxComponents struct {
// AuxSigner is an optional signer that can be used to sign auxiliary
// leaves for certain custom channel types.
AuxSigner fn.Option[lnwallet.AuxSigner]
// AuxDataParser is an optional data parser that can be used to parse
// auxiliary data for certain custom channel types.
AuxDataParser fn.Option[AuxDataParser]
}
// DefaultWalletImpl is the default implementation of our normal, btcwallet