dcrd/txscript
cjepson 653e13db0e Waste less memory if sighash optimizations are on
Legacy transaction deep copy code mandated by the Bitcoin protocol
caused large amounts of data to be copied needlessly. If the
optimization for SigHashAll is set in chaincfg/params.go, these
extra copies are avoided by directly writing the pkScript and
decorations to a buffer and then hashing to get a witness hash,
while using the cached hash for the prefix.

Fixes #126.
2016-05-16 16:18:04 -04:00
..
data Initial Decred Commit. 2016-02-07 14:00:12 -05:00
consensus.go Initial Decred Commit. 2016-02-07 14:00:12 -05:00
doc.go Initial Decred Commit. 2016-02-07 14:00:12 -05:00
engine_test.go Initial Decred Commit. 2016-02-07 14:00:12 -05:00
engine.go Work on improving the use of analysis tools in goclean.sh 2016-02-12 15:24:32 -05:00
error.go txscript: Make error strings idiomatic. 2016-05-12 14:43:13 -05:00
example_test.go Initial Decred Commit. 2016-02-07 14:00:12 -05:00
internal_test.go Waste less memory if sighash optimizations are on 2016-05-16 16:18:04 -04:00
log_test.go Initial Decred Commit. 2016-02-07 14:00:12 -05:00
log.go Initial Decred Commit. 2016-02-07 14:00:12 -05:00
opcode_test.go Work on improving the use of analysis tools in goclean.sh 2016-02-12 15:24:32 -05:00
opcode.go Make PubKey variable names consistent. 2016-05-12 14:43:13 -05:00
README.md Initial Decred Commit. 2016-02-07 14:00:12 -05:00
reference_test.go Initial Decred Commit. 2016-02-07 14:00:12 -05:00
script_test.go Waste less memory if sighash optimizations are on 2016-05-16 16:18:04 -04:00
script.go Waste less memory if sighash optimizations are on 2016-05-16 16:18:04 -04:00
scriptbuilder_test.go Initial Decred Commit. 2016-02-07 14:00:12 -05:00
scriptbuilder.go Initial Decred Commit. 2016-02-07 14:00:12 -05:00
scriptnum_test.go Initial Decred Commit. 2016-02-07 14:00:12 -05:00
scriptnum.go Initial Decred Commit. 2016-02-07 14:00:12 -05:00
sign_test.go Initial Decred Commit. 2016-02-07 14:00:12 -05:00
sign.go Fixed erroneous txscript.KeyClosure documentation. 2016-05-11 13:33:20 -05:00
stack_test.go Remove duplicate stack tests 2016-02-09 11:54:44 -05:00
stack.go Initial Decred Commit. 2016-02-07 14:00:12 -05:00
standard_test.go Fix a test to match commit cb112a8 2016-02-08 17:33:40 -05:00
standard.go switch maxDataCarrierSize to public const 2016-05-11 13:36:19 -05:00

txscript

Package txscript implements the decred transaction script language. There is a comprehensive test suite. Package txscript is licensed under the liberal ISC license.

This package has intentionally been designed so it can be used as a standalone package for any projects needing to use or validate decred transaction scripts.

Decred Scripts

Decred provides a stack-based, FORTH-like langauge for the scripts in the decred transactions. This language is not turing complete although it is still fairly powerful.

Documentation

[GoDoc] (http://godoc.org/github.com/decred/dcrd/txscript)

Full go doc style documentation for the project can be viewed online without installing this package by using the GoDoc site here.

You can also view the documentation locally once the package is installed with the godoc tool by running godoc -http=":6060" and pointing your browser to http://localhost:6060/pkg/github.com/decred/dcrd/txscript

Installation

$ go get github.com/decred/dcrd/txscript

Examples

License

Package txscript is licensed under the liberal ISC License.