integration

package
v0.8.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package integration provides the glue layer for running lnd with tapd's custom channel support. It wires tapd's aux component implementations into lnd's AuxComponents interface, enabling Taproot Asset channels without requiring lightning-terminal.

The primary entry point is BuildAuxComponents, which accepts a running tapd Server and returns a populated lnd.AuxComponents struct ready to be passed to lnd via ImplementationCfg.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAuxComponents

func BuildAuxComponents(ctx context.Context,
	tapServer *taprootassets.Server) (*lnd.AuxComponents, func(), error)

BuildAuxComponents creates the lnd.AuxComponents struct from a running tapd Server. This enables lnd to handle custom Taproot Asset channels by delegating aux operations to tapd's implementations.

The returned cleanup function stops the internal message router and should be called when the node shuts down.

func EnsureRequiredCustomMessages

func EnsureRequiredCustomMessages(customMsgs []uint16) []uint16

EnsureRequiredCustomMessages appends any message types required by the Taproot Asset channel protocol to the given custom message allow list. In particular, tapd needs to send error messages (lnwire.MsgError) to peers through lnd's SendCustomMessage RPC. Since MsgError is outside the custom message range, it must be explicitly allowed.

This function is idempotent: if the required types are already present in the slice, it returns it unchanged.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL