vulpemventures / go-elements

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

Taproot support #195

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

@altafan @tiero please review

altafan commented 2 years ago

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.

Don't think this is in the scope of the PR. We should open a dedicated ticket and discuss it there.