pub struct MutableTransactionSignatureCreator {
pub tx_to: *const MutableTransaction,
pub n_in: u32,
pub n_hash_type: i32,
pub amount: Amount,
pub checker: MutableTransactionSignatureChecker,
pub txdata: *const PrecomputedTransactionData,
}
Expand description
| A signature creator for transactions. |
Fields§
§tx_to: *const MutableTransaction
§n_in: u32
§n_hash_type: i32
§amount: Amount
§checker: MutableTransactionSignatureChecker
§txdata: *const PrecomputedTransactionData
Implementations§
source§impl MutableTransactionSignatureCreator
impl MutableTransactionSignatureCreator
pub fn new( tx_to_in: *const MutableTransaction, n_in_in: u32, amount_in: &Amount, n_hash_type_in: i32 ) -> Self
pub fn new_with_txdata( tx_to_in: *const MutableTransaction, n_in_in: u32, amount_in: &Amount, txdata: *const PrecomputedTransactionData, n_hash_type_in: i32 ) -> Self
Trait Implementations§
source§impl Checker for MutableTransactionSignatureCreator
impl Checker for MutableTransactionSignatureCreator
fn checker(&self) -> &Box<dyn BaseSignatureChecker>
source§impl CreateSchnorrSig for MutableTransactionSignatureCreator
impl CreateSchnorrSig for MutableTransactionSignatureCreator
fn create_schnorr_sig( &self, provider: &SigningProvider, sig: &mut Vec<u8>, pubkey: &XOnlyPubKey, leaf_hash: *const u256, merkle_root: *const u256, sigversion: SigVersion ) -> bool
source§impl CreateSig for MutableTransactionSignatureCreator
impl CreateSig for MutableTransactionSignatureCreator
source§fn create_sig(
&self,
provider: &SigningProvider,
vch_sig: &mut Vec<u8>,
address: &KeyID,
script_code: &Script,
sigversion: SigVersion
) -> bool
fn create_sig( &self, provider: &SigningProvider, vch_sig: &mut Vec<u8>, address: &KeyID, script_code: &Script, sigversion: SigVersion ) -> bool
| Create a singular (non-script) signature.
|
impl BaseSignatureCreator for MutableTransactionSignatureCreator
impl Send for MutableTransactionSignatureCreator
impl Sync for MutableTransactionSignatureCreator
Auto Trait Implementations§
impl RefUnwindSafe for MutableTransactionSignatureCreator
impl Unpin for MutableTransactionSignatureCreator
impl UnwindSafe for MutableTransactionSignatureCreator
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§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