libsv / go-bt

The go-to Bitcoin Transaction (BT) Go library.
https://pkg.go.dev/mod/github.com/libsv/go-bt
ISC License
66 stars 26 forks source link

Added check for nonstandard short script when parsing PublicKeyHash #125

Closed icellan closed 2 years ago

icellan commented 2 years ago

Checks in PublicKeyHash fail for nonstandard scripts panic: runtime error: index out of range [1] with length 1

Added test from example tx which failed in one of my projects.