Skip to main content

Multisig

Trait 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§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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§