[][src]Trait sv::script::Checker

pub trait Checker {
    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>; }

Checks that external values are correct in the script

Required Methods

Checks that a signature and public key validate within a script

Script should already have all signatures removed if they existed.

Checks that the lock time is valid according to BIP 65

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

Implementors

impl Checker for TransactionlessChecker
[src]

impl<'a> Checker for TransactionChecker<'a>
[src]