afilini / bip174.org

Apache License 2.0
42 stars 3 forks source link

[FEATURE] Add support for converting raw transactions to PSBT Format #11

Open starsoccer opened 3 years ago

starsoccer commented 3 years ago

I am not aware of any online tool that supports converting raw transactions to/from PSBT format. It would be great if this is something that is possible to add.

afilini commented 3 years ago

That's definitely something that could be added, but keep in mind that the PSBT format is not just a different representation of a raw transaction: it contains the transaction, plus some extra metadata.

What you are describing is the creator role as defined by BIP 174, but most of the wallets that support PSBTs also require the extra metadata to be present, so unless you have an updater to add them the "empty" PSBT probably won't be very useful.

The other way around sounds like the extractor role, that's also doable on bip174.org

starsoccer commented 3 years ago

Well I think for this scenario Id want the site to act as both a creator and updater. Where I would provide a raw transaction and it would create a PSBT transaction and then update it with the other necessary information.