You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For regtest/testnet mode, bitcointx raises an error when attempting to sign an electrum-generated PSBT because of the presence of an xpub with prefix 0x043587cf (tpub) and does not accept an xpub with prefix 0x02575483 (Vpub).
I think the simplest solution here would be some xpub type coercion when the user calls the signer with a special flag? Or even type coercion based on --regtest/--mainnet flags.
The exception should be raised within deserialization code, not within the signing code.
Please check if the following PR would fix your problem: #72
in that PR, PartiallySignedTransaction.deserialize() accepts optional arg acceptable_xpub_prefixes which is the list of 4-byte prefixes acceptable for xpubs. The example sign-psbt.py is also updated (use --acceptable-xpub-prefixes).
Please note that the serialization will use standard prefixes, so when PSBT with non-standard prefixes is deserialized and then serialized again the result will differ from the original
For regtest/testnet mode, bitcointx raises an error when attempting to sign an electrum-generated PSBT because of the presence of an xpub with prefix 0x043587cf (tpub) and does not accept an xpub with prefix 0x02575483 (Vpub).
https://electrum.readthedocs.io/en/latest/xpub_version_bytes.html#specification
I think the simplest solution here would be some xpub type coercion when the user calls the signer with a special flag? Or even type coercion based on
--regtest/--mainnet
flags.That said, @darosior mentions:
The text was updated successfully, but these errors were encountered: