pull down to refresh
192 sats \ 0 replies \ @BlueSlime OP 21 Apr 2023 \ on: A simple library for doing tapscript transactions in the browser. bitcoin
Should work in all environments, including node, deno and react native. Uses @noble/curves for cryptography (but implements BIP340 signing natively).
The API is meant to be really simple and pleb friendly. You can convert an array of scripts (or anything really) into a taproot address.
The browser library is fully bundled and has zero dependencies. No additional imports needed.
This library is powering inscribetheplanet .com and a few other spinoffs. The test coverage is decent (but could be better). It should be ready for prime-time but I still consider it in beta.
Building scripts and transactions with tapscript is very fun and rewarding. It makes conditional statements obsolete, because now every branch of logic can be its own script.
I suggest trying out the library and experimenting with using tapscript to build transactions.
I hope to add more examples in the future. I an on building a free-form non-custodial transaction builder in the browser that anyone can use with existing wallets.
Please feel free to use and contribute, everything is open source. Thank you for reading.