pub struct PreparedCall {
pub sighash: String,
pub preimage: String,
pub op_push_tx_sig: String,
pub tx_hex: String,
pub sig_indices: Vec<usize>,
/* private fields */
}Expand description
Result of prepare_call() — contains everything needed for external signing
and subsequent finalize_call().
Public fields (sighash, preimage, op_push_tx_sig, tx_hex, sig_indices)
are for external signer coordination. Other fields are opaque
internals consumed by finalize_call().
Fields§
§sighash: StringBIP-143 sighash (hex) — what external signers ECDSA-sign.
preimage: StringFull BIP-143 preimage (hex).
op_push_tx_sig: StringOP_PUSH_TX DER signature + sighash byte (hex). Empty if not needed.
tx_hex: StringBuilt transaction hex (P2PKH funding signed, primary contract input uses placeholder sigs).
sig_indices: Vec<usize>User-visible arg positions that need external Sig values.
Trait Implementations§
Source§impl Clone for PreparedCall
impl Clone for PreparedCall
Source§fn clone(&self) -> PreparedCall
fn clone(&self) -> PreparedCall
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PreparedCall
impl RefUnwindSafe for PreparedCall
impl Send for PreparedCall
impl Sync for PreparedCall
impl Unpin for PreparedCall
impl UnsafeUnpin for PreparedCall
impl UnwindSafe for PreparedCall
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more