pub trait ChannelExtension<N>{
// Required methods
fn new() -> Box<dyn ChannelExtension<N>>
where Self: Sized;
fn build_graph(
&self,
tx_graph: &mut TxGraph<'_>,
remote: bool,
) -> Result<(), <N as Nomenclature>::Error>;
}Required Methods§
Sourcefn new() -> Box<dyn ChannelExtension<N>>where
Self: Sized,
fn new() -> Box<dyn ChannelExtension<N>>where
Self: Sized,
Constructs boxed extension objects which can be inserted into channel extension pipeline
Sourcefn build_graph(
&self,
tx_graph: &mut TxGraph<'_>,
remote: bool,
) -> Result<(), <N as Nomenclature>::Error>
fn build_graph( &self, tx_graph: &mut TxGraph<'_>, remote: bool, ) -> Result<(), <N as Nomenclature>::Error>
Applies state to the channel transaction graph
Implementors§
impl ChannelExtension<BoltExt> for AnchorOutputs
impl ChannelExtension<BoltExt> for BoltChannel
impl ChannelExtension<BoltExt> for Htlc
impl<N> ChannelExtension<N> for Bip96
impl<N> ChannelExtension<N> for Channel<N>
Channel is the extension to itself :) so it receives the same input as any other extension and just forwards it to them. This is required for channel composebility.