Skip to content

Conversation

@OttoAllmendinger
Copy link
Contributor

Add a Dimensions class for transaction size estimation that handles:

  • Weight/vsize calculation with min/max bounds for ECDSA variance
  • Input weight estimation based on script type
  • Output size calculation from address or script
  • PSBT parsing to compute expected transaction size
  • Integration with Transaction class for actual size comparison

This helps with more accurate fee calculations by providing reliable
size estimates before signing.

Issue: BTC-2908

@OttoAllmendinger OttoAllmendinger force-pushed the BTC-2908.wasm-utxo-dims branch 2 times, most recently from 98e5f22 to 187d334 Compare January 5, 2026 14:37
Adds a new Dimensions class that provides accurate virtual size estimates
for BitGo wallet transactions with min/max bounds to account for signature
size variance. Makes BitGoPsbt.wasm accessible via getter for internal use.

Issue: BTC-2908

Co-authored-by: llm-git <llm-git@ttll.de>
@OttoAllmendinger OttoAllmendinger force-pushed the BTC-2908.wasm-utxo-dims branch from 187d334 to 5e18ade Compare January 5, 2026 14:40
@OttoAllmendinger OttoAllmendinger marked this pull request as ready for review January 5, 2026 14:47
@OttoAllmendinger OttoAllmendinger requested a review from a team as a code owner January 5, 2026 14:47
@OttoAllmendinger OttoAllmendinger merged commit ca862f7 into master Jan 5, 2026
1 check passed
@OttoAllmendinger OttoAllmendinger deleted the BTC-2908.wasm-utxo-dims branch January 5, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants