Skip to content
interpreter.rs 582 B
Newer Older
Marek Kotewicz's avatar
Marek Kotewicz committed
use keys::Public;
use super::{Script, Num, VerificationFlags};

#[derive(Debug, PartialEq, Clone, Copy)]
pub enum SignatureVersion {
	_Base,
	_WitnessV0,
Marek Kotewicz's avatar
Marek Kotewicz committed
}

pub trait SignatureChecker {
	fn check_signature(&self, script_signature: &[u8], public: &Public, script: &Script, version: SignatureVersion);

	fn check_lock_time(&self, lock_time: Num);

	fn check_sequence(&self, sequence: Num);
}

pub fn eval_script(
	_stack: &mut Vec<Vec<u8>>,
	_script: &Script,
	_flags: &VerificationFlags,
	_checker: &SignatureChecker,
	_version: SignatureVersion
) -> Result<bool, ()> {
Marek Kotewicz's avatar
Marek Kotewicz committed
	Ok(false)
}