utxostack / rgbpp-sdk

Utilities for Bitcoin and RGB++ asset integration
ISC License
53 stars 18 forks source link

Cannot estimate fee of BTC transactions that have multi-origin inputs #141

Closed ShookLyngs closed 4 months ago

ShookLyngs commented 6 months ago

In TxBuilder, if there has inputs where their script public-key don't match to the script public-key of from, the fee estimation of the TxBuilder fails. For example, if Alice uses a P2WPKH script, and Bob uses a P2TR script, you cannot add inputs from both Alice and Bob into the TxBuilder. If you do, the fee estimation process will fail due to unrecognized script public keys in the inputs.