A TypeScript library for parsing Bitcoin Descriptors, including Miniscript-based ones. Streamlines creating Partially Signed Bitcoin Transactions (PSBTs) from Descriptors. Features BIP32, single-signature, and Hardware Wallet signing capabilities, and facilitates finalizing transactions.
Implemented the getScriptSatisfactionSize function to calculate the byte length of script satisfaction for Miniscript-based descriptors, especially useful in coin selection algorithms where signatures are not yet available. The function accounts for a standard signature length of 72 bytes, aligning with the common worst-case scenario in Bitcoin transactions.
Corrected the signature size assumption in getTimeConstraints from 64 bytes to 72 bytes, based on typical DER-encoded ECDSA signature lengths in Bitcoin scripts. This update ensures more accurate handling of signature sizes, though this was not affecting results.
Updated package version to 2.0.2 to reflect these changes and improvements.
Implemented the
getScriptSatisfactionSize
function to calculate the byte length of script satisfaction for Miniscript-based descriptors, especially useful in coin selection algorithms where signatures are not yet available. The function accounts for a standard signature length of 72 bytes, aligning with the common worst-case scenario in Bitcoin transactions.Corrected the signature size assumption in
getTimeConstraints
from 64 bytes to 72 bytes, based on typical DER-encoded ECDSA signature lengths in Bitcoin scripts. This update ensures more accurate handling of signature sizes, though this was not affecting results.Updated package version to 2.0.2 to reflect these changes and improvements.