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§

source

fn ln_funding( amount: u64, local_pubkey: &LocalPubkey, remote_pubkey: PublicKey ) -> Self

source

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.

source

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.

source

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.

Implementations on Foreign Types§

source§

impl ScriptGenerators for Output

source§

fn ln_funding( amount: u64, local_pubkey: &LocalPubkey, remote_pubkey: PublicKey ) -> Self

source§

fn ln_to_local( amount: u64, revocationpubkey: PublicKey, local_delayedpubkey: PublicKey, to_self_delay: u16 ) -> Self

source§

fn ln_to_remote_v1(amount: u64, remote_pubkey: PublicKey) -> Self

source§

fn ln_to_remote_v2(amount: u64, remote_pubkey: PublicKey) -> Self

source§

impl ScriptGenerators for LockScript

source§

fn ln_funding( _: u64, local_pubkey: &LocalPubkey, remote_pubkey: PublicKey ) -> Self

source§

fn ln_to_local( _: u64, revocationpubkey: PublicKey, local_delayedpubkey: PublicKey, to_self_delay: u16 ) -> Self

source§

fn ln_to_remote_v1(_: u64, _: PublicKey) -> Self

source§

fn ln_to_remote_v2(_: u64, remote_pubkey: PublicKey) -> Self

source§

impl ScriptGenerators for PubkeyScript

source§

fn ln_funding( amount: u64, local_pubkey: &LocalPubkey, remote_pubkey: PublicKey ) -> Self

source§

fn ln_to_local( amount: u64, revocationpubkey: PublicKey, local_delayedpubkey: PublicKey, to_self_delay: u16 ) -> Self

source§

fn ln_to_remote_v1(_: u64, remote_pubkey: PublicKey) -> Self

source§

fn ln_to_remote_v2(amount: u64, remote_pubkey: PublicKey) -> Self

source§

impl ScriptGenerators for WitnessScript

source§

fn ln_funding( amount: u64, local_pubkey: &LocalPubkey, remote_pubkey: PublicKey ) -> Self

source§

fn ln_to_local( amount: u64, revocationpubkey: PublicKey, local_delayedpubkey: PublicKey, to_self_delay: u16 ) -> Self

source§

fn ln_to_remote_v1(_: u64, _: PublicKey) -> Self

source§

fn ln_to_remote_v2(amount: u64, remote_pubkey: PublicKey) -> Self

Implementors§