ckb-cell / rgbpp-sdk

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

The MISSING_PUBKEY error is not clear enough #266

Closed ShookLyngs closed 1 month ago

ShookLyngs commented 1 month ago

The MISSING_PUBKEY error is usually triggered when the generating BTC transaction contains P2TR inputs, but no relevant pubkey was provided to the TxBuilder in the first place. Without the information of pubkey, the transaction cannot be built.

The current error message is not very clear and could end up confusing users:

Missing a pubkey that pairs with the address: {address}