Trait rawtx_rs::script::Multisig

source ·
pub trait Multisig {
    // Required methods
    fn is_opcheckmultisig(&self) -> bool;
    fn get_opcheckmultisig_n_m(&self) -> Result<Option<(u8, u8)>, Error>;
}

Required Methods§

Implementations on Foreign Types§

source§

impl Multisig for Script

source§

fn is_opcheckmultisig(&self) -> bool

Tests if the script is OP_CHECKMULTISIG conform. Expected: <OP_PUSHNUM_N> M * <OP_PUSHNUM_M> <OP_CHECKMULTISIG>

source§

fn get_opcheckmultisig_n_m(&self) -> Result<Option<(u8, u8)>, Error>

Returns a tuple of (n, m) (n-of-m) of the OP_CHECKMULTISIG script. If the script is not a OP_CHECKMULTISIG script Ok(None) is returned. n: number of signatures required m: number of possible public keys

Implementors§