pub struct ComparisonInterpreter<T, U> { /* private fields */ }
Expand description
A tag to indicate that both the C++ and Rust implementations of zcash_script should be used, with their results compared.
Trait Implementations§
Source§impl<T: ZcashScript, U: ZcashScript> ZcashScript for ComparisonInterpreter<T, U>
This implementation is functionally equivalent to the T
impl, but it also runs a second (U
)
impl and logs a warning if they disagree.
impl<T: ZcashScript, U: ZcashScript> ZcashScript for ComparisonInterpreter<T, U>
This implementation is functionally equivalent to the T
impl, but it also runs a second (U
)
impl and logs a warning if they disagree.
Source§fn legacy_sigop_count_script(&self, script: &[u8]) -> Result<u32, Error>
fn legacy_sigop_count_script(&self, script: &[u8]) -> Result<u32, Error>
Returns the number of transparent signature operations in the input or
output script pointed to by script.
Source§fn verify_callback(
&self,
script_pub_key: &[u8],
script_sig: &[u8],
flags: VerificationFlags,
) -> Result<(), Error>
fn verify_callback( &self, script_pub_key: &[u8], script_sig: &[u8], flags: VerificationFlags, ) -> Result<(), Error>
Returns
Ok(())
if the a transparent input correctly spends the matching output
under the additional constraints specified by flags
. This function
receives only the required information to validate the spend and not
the transaction itself. In particular, the sighash for the spend
is obtained using a callback function. Read moreAuto Trait Implementations§
impl<T, U> Freeze for ComparisonInterpreter<T, U>
impl<T, U> RefUnwindSafe for ComparisonInterpreter<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for ComparisonInterpreter<T, U>
impl<T, U> Sync for ComparisonInterpreter<T, U>
impl<T, U> Unpin for ComparisonInterpreter<T, U>
impl<T, U> UnwindSafe for ComparisonInterpreter<T, U>where
T: UnwindSafe,
U: UnwindSafe,
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