Checker

Trait Checker 

Source
pub trait Checker {
    // Required methods
    fn check_sig(
        &mut self,
        sig: &[u8],
        pubkey: &[u8],
        script: &[u8],
    ) -> Result<bool>;
    fn check_locktime(&self, locktime: i32) -> Result<bool>;
    fn check_sequence(&self, sequence: i32) -> Result<bool>;
}
Expand description

Checks that external values are correct in the script

Required Methods§

Source

fn check_sig( &mut self, sig: &[u8], pubkey: &[u8], script: &[u8], ) -> Result<bool>

Checks that a signature and public key validate within a script

Script should already have all signatures removed if they existed.

Source

fn check_locktime(&self, locktime: i32) -> Result<bool>

Checks that the lock time is valid according to BIP 65

Source

fn check_sequence(&self, sequence: i32) -> Result<bool>

Checks that the relative lock time enforced by the sequence is valid according to BIP 112

Implementors§