This is a fork of github.com/btcsuite/btcd aimed at eliminating the tangle and complexity of its structure and make it more amenable to reuse as a part of another application, as well as easier reuse of its parts.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Loki Verloren 5d9e64836a msg.Tx 6 months ago
..
data big test fix-up 6 months ago
er errors moved out of txscript 6 months ago
hash msg.Tx 6 months ago
sf split out scriptflags 6 months ago
sig signature cache moved out 6 months ago
sn scriptnum and stack split off 6 months ago
st scriptnum and stack split off 6 months ago
README.md migrated 7 months ago
consensus.go txscript: Implement CheckSequenceVerify (BIP0112) 3 years ago
doc.go separated btcd package from main 7 months ago
engine.go msg.Tx 6 months ago
engine_test.go msg.Tx 6 months ago
example_test.go lots of test fixes 6 months ago
hashcache_test.go msg.Tx 6 months ago
log.go migrated 7 months ago
opcode.go msg now fully separated 6 months ago
opcode_test.go big test fix-up 6 months ago
pkscript.go msg now fully separated 6 months ago
pkscript_test.go lots of test fixes 6 months ago
reference_test.go msg.Tx 6 months ago
script.go msg.Tx 6 months ago
script_test.go lots of test fixes 6 months ago
scriptbuilder.go scriptnum and stack split off 6 months ago
scriptbuilder_test.go big test fix-up 6 months ago
sign.go msg.Tx 6 months ago
sign_test.go msg.Tx 6 months ago
standard.go msg now fully separated 6 months ago
standard_test.go lots of test fixes 6 months ago

README.md

txscript

Build Status ISC License GoDoc

Package txscript implements the bitcoin transaction script language. There is a comprehensive test suite.

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

Bitcoin Scripts

Bitcoin provides a stack-based, FORTH-like language for the scripts in the bitcoin transactions. This language is not turing complete although it is still fairly powerful. A description of the language can be found at https://en.bitcoin.it/wiki/Script

Installation and Updating

$ go get -u git.parallelcoin.io/dev/btcd/txscript

Examples

GPG Verification Key

All official release tags are signed by Conformal so users can ensure the code has not been tampered with and is coming from the btcsuite developers. To verify the signature perform the following:

  • Download the public key from the Conformal website at https://opensource.conformal.com/GIT-GPG-KEY-conformal.txt

  • Import the public key into your GPG keyring:

    gpg --import GIT-GPG-KEY-conformal.txt
    
  • Verify the release tag with the following command where TAG_NAME is a placeholder for the specific tag:

    git tag -v TAG_NAME
    

License

Package txscript is licensed under the copyfree ISC License.