[][src]Trait lnpbp::bp::scripts::types::GenerateScripts

pub trait GenerateScripts {
    fn to_script_pubkey(&self, strategy: Strategy) -> PubkeyScript;
fn to_sig_script(&self, strategy: Strategy) -> SigScript;
fn to_witness(&self, strategy: Strategy) -> Option<Witness>; fn to_scripts(&self, strategy: Strategy) -> ScriptSet { ... } }

Script set generation from public key or a given LockScript (with TapScript support planned for the future).

Required methods

fn to_script_pubkey(&self, strategy: Strategy) -> PubkeyScript

fn to_sig_script(&self, strategy: Strategy) -> SigScript

fn to_witness(&self, strategy: Strategy) -> Option<Witness>

Loading content...

Provided methods

fn to_scripts(&self, strategy: Strategy) -> ScriptSet

Loading content...

Implementations on Foreign Types

impl GenerateScripts for PublicKey[src]

impl GenerateScripts for PublicKey[src]

Loading content...

Implementors

impl GenerateScripts for LockScript[src]

Loading content...