Merge pull request #2981 from dunxen/2024-03-PR2419fixups

Fixups for #2419
This commit is contained in:
Matt Corallo 2024-04-23 06:48:40 -07:00 committed by GitHub
commit 0e22b1245a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 520 additions and 261 deletions

File diff suppressed because it is too large Load Diff

View 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.