pub struct TransactionSignatureSerializer<T> { /* private fields */ }Expand description
| Wrapper that serializes like CTransaction, | but with the modifications required | for the signature hash done in-place |
Implementations§
source§impl<T> TransactionSignatureSerializer<T>
impl<T> TransactionSignatureSerializer<T>
pub fn new( tx_to_in: &T, script_code_in: &Script, n_in_in: u32, n_hash_type_in: i32 ) -> Self
sourcepub fn serialize_script_code<S>(&self, s: &mut S)
pub fn serialize_script_code<S>(&self, s: &mut S)
| Serialize the passed scriptCode, skipping | OP_CODESEPARATORs |
sourcepub fn serialize_input<S>(&self, s: &mut S, n_input: u32)
pub fn serialize_input<S>(&self, s: &mut S, n_input: u32)
| Serialize an input of txTo |
sourcepub fn serialize_output<S>(&self, s: &mut S, n_output: u32)
pub fn serialize_output<S>(&self, s: &mut S, n_output: u32)
| Serialize an output of txTo |
Auto Trait Implementations§
impl<T> RefUnwindSafe for TransactionSignatureSerializer<T>where T: RefUnwindSafe,
impl<T> !Send for TransactionSignatureSerializer<T>
impl<T> !Sync for TransactionSignatureSerializer<T>
impl<T> Unpin for TransactionSignatureSerializer<T>
impl<T> UnwindSafe for TransactionSignatureSerializer<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>,
§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