pub struct GenericTransactionSignatureChecker<T> { /* private fields */ }Expand description
Implementations§
source§impl<T> GenericTransactionSignatureChecker<T>
impl<T> GenericTransactionSignatureChecker<T>
pub fn new( tx_to_in: *const T, n_in_in: u32, amount_in: &Amount, mdb: MissingDataBehavior ) -> Self
pub fn new_with_txdata_in( tx_to_in: *const T, n_in_in: u32, amount_in: &Amount, txdata_in: &PrecomputedTransactionData, mdb: MissingDataBehavior ) -> Self
pub fn verify_ecdsa_signature( &self, vch_sig: &Vec<u8>, pubkey: &PubKey, sighash: &u256 ) -> bool
pub fn verify_schnorr_signature( &self, sig: &[u8], pubkey: &XOnlyPubKey, sighash: &u256 ) -> bool
pub fn check_ecdsa_signature( &self, vch_sig_in: &Vec<u8>, vch_pub_key: &Vec<u8>, script_code: &Script, sigversion: SigVersion ) -> bool
pub fn check_schnorr_signature( &self, sig: &[u8], pubkey_in: &[u8], sigversion: SigVersion, execdata: &ScriptExecutionData, serror: *mut ScriptError ) -> bool
pub fn check_lock_time(&self, n_lock_time: &ScriptNum) -> bool
pub fn check_sequence(&self, n_sequence: &ScriptNum) -> bool
Trait Implementations§
source§impl<T> VerifyECDSASignature for GenericTransactionSignatureChecker<T>
impl<T> VerifyECDSASignature for GenericTransactionSignatureChecker<T>
source§impl<T> VerifySchnorrSignature for GenericTransactionSignatureChecker<T>
impl<T> VerifySchnorrSignature for GenericTransactionSignatureChecker<T>
fn verify_schnorr_signature( &self, sig: &[u8], pubkey: &XOnlyPubKey, sighash: &u256 ) -> bool
impl<T> BaseSignatureChecker for GenericTransactionSignatureChecker<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for GenericTransactionSignatureChecker<T>where T: RefUnwindSafe,
impl<T> !Send for GenericTransactionSignatureChecker<T>
impl<T> !Sync for GenericTransactionSignatureChecker<T>
impl<T> Unpin for GenericTransactionSignatureChecker<T>
impl<T> UnwindSafe for GenericTransactionSignatureChecker<T>where T: RefUnwindSafe,
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
source§impl<T> CheckECDSASignature for Twhere
T: BaseSignatureChecker,
impl<T> CheckECDSASignature for Twhere T: BaseSignatureChecker,
source§impl<T> CheckLockTime for Twhere
T: BaseSignatureChecker,
impl<T> CheckLockTime for Twhere T: BaseSignatureChecker,
fn check_lock_time(&self, n_lock_time: &ScriptNum) -> bool
source§impl<T> CheckSchnorrSignature for Twhere
T: BaseSignatureChecker,
impl<T> CheckSchnorrSignature for Twhere T: BaseSignatureChecker,
fn check_schnorr_signature( &self, sig: &[u8], pubkey: &[u8], sigversion: SigVersion, execdata: &ScriptExecutionData, serror: Option<*mut ScriptError> ) -> bool
source§impl<T> CheckSequence for Twhere
T: BaseSignatureChecker,
impl<T> CheckSequence for Twhere T: BaseSignatureChecker,
fn check_sequence(&self, n_sequence: &ScriptNum) -> bool
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more