vulpemventures / go-elements

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

[payment] Fix WitnessHash set by FromScript for P2WPKH scripts #187

Closed altafan closed 2 years ago

altafan commented 2 years ago

Refers to #186.

The problem is that payment.FromScript() appends the pubkey hash of the witness program twice in its WitnessHash field.