Struct subcoin_script::NoSignatureCheck
source · pub struct NoSignatureCheck;
Expand description
A SignatureChecker
implementation that skips all signature checks.
Trait Implementations§
source§impl SignatureChecker for NoSignatureCheck
impl SignatureChecker for NoSignatureCheck
source§fn check_ecdsa_signature(
&mut self,
_sig: &EcdsaSignature,
_pk: &PublicKey,
_script_code: &Script,
_sig_version: SigVersion,
) -> Result<bool, SignatureError>
fn check_ecdsa_signature( &mut self, _sig: &EcdsaSignature, _pk: &PublicKey, _script_code: &Script, _sig_version: SigVersion, ) -> Result<bool, SignatureError>
Checks an ECDSA signature in the context of a Bitcoin transaction. Read more
source§fn check_schnorr_signature(
&mut self,
_sig: &SchnorrSignature,
_pk: &XOnlyPublicKey,
_sig_version: SigVersion,
_exec_data: &ScriptExecutionData,
) -> Result<bool, SignatureError>
fn check_schnorr_signature( &mut self, _sig: &SchnorrSignature, _pk: &XOnlyPublicKey, _sig_version: SigVersion, _exec_data: &ScriptExecutionData, ) -> Result<bool, SignatureError>
Checks a Schnorr signature in the context of a Bitcoin transaction. Read more
source§fn check_lock_time(&self, _lock_time: ScriptNum) -> bool
fn check_lock_time(&self, _lock_time: ScriptNum) -> bool
Checks whether the absolute time lock (
lock_time
) in a transaction is satisfied.source§fn check_sequence(&self, _sequence: ScriptNum) -> bool
fn check_sequence(&self, _sequence: ScriptNum) -> bool
Checks whether the relative time lock (
sequence
) for a specific input
in a transaction is satisfied.source§fn verify_ecdsa_signature(
&self,
sig: &EcdsaSignature,
msg: &Message,
pk: &PublicKey,
) -> bool
fn verify_ecdsa_signature( &self, sig: &EcdsaSignature, msg: &Message, pk: &PublicKey, ) -> bool
Verifies an ECDSA signature against a message and public key. Read more
source§fn verify_schnorr_signature(
&self,
sig: &SchnorrSignature,
msg: &Message,
pk: &XOnlyPublicKey,
) -> bool
fn verify_schnorr_signature( &self, sig: &SchnorrSignature, msg: &Message, pk: &XOnlyPublicKey, ) -> bool
Verifies a Schnorr signature against a message and public key. Read more
Auto Trait Implementations§
impl Freeze for NoSignatureCheck
impl RefUnwindSafe for NoSignatureCheck
impl Send for NoSignatureCheck
impl Sync for NoSignatureCheck
impl Unpin for NoSignatureCheck
impl UnwindSafe for NoSignatureCheck
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more