We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Wtxid
1 parent 04756c0 commit 14cdff5Copy full SHA for 14cdff5
1 file changed
bdk-ffi/src/bitcoin.rs
@@ -308,6 +308,11 @@ impl Transaction {
308
Arc::new(Txid(self.0.compute_txid()))
309
}
310
311
+ /// Compute the Wtxid, which includes the witness in the transaction hash.
312
+ pub fn compute_wtxid(&self) -> Arc<Wtxid> {
313
+ Arc::new(Wtxid(self.0.compute_wtxid()))
314
+ }
315
+
316
/// Returns the weight of this transaction, as defined by BIP-141.
317
///
318
/// > Transaction weight is defined as Base transaction size * 3 + Total transaction size (ie.
0 commit comments