-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add getScriptSatisfactionSize function and fix signature size in getT…
…imeConstraints - 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.
- Loading branch information
Showing
3 changed files
with
49 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters