Registry /
crypto / decred-dcrd-txscript-v4
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
txscript
✓ github.com/decred/dcrd/txscript/v4
Parses a Decred transaction script
import "github.com/decred/dcrd/txscript/v4"
func main() {
// Example: parse a standard pay-to-pubkey-hash script
script := []byte{0x76, 0xa9, 0x14, 0x89, 0xab, 0xcd, 0xef, 0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0x88, 0xac}
parsed, err := txscript.ParseScript(script)
if err != nil {
panic(err)
}
_ = parsed
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
4.1.2latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.