[][src]Trait bitcoin_cash::Signatory

pub trait Signatory {
    type Script: InputScript;
    type Signatures: 'static;
    fn sig_hash_flags(&self) -> Vec<SigHashFlags>;
fn placeholder_signatures(&self) -> Self::Signatures;
fn build_script(
        &self,
        tx_preimages: &[TxPreimage],
        unsigned_tx: &TxBuilder<'_>,
        sigs: Self::Signatures,
        lock_script: &Script,
        tx_outputs: &[TxOutput]
    ) -> Self::Script; fn is_p2sh(&self) -> bool { ... } }

Associated Types

type Script: InputScript

type Signatures: 'static

Loading content...

Required methods

fn sig_hash_flags(&self) -> Vec<SigHashFlags>

fn placeholder_signatures(&self) -> Self::Signatures

fn build_script(
    &self,
    tx_preimages: &[TxPreimage],
    unsigned_tx: &TxBuilder<'_>,
    sigs: Self::Signatures,
    lock_script: &Script,
    tx_outputs: &[TxOutput]
) -> Self::Script

Loading content...

Provided methods

fn is_p2sh(&self) -> bool

Loading content...

Implementors

impl<'b> Signatory for P2PKHSignatory[src]

type Script = P2PKHInputs

type Signatures = ByteArray

Loading content...