pub struct UnvaultEmergencyTransaction(_);
Expand description

The transaction spending an unvault output to The Emergency Script.

Implementations

The second emergency transaction always spends an unvault output and pays to the Emergency Script.

BIP174 Creator and Updater roles.

Parse an UnvaultEmergency transaction from a PSBT

Get the reference to the Emergency UTXO

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Get the sighash for the single input of a presigned Revault transaction.

Cached version of [RevaultPresignedTransaction::signature_hash]

Add a signature to the single input of a presigned Revault transaction. Read more

Get the signatures for the single input of this presigned Revault transaction.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Check the transaction is valid (fully-signed) and can be finalized. Slighty more efficient than calling RevaultTransaction::finalize on a clone as it gets rid of the belt-and-suspenders checks.

Check if the transaction was already finalized.

Check the transaction is valid

Verify all PSBT inputs against libbitcoinconsensus

Get the network-serialized (inner) transaction. You likely want to be sure the transaction [RevaultTransaction.is_finalized] before serializing it.

The BIP174 Transaction Extractor (without any check, which are done in [RevaultTransaction.finalize]).

Get the BIP174-serialized (inner) transaction.

Get the BIP174-serialized (inner) transaction encoded in base64.

Create a RevaultTransaction from a base64-encoded BIP174-serialized transaction.

Create a RevaultTransaction from a base64-encoded BIP174-serialized transaction.

Return the absolute fees this transaction is paying.

Get the inner unsigned transaction id

Get the inner unsigned transaction hash with witness data

Get a reference to the inner transaction

Extract the inner transaction of the inner PSBT. You likely want to be sure the transaction [RevaultTransaction.is_finalized] before serializing it.

The BIP174 Transaction Extractor (without any check, which are done in [RevaultTransaction.finalize]).

Get a reference to the inner PSBT

Move inner PSBT out

Get the sighash for an input of a Revault transaction. Will deduce the scriptCode from the previous witness script. NOTE: transactions are always signed with the SIGHASH_ALL flag. Read more

Add a signature in order to eventually satisfy this input. Read more

Check and satisfy the scripts, create the witnesses. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.