pub struct SighashCache<T: Deref<Target = Transaction>> { /* private fields */ }Implementations§
Source§impl<T: Deref<Target = Transaction> + Clone> SighashCache<T>
impl<T: Deref<Target = Transaction> + Clone> SighashCache<T>
pub fn new(tx: T) -> Self
pub fn taproot_key_spend_signature_hash<O>( &mut self, input_index: usize, prevouts: &Prevouts<'_, O>, sighash_type: SchnorrSighashType, genesis_hash: BlockHash, ) -> Result<TapSighashHash, Error>
pub fn taproot_script_spend_signature_hash<S, O>( &mut self, input_index: usize, prevouts: &Prevouts<'_, O>, leaf_hash: S, sighash_type: SchnorrSighashType, genesis_hash: BlockHash, ) -> Result<TapSighashHash, Error>
pub fn simplicity_spend_signature_hash<O>( &mut self, input_index: usize, prevouts: &Prevouts<'_, O>, script_cmr: Cmr, control_block: ControlBlock, genesis_hash: BlockHash, ) -> Result<Hash, Error>
Auto Trait Implementations§
impl<T> Freeze for SighashCache<T>where
T: Freeze,
impl<T> RefUnwindSafe for SighashCache<T>where
T: RefUnwindSafe,
impl<T> Send for SighashCache<T>where
T: Send,
impl<T> Sync for SighashCache<T>where
T: Sync,
impl<T> Unpin for SighashCache<T>where
T: Unpin,
impl<T> UnwindSafe for SighashCache<T>where
T: 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