Trait lnp::channel::bolt::ScriptGenerators
source · pub trait ScriptGenerators {
// Required methods
fn ln_funding(
amount: u64,
local_pubkey: &LocalPubkey,
remote_pubkey: PublicKey
) -> Self;
fn ln_to_local(
amount: u64,
revocationpubkey: PublicKey,
local_delayedpubkey: PublicKey,
to_self_delay: u16
) -> Self;
fn ln_to_remote_v1(amount: u64, remote_pubkey: PublicKey) -> Self;
fn ln_to_remote_v2(amount: u64, remote_pubkey: PublicKey) -> Self;
}
Required Methods§
fn ln_funding( amount: u64, local_pubkey: &LocalPubkey, remote_pubkey: PublicKey ) -> Self
sourcefn ln_to_local(
amount: u64,
revocationpubkey: PublicKey,
local_delayedpubkey: PublicKey,
to_self_delay: u16
) -> Self
fn ln_to_local( amount: u64, revocationpubkey: PublicKey, local_delayedpubkey: PublicKey, to_self_delay: u16 ) -> Self
NB: We use argument named local_delayedpubkey
, but in fact the source
for this key is the remote node key, since we generate a transaction
which we will sign for the remote node.
sourcefn ln_to_remote_v1(amount: u64, remote_pubkey: PublicKey) -> Self
fn ln_to_remote_v1(amount: u64, remote_pubkey: PublicKey) -> Self
NB: We use argument named remote_pubkey
, but in fact the source
for this key is the local node key, since we generate a transaction
which we will sign for the remote node.
sourcefn ln_to_remote_v2(amount: u64, remote_pubkey: PublicKey) -> Self
fn ln_to_remote_v2(amount: u64, remote_pubkey: PublicKey) -> Self
NB: We use argument named remote_pubkey
, but in fact the source
for this key is the local node key, since we generate a transaction
which we will sign for the remote node.