vulpemventures / go-elements

Go support for Liquid/Elements transactions
MIT License
27 stars 12 forks source link

Taproot support #198

Closed louisinger closed 2 years ago

louisinger commented 2 years ago

This PR adds Taproot/Tapscript support for elements, greatly inspired by the work already done on btcd: https://github.com/btcsuite/btcd/pull/1787

1. bump btcd to latest, drop btcutils

2. Elements taproot

About new opcodes: It is quite possible to use the new opcodes now. However, for better introspection support, I think we should extend the scriptBuilder from txscript with some elements-specific functions like AddAssetHash or AddIndex etc.

it closes #172

duplicate of #195

@altafan @tiero please review

louisinger commented 2 years ago

CI is passing locally, will add the PR changes + psetv2 taproot support to #189