Update btcscript import paths to new location.
This commit is contained in:
parent
eb02adfada
commit
251d0fc6c4
8 changed files with 16 additions and 16 deletions
18
README.md
18
README.md
|
@ -1,8 +1,8 @@
|
||||||
btcscript
|
btcscript
|
||||||
=========
|
=========
|
||||||
|
|
||||||
[![Build Status](https://travis-ci.org/conformal/btcscript.png?branch=master)]
|
[![Build Status](https://travis-ci.org/btcsuite/btcscript.png?branch=master)]
|
||||||
(https://travis-ci.org/conformal/btcscript)
|
(https://travis-ci.org/btcsuite/btcscript)
|
||||||
|
|
||||||
Package btcscript implements the bitcoin transaction scripts. There is
|
Package btcscript implements the bitcoin transaction scripts. There is
|
||||||
a comprehensive test suite. `test_coverage.txt` contains the current
|
a comprehensive test suite. `test_coverage.txt` contains the current
|
||||||
|
@ -25,33 +25,33 @@ can be found at https://en.bitcoin.it/wiki/Script
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
[![GoDoc](https://godoc.org/github.com/conformal/btcscript?status.png)]
|
[![GoDoc](https://godoc.org/github.com/btcsuite/btcscript?status.png)]
|
||||||
(http://godoc.org/github.com/conformal/btcscript)
|
(http://godoc.org/github.com/btcsuite/btcscript)
|
||||||
|
|
||||||
Full `go doc` style documentation for the project can be viewed online without
|
Full `go doc` style documentation for the project can be viewed online without
|
||||||
installing this package by using the GoDoc site
|
installing this package by using the GoDoc site
|
||||||
[here](http://godoc.org/github.com/conformal/btcscript).
|
[here](http://godoc.org/github.com/btcsuite/btcscript).
|
||||||
|
|
||||||
You can also view the documentation locally once the package is installed with
|
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
|
the `godoc` tool by running `godoc -http=":6060"` and pointing your browser to
|
||||||
http://localhost:6060/pkg/github.com/conformal/btcscript
|
http://localhost:6060/pkg/github.com/btcsuite/btcscript
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ go get github.com/conformal/btcscript
|
$ go get github.com/btcsuite/btcscript
|
||||||
```
|
```
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
* [Standard Pay-to-pubkey-hash Script]
|
* [Standard Pay-to-pubkey-hash Script]
|
||||||
(http://godoc.org/github.com/conformal/btcscript#example-PayToAddrScript)
|
(http://godoc.org/github.com/btcsuite/btcscript#example-PayToAddrScript)
|
||||||
Demonstrates creating a script which pays to a bitcoin address. It also
|
Demonstrates creating a script which pays to a bitcoin address. It also
|
||||||
prints the created script hex and uses the DisasmString function to display
|
prints the created script hex and uses the DisasmString function to display
|
||||||
the disassembled script.
|
the disassembled script.
|
||||||
|
|
||||||
* [Extracting Details from Standard Scripts]
|
* [Extracting Details from Standard Scripts]
|
||||||
(http://godoc.org/github.com/conformal/btcscript#example-ExtractPkScriptAddrs)
|
(http://godoc.org/github.com/btcsuite/btcscript#example-ExtractPkScriptAddrs)
|
||||||
Demonstrates extracting information from a standard public key script.
|
Demonstrates extracting information from a standard public key script.
|
||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/btcsuite/btcnet"
|
"github.com/btcsuite/btcnet"
|
||||||
|
"github.com/btcsuite/btcscript"
|
||||||
"github.com/btcsuite/btcutil"
|
"github.com/btcsuite/btcutil"
|
||||||
"github.com/conformal/btcscript"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// decodeHex decodes the passed hex string and returns the resulting bytes. It
|
// decodeHex decodes the passed hex string and returns the resulting bytes. It
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/btcsuite/btcnet"
|
"github.com/btcsuite/btcnet"
|
||||||
|
"github.com/btcsuite/btcscript"
|
||||||
"github.com/btcsuite/btcutil"
|
"github.com/btcsuite/btcutil"
|
||||||
"github.com/conformal/btcscript"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// This example demonstrates creating a script which pays to a bitcoin address.
|
// This example demonstrates creating a script which pays to a bitcoin address.
|
||||||
|
|
|
@ -10,7 +10,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/conformal/btcscript"
|
"github.com/btcsuite/btcscript"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSetLogWriter(t *testing.T) {
|
func TestSetLogWriter(t *testing.T) {
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/btcsuite/btcscript"
|
||||||
"github.com/btcsuite/btcwire"
|
"github.com/btcsuite/btcwire"
|
||||||
"github.com/conformal/btcscript"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// test scripts to test as many opcodes as possible.
|
// test scripts to test as many opcodes as possible.
|
||||||
|
|
|
@ -12,9 +12,9 @@ import (
|
||||||
|
|
||||||
"github.com/btcsuite/btcec"
|
"github.com/btcsuite/btcec"
|
||||||
"github.com/btcsuite/btcnet"
|
"github.com/btcsuite/btcnet"
|
||||||
|
"github.com/btcsuite/btcscript"
|
||||||
"github.com/btcsuite/btcutil"
|
"github.com/btcsuite/btcutil"
|
||||||
"github.com/btcsuite/btcwire"
|
"github.com/btcsuite/btcwire"
|
||||||
"github.com/conformal/btcscript"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestPushedData(t *testing.T) {
|
func TestPushedData(t *testing.T) {
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/conformal/btcscript"
|
"github.com/btcsuite/btcscript"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestScriptBuilderAddOp tests that pushing opcodes to a script via the
|
// TestScriptBuilderAddOp tests that pushing opcodes to a script via the
|
||||||
|
|
|
@ -11,7 +11,7 @@ import (
|
||||||
"math/big"
|
"math/big"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/conformal/btcscript"
|
"github.com/btcsuite/btcscript"
|
||||||
)
|
)
|
||||||
|
|
||||||
type stackTest struct {
|
type stackTest struct {
|
||||||
|
|
Loading…
Reference in a new issue