LearnBitcoin

Bitcoin Dev Archive 2021

Announcing bip174.org, a web-based PSBT viewer and editor

5 messages, 25 to 26 Aug 2021. Started by Alekos Filini.

Alekos Filini (3), Christopher Allen, Prayank

Permalink Original thread on gnusha.org

Alekos Filini permalink original

Hello list,

I'm writing this email to announce the launch of bip174.org, a PSBT viewer and editor that runs in the browser. The website itself is pretty simple, you can paste a PSBT to see its content and whenever a change is made to one of the various fields the PSBT is automatically updated. There are a few examples built in if you just want to quickly try it out.

Daniela Brozzoni and I have been working on this tool for a while, mainly because we felt the need ourselves for something that would allow us to easily dump/modify the PSBTs we work with in our day to day job. We are not aware of any other tool that does something similar (`decodepsbt` in Bitcoin Core can only show the content of a PSBT but not change it), so we decided to build this instead, taking inspiration from the great bip32.org.

For anyone who's interested, the webapp is made entirely in Rust compiled to WASM. The source code is available on GitHub <https://github.com/afilini/bip174.org/>.

Contributions, feedback and bug reports are all very welcome!

Alekos

Christopher Allen in reply to Alekos Filini permalink original

On Wed, Aug 25, 2021 at 12:42 PM Alekos Filini via bitcoin-dev < bitcoin-dev@lists•linuxfoundation•org> wrote:

Quoted text (3 lines)
> I'm writing this email to announce the launch of bip174.org, a PSBT
> viewer and editor that runs in the browser.
>

This will be useful.

Quoted text (1 line)
>

I, and the larger Airgapped Wallet Community would love to see you add output of UR-based animated QRs to your website. An increasing number of advanced hardware & software wallets are now supporting Airgapped UR/QR PSBT signing. https://github.com/BlockchainCommons/Airgapped-Wallet-Community

You can see a video example of this in action between the Foundation Devices hardware wallet & Blue Wallet in this video, at the 17m48s mark: https://youtu.be/bYeoCBAUDYs

The easiest to do is output these UR QRs from your site, as there are multiple libraries in multiple languages to support them, but I also know that there are some major web-based transaction coordinator services also planning to add Browser scanning of PSBTs on laptops with cameras as well.

— Christopher Allen

Quoted text (1 line)
>
Prayank in reply to Alekos Filini permalink original

Hi Alekos,

Quoted text (1 line)
> bip174.org, a PSBT viewer and editor that runs in the browser

The PSBT editor looks good and will be helpful. Thanks for working on it. Would love to see an option to switch between light and dark theme and highlighting few things with different colors.

Maybe a similar project for descriptors with options to experiment with descriptors would also be useful.

Alekos Filini in reply to Christopher Allen permalink original

(sending it again as I forgot to "reply-all", sorry for the spam!)

The easiest to do is output these UR QRs from your site, as there are

Quoted text (4 lines)
> multiple libraries in multiple languages to support them, but I also know
> that there are some major web-based transaction coordinator services also
> planning to add Browser scanning of PSBTs on laptops with cameras as well.
>

That's a really good suggestion, thanks! I think it should be pretty doable, we could also try working on reading a PSBT from a QR code using the webcam.

Alekos

Alekos Filini in reply to Prayank permalink original
Quoted text (3 lines)
> Would love to see an option to switch between light and dark theme and
> highlighting few things with different colors.
>

Neither of us is particularly good at UI/UX stuff, but we can give it a shot! :)

Quoted text (3 lines)
> Maybe a similar project for descriptors with options to experiment with
> descriptors would also be useful.
>

I don't think this is exactly what you have in mind, but a while back I made a web-based tool to build descriptors graphically, based on Scratch. You can find it here <https://bitcoindevkit.org/bdk-cli/playground/>, on BDK's website.

Alekos