diff --git a/go.mod b/go.mod index 6bd72ef73b..ebd8699b64 100644 --- a/go.mod +++ b/go.mod @@ -15,11 +15,9 @@ require ( github.com/decred/dcrd/chaincfg/v3 v3.0.0 github.com/decred/dcrd/connmgr/v3 v3.0.0 github.com/decred/dcrd/container/apbf v1.0.0 - github.com/decred/dcrd/crypto/blake256 v1.0.0 github.com/decred/dcrd/crypto/ripemd160 v1.0.1 github.com/decred/dcrd/database/v2 v2.0.3-0.20210129190127-4ebd135a82f1 github.com/decred/dcrd/dcrec v1.0.0 - github.com/decred/dcrd/dcrec/edwards/v2 v2.0.1 github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.0-20210127014238-b33b46cf1a24 github.com/decred/dcrd/dcrjson/v3 v3.1.0 github.com/decred/dcrd/dcrutil/v4 v4.0.0-20210129181600-6ae0142d3b28 diff --git a/txscript/go.mod b/txscript/go.mod index 59e7991953..f06c04789b 100644 --- a/txscript/go.mod +++ b/txscript/go.mod @@ -4,8 +4,10 @@ go 1.13 require ( github.com/dchest/siphash v1.2.2 + github.com/decred/base58 v1.0.3 github.com/decred/dcrd/chaincfg/chainhash v1.0.2 github.com/decred/dcrd/chaincfg/v3 v3.0.0 + github.com/decred/dcrd/crypto/blake256 v1.0.0 github.com/decred/dcrd/crypto/ripemd160 v1.0.1 github.com/decred/dcrd/dcrec v1.0.0 github.com/decred/dcrd/dcrec/edwards/v2 v2.0.1 diff --git a/internal/staging/stdaddr/README.md b/txscript/stdaddr/README.md similarity index 97% rename from internal/staging/stdaddr/README.md rename to txscript/stdaddr/README.md index ebdb625927..7c880dba4b 100644 --- a/internal/staging/stdaddr/README.md +++ b/txscript/stdaddr/README.md @@ -3,7 +3,7 @@ stdaddr [![Build Status](https://github.com/decred/dcrd/workflows/Build%20and%20Test/badge.svg)](https://github.com/decred/dcrd/actions) [![ISC License](https://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org) -[![Doc](https://img.shields.io/badge/doc-reference-blue.svg)](https://pkg.go.dev/github.com/decred/dcrd/internal/staging/stdaddr) +[![Doc](https://img.shields.io/badge/doc-reference-blue.svg)](https://pkg.go.dev/github.com/decred/dcrd/txscript/v4/stdaddr) ## Decred Address Overview @@ -220,12 +220,12 @@ by the interface. ## Installation and Updating -This package is internal and therefore is neither directly installed nor needs -to be manually updated. +This package is part of the `github.com/decred/dcrd/txscript/v4` module. Use +the standard go tooling for working with modules to incorporate it. ## Examples -* [DecodeAddress](https://pkg.go.dev/github.com/decred/dcrd/internal/staging/stdaddr#example-DecodeAddress) +* [DecodeAddress](https://pkg.go.dev/github.com/decred/dcrd/txscript/v4/stdaddr#example-DecodeAddress) Demonstrates decoding addresses, generating their payment scripts and associated scripting language versions, determining supported capabilities by diff --git a/internal/staging/stdaddr/address.go b/txscript/stdaddr/address.go similarity index 100% rename from internal/staging/stdaddr/address.go rename to txscript/stdaddr/address.go diff --git a/internal/staging/stdaddr/address_test.go b/txscript/stdaddr/address_test.go similarity index 100% rename from internal/staging/stdaddr/address_test.go rename to txscript/stdaddr/address_test.go diff --git a/internal/staging/stdaddr/addressv0.go b/txscript/stdaddr/addressv0.go similarity index 100% rename from internal/staging/stdaddr/addressv0.go rename to txscript/stdaddr/addressv0.go diff --git a/internal/staging/stdaddr/bench_test.go b/txscript/stdaddr/bench_test.go similarity index 100% rename from internal/staging/stdaddr/bench_test.go rename to txscript/stdaddr/bench_test.go diff --git a/internal/staging/stdaddr/error.go b/txscript/stdaddr/error.go similarity index 100% rename from internal/staging/stdaddr/error.go rename to txscript/stdaddr/error.go diff --git a/internal/staging/stdaddr/error_test.go b/txscript/stdaddr/error_test.go similarity index 100% rename from internal/staging/stdaddr/error_test.go rename to txscript/stdaddr/error_test.go diff --git a/internal/staging/stdaddr/example_test.go b/txscript/stdaddr/example_test.go similarity index 99% rename from internal/staging/stdaddr/example_test.go rename to txscript/stdaddr/example_test.go index 88b5809e42..d773e3d690 100644 --- a/internal/staging/stdaddr/example_test.go +++ b/txscript/stdaddr/example_test.go @@ -8,7 +8,7 @@ import ( "fmt" "github.com/decred/dcrd/chaincfg/v3" - "github.com/decred/dcrd/internal/staging/stdaddr" + "github.com/decred/dcrd/txscript/v4/stdaddr" ) // This example demonstrates decoding addresses, generating their payment