Merge pull request #3004 from TheBlueMatt/2024-04-2761-followups
[rust-lightning] / lightning / src / sign / mod.rs
index 3634f84aa0e5ca3327417dfec909b70b9d42c316..1710fe65c86c40f18f6616fcc4477526d3725dc9 100644 (file)
@@ -144,6 +144,10 @@ pub(crate) const P2WPKH_WITNESS_WEIGHT: u64 = 1 /* num stack items */ +
        1 /* pubkey length */ +
        33 /* pubkey */;
 
+/// Witness weight for satisying a P2TR key-path spend.
+pub(crate) const P2TR_KEY_PATH_WITNESS_WEIGHT: u64 = 1 /* witness items */
+       + 1 /* schnorr sig len */ + 64 /* schnorr sig */;
+
 /// Information about a spendable output to our "payment key".
 ///
 /// See [`SpendableOutputDescriptor::StaticPaymentOutput`] for more details on how to spend this.