secp256k1: Start v3 module dev cycle.
Upcoming changes constitute breaking public API changes to the secp256k1 module, therefore, this follows the process for introducing major API breaks which consists of: - Bump the major version in the go.mod of the affected module if not already done since the last release tag - Add a replacement to the go.mod in the main module if not already done since the last release tag - Update all imports in the repo to use the new major version as necessary - Make necessary modifications to allow all other modules to use the new version in the same commit - Repeat the process for any other modules the require a new major as a result of consuming the new major(s)
This commit is contained in:
parent
4ef5df3c6d
commit
85f0c09df2
@ -1,5 +1,5 @@
|
||||
// Copyright (c) 2015-2016 The btcsuite developers
|
||||
// Copyright (c) 2015-2019 The Decred developers
|
||||
// Copyright (c) 2015-2020 The Decred developers
|
||||
// Use of this source code is governed by an ISC
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
@ -9,7 +9,7 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/decred/dcrd/blockchain/stake/v3"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
"github.com/decred/dcrd/txscript/v3"
|
||||
)
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// Copyright (c) 2016 The btcsuite developers
|
||||
// Copyright (c) 2016-2019 The Decred developers
|
||||
// Copyright (c) 2016-2020 The Decred developers
|
||||
// Use of this source code is governed by an ISC
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
@ -18,7 +18,7 @@ import (
|
||||
"github.com/decred/dcrd/blockchain/v3/chaingen"
|
||||
"github.com/decred/dcrd/chaincfg/chainhash"
|
||||
"github.com/decred/dcrd/dcrec"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
"github.com/decred/dcrd/dcrutil/v3"
|
||||
"github.com/decred/dcrd/txscript/v3"
|
||||
"github.com/decred/dcrd/wire"
|
||||
|
||||
@ -9,7 +9,7 @@ require (
|
||||
github.com/decred/dcrd/chaincfg/v3 v3.0.0-00010101000000-000000000000
|
||||
github.com/decred/dcrd/database/v2 v2.0.1
|
||||
github.com/decred/dcrd/dcrec v1.0.0
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v2 v2.0.0
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v3 v3.0.0-00010101000000-000000000000
|
||||
github.com/decred/dcrd/dcrutil/v3 v3.0.0-20200104000002-54b67d3474fb
|
||||
github.com/decred/dcrd/gcs/v2 v2.0.0
|
||||
github.com/decred/dcrd/txscript/v3 v3.0.0-20200104000002-54b67d3474fb
|
||||
@ -20,6 +20,7 @@ require (
|
||||
replace (
|
||||
github.com/decred/dcrd/blockchain/stake/v3 => ./stake
|
||||
github.com/decred/dcrd/chaincfg/v3 => ../chaincfg
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v3 => ../dcrec/secp256k1
|
||||
github.com/decred/dcrd/dcrutil/v3 => ../dcrutil
|
||||
github.com/decred/dcrd/txscript/v3 => ../txscript
|
||||
)
|
||||
|
||||
@ -15,6 +15,7 @@ require (
|
||||
|
||||
replace (
|
||||
github.com/decred/dcrd/chaincfg/v3 => ../../chaincfg
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v3 => ../../dcrec/secp256k1
|
||||
github.com/decred/dcrd/dcrutil/v3 => ../../dcrutil
|
||||
github.com/decred/dcrd/txscript/v3 => ../../txscript
|
||||
)
|
||||
|
||||
@ -19,5 +19,6 @@ require (
|
||||
|
||||
replace (
|
||||
github.com/decred/dcrd/chaincfg/v3 => ../chaincfg
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v3 => ../dcrec/secp256k1
|
||||
github.com/decred/dcrd/dcrutil/v3 => ../dcrutil
|
||||
)
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// Copyright (c) 2014 The btcsuite developers
|
||||
// Copyright (c) 2015-2016 The Decred developers
|
||||
// Copyright (c) 2015-2020 The Decred developers
|
||||
// Use of this source code is governed by an ISC
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
@ -10,7 +10,7 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/decred/dcrd/chaincfg/chainhash"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
)
|
||||
|
||||
// This example demonstrates signing a message with a secp256k1 private key that
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// Copyright 2015 The btcsuite developers
|
||||
// Copyright (c) 2015-2019 The Decred developers
|
||||
// Copyright (c) 2015-2020 The Decred developers
|
||||
// Use of this source code is governed by an ISC
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
@ -18,7 +18,7 @@ import (
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@ -43,6 +43,7 @@ func main() {
|
||||
base64.StdEncoding.Encode(encoded, compressed.Bytes())
|
||||
|
||||
fmt.Fprintln(fi, "// Copyright (c) 2015 The btcsuite developers")
|
||||
fmt.Fprintln(fi, "// Copyright (c) 2015-2020 The Decred developers")
|
||||
fmt.Fprintln(fi, "// Use of this source code is governed by an ISC")
|
||||
fmt.Fprintln(fi, "// license that can be found in the LICENSE file.")
|
||||
fmt.Fprintln(fi)
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
module github.com/decred/dcrd/dcrec/secp256k1/v2
|
||||
module github.com/decred/dcrd/dcrec/secp256k1/v3
|
||||
|
||||
go 1.11
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2015-2019 The Decred developers
|
||||
// Copyright (c) 2015-2020 The Decred developers
|
||||
// Use of this source code is governed by an ISC
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
@ -12,7 +12,7 @@ import (
|
||||
"math/big"
|
||||
|
||||
"github.com/decred/dcrd/chaincfg/chainhash"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
)
|
||||
|
||||
// scalarSize is the size of an encoded big endian scalar.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2015-2019 The Decred developers
|
||||
// Copyright (c) 2015-2020 The Decred developers
|
||||
// Use of this source code is governed by an ISC
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
@ -11,7 +11,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/decred/dcrd/chaincfg/chainhash"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
)
|
||||
|
||||
type SchnorrSigningTestVectorHex struct {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// Copyright (c) 2013-2014 The btcsuite developers
|
||||
// Copyright (c) 2015-2019 The Decred developers
|
||||
// Copyright (c) 2015-2020 The Decred developers
|
||||
// Use of this source code is governed by an ISC
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
@ -8,7 +8,7 @@ package schnorr
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
)
|
||||
|
||||
// These constants define the lengths of serialized public keys.
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// Copyright (c) 2013-2014 The btcsuite developers
|
||||
// Copyright (c) 2015-2019 The Decred developers
|
||||
// Copyright (c) 2015-2020 The Decred developers
|
||||
// Use of this source code is governed by an ISC
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
@ -10,7 +10,7 @@ import (
|
||||
"math/big"
|
||||
|
||||
"github.com/decred/dcrd/chaincfg/chainhash"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
)
|
||||
|
||||
// Signature is a type representing a Schnorr signature.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2015-2019 The Decred developers
|
||||
// Copyright (c) 2015-2020 The Decred developers
|
||||
// Use of this source code is governed by an ISC
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
@ -8,7 +8,7 @@ import (
|
||||
"fmt"
|
||||
"math/big"
|
||||
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
)
|
||||
|
||||
// Sha256VersionStringRFC6979 is the RFC6979 nonce version for a Schnorr signature
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2015-2019 The Decred developers
|
||||
// Copyright (c) 2015-2020 The Decred developers
|
||||
// Use of this source code is governed by an ISC
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
@ -12,7 +12,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/decred/dcrd/chaincfg/chainhash"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
)
|
||||
|
||||
type signerHex struct {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// Copyright (c) 2013, 2014 The btcsuite developers
|
||||
// Copyright (c) 2015-2019 The Decred developers
|
||||
// Copyright (c) 2015-2020 The Decred developers
|
||||
// Use of this source code is governed by an ISC
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
@ -13,8 +13,8 @@ import (
|
||||
"github.com/decred/dcrd/crypto/ripemd160"
|
||||
"github.com/decred/dcrd/dcrec"
|
||||
"github.com/decred/dcrd/dcrec/edwards/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2/schnorr"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3/schnorr"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// Copyright (c) 2013, 2014 The btcsuite developers
|
||||
// Copyright (c) 2015-2019 The Decred developers
|
||||
// Copyright (c) 2015-2020 The Decred developers
|
||||
// Use of this source code is governed by an ISC
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
@ -15,7 +15,7 @@ import (
|
||||
"github.com/decred/base58"
|
||||
"github.com/decred/dcrd/crypto/ripemd160"
|
||||
"github.com/decred/dcrd/dcrec"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
)
|
||||
|
||||
// mockAddrParams implements the AddressParams interface and is used throughout
|
||||
|
||||
@ -10,8 +10,11 @@ require (
|
||||
github.com/decred/dcrd/crypto/ripemd160 v1.0.0
|
||||
github.com/decred/dcrd/dcrec v1.0.0
|
||||
github.com/decred/dcrd/dcrec/edwards/v2 v2.0.0
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v2 v2.0.0
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v3 v3.0.0-00010101000000-000000000000
|
||||
github.com/decred/dcrd/wire v1.3.0
|
||||
)
|
||||
|
||||
replace github.com/decred/dcrd/chaincfg/v3 => ../chaincfg
|
||||
replace (
|
||||
github.com/decred/dcrd/chaincfg/v3 => ../chaincfg
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v3 => ../dcrec/secp256k1
|
||||
)
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// Copyright (c) 2013-2016 The btcsuite developers
|
||||
// Copyright (c) 2015-2019 The Decred developers
|
||||
// Copyright (c) 2015-2020 The Decred developers
|
||||
// Use of this source code is governed by an ISC
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
@ -14,7 +14,7 @@ import (
|
||||
"github.com/decred/dcrd/chaincfg/chainhash"
|
||||
"github.com/decred/dcrd/dcrec"
|
||||
"github.com/decred/dcrd/dcrec/edwards/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
)
|
||||
|
||||
// ErrMalformedPrivateKey describes an error where a WIF-encoded private key
|
||||
|
||||
@ -15,6 +15,7 @@ require (
|
||||
replace (
|
||||
github.com/decred/dcrd/blockchain/stake/v3 => ../blockchain/stake
|
||||
github.com/decred/dcrd/chaincfg/v3 => ../chaincfg
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v3 => ../dcrec/secp256k1
|
||||
github.com/decred/dcrd/dcrutil/v3 => ../dcrutil
|
||||
github.com/decred/dcrd/txscript/v3 => ../txscript
|
||||
)
|
||||
|
||||
@ -14,6 +14,7 @@ require (
|
||||
replace (
|
||||
github.com/decred/dcrd/blockchain/stake/v3 => ../blockchain/stake
|
||||
github.com/decred/dcrd/chaincfg/v3 => ../chaincfg
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v3 => ../dcrec/secp256k1
|
||||
github.com/decred/dcrd/dcrutil/v3 => ../dcrutil
|
||||
github.com/decred/dcrd/txscript/v3 => ../txscript
|
||||
)
|
||||
|
||||
4
go.mod
4
go.mod
@ -18,7 +18,7 @@ require (
|
||||
github.com/decred/dcrd/crypto/ripemd160 v1.0.0
|
||||
github.com/decred/dcrd/database/v2 v2.0.1
|
||||
github.com/decred/dcrd/dcrec v1.0.0
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v2 v2.0.0
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v3 v3.0.0-00010101000000-000000000000
|
||||
github.com/decred/dcrd/dcrjson/v3 v3.0.1
|
||||
github.com/decred/dcrd/dcrutil/v3 v3.0.0-20200104000002-54b67d3474fb
|
||||
github.com/decred/dcrd/fees/v2 v2.0.0
|
||||
@ -57,7 +57,7 @@ replace (
|
||||
github.com/decred/dcrd/crypto/ripemd160 => ./crypto/ripemd160
|
||||
github.com/decred/dcrd/database/v2 => ./database
|
||||
github.com/decred/dcrd/dcrec => ./dcrec
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v2 => ./dcrec/secp256k1
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v3 => ./dcrec/secp256k1
|
||||
github.com/decred/dcrd/dcrjson/v3 => ./dcrjson
|
||||
github.com/decred/dcrd/dcrutil/v3 => ./dcrutil
|
||||
github.com/decred/dcrd/fees/v2 => ./fees
|
||||
|
||||
1
go.sum
1
go.sum
@ -10,6 +10,7 @@ github.com/decred/base58 v1.0.2 h1:yupIH6bg+q7KYfBk7oUv3xFjKGb5Ypm4+v/61X4keGY=
|
||||
github.com/decred/base58 v1.0.2/go.mod h1:pXP9cXCfM2sFLb2viz2FNIdeMWmZDBKG3ZBYbiSM78E=
|
||||
github.com/decred/dcrd/dcrec/edwards/v2 v2.0.0 h1:E5KszxGgpjpmW8vN811G6rBAZg0/S/DftdGqN4FW5x4=
|
||||
github.com/decred/dcrd/dcrec/edwards/v2 v2.0.0/go.mod h1:d0H8xGMWbiIQP7gN3v2rByWUcuZPm9YsgmnfoxgbINc=
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v2 v2.0.0/go.mod h1:3s92l0paYkZoIHuj4X93Teg/HB7eGM9x/zokGw+u4mY=
|
||||
github.com/decred/dcrd/rpc/jsonrpc/types v1.0.1 h1:sWsGtWzdmrna6aysDCHwjANTJh+Lxt2xp6S10ahP79Y=
|
||||
github.com/decred/dcrd/rpc/jsonrpc/types v1.0.1/go.mod h1:dJUp9PoyFYklzmlImpVkVLOr6j4zKuUv66YgemP2sd8=
|
||||
github.com/decred/dcrwallet/rpc/jsonrpc/types v1.3.0 h1:yCxtFqK7X6GvZWQzHXjCwoGCy9YVe3tGEwxCjW5rYQk=
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// Copyright (c) 2014-2016 The btcsuite developers
|
||||
// Copyright (c) 2015-2019 The Decred developers
|
||||
// Copyright (c) 2015-2020 The Decred developers
|
||||
// Use of this source code is governed by an ISC
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
@ -21,7 +21,7 @@ import (
|
||||
|
||||
"github.com/decred/base58"
|
||||
"github.com/decred/dcrd/chaincfg/chainhash"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
"github.com/decred/dcrd/dcrutil/v3"
|
||||
)
|
||||
|
||||
|
||||
@ -7,11 +7,12 @@ require (
|
||||
github.com/decred/dcrd/chaincfg/chainhash v1.0.2
|
||||
github.com/decred/dcrd/chaincfg/v3 v3.0.0-00010101000000-000000000000
|
||||
github.com/decred/dcrd/dcrec v1.0.0
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v2 v2.0.0
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v3 v3.0.0-00010101000000-000000000000
|
||||
github.com/decred/dcrd/dcrutil/v3 v3.0.0-20200104000002-54b67d3474fb
|
||||
)
|
||||
|
||||
replace (
|
||||
github.com/decred/dcrd/chaincfg/v3 => ../chaincfg
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v3 => ../dcrec/secp256k1
|
||||
github.com/decred/dcrd/dcrutil/v3 => ../dcrutil
|
||||
)
|
||||
|
||||
@ -9,7 +9,7 @@ require (
|
||||
github.com/decred/dcrd/chaincfg/chainhash v1.0.2
|
||||
github.com/decred/dcrd/chaincfg/v3 v3.0.0-00010101000000-000000000000
|
||||
github.com/decred/dcrd/dcrec v1.0.0
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v2 v2.0.0
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v3 v3.0.0-00010101000000-000000000000
|
||||
github.com/decred/dcrd/dcrutil/v3 v3.0.0-20200104000002-54b67d3474fb
|
||||
github.com/decred/dcrd/mining/v3 v3.0.0-20200104000002-54b67d3474fb
|
||||
github.com/decred/dcrd/txscript/v3 v3.0.0-20200104000002-54b67d3474fb
|
||||
@ -21,6 +21,7 @@ replace (
|
||||
github.com/decred/dcrd/blockchain/stake/v3 => ../blockchain/stake
|
||||
github.com/decred/dcrd/blockchain/v3 => ../blockchain
|
||||
github.com/decred/dcrd/chaincfg/v3 => ../chaincfg
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v3 => ../dcrec/secp256k1
|
||||
github.com/decred/dcrd/dcrutil/v3 => ../dcrutil
|
||||
github.com/decred/dcrd/mining/v3 => ../mining
|
||||
github.com/decred/dcrd/txscript/v3 => ../txscript
|
||||
|
||||
@ -36,7 +36,6 @@ github.com/decred/dcrd/dcrutil/v2 v2.0.1 h1:aL+c7o7Q66HV1gIif+XkNYo9DeorN3l01Vns
|
||||
github.com/decred/dcrd/dcrutil/v2 v2.0.1/go.mod h1:JdEgF6eh0TTohPeiqDxqDSikTSvAczq0J7tFMyyeD+k=
|
||||
github.com/decred/dcrd/gcs/v2 v2.0.0 h1:nCc3q9iIwIpF0khTSiC7xYgojKoKnPrqrgVjboOBXDE=
|
||||
github.com/decred/dcrd/gcs/v2 v2.0.0/go.mod h1:3XjKcrtvB+r2ezhIsyNCLk6dRnXRJVyYmsd1P3SkU3o=
|
||||
github.com/decred/dcrd/lru v1.0.0/go.mod h1:mxKOwFd7lFjN2GZYsiz/ecgqR6kkYAl+0pz0tEMk218=
|
||||
github.com/decred/dcrd/txscript/v2 v2.1.0 h1:IKIpNm0lPmNQoaZ2zxZm1qMwfmLb/XXeahxXlfc+MrA=
|
||||
github.com/decred/dcrd/txscript/v2 v2.1.0/go.mod h1:XaJAVrZU4NWRx4UEzTiDAs86op1m8GRJLz24SDBKOi0=
|
||||
github.com/decred/dcrd/wire v1.3.0 h1:X76I2/a8esUmxXmFpJpAvXEi014IA4twgwcOBeIS8lE=
|
||||
|
||||
@ -22,7 +22,7 @@ import (
|
||||
"github.com/decred/dcrd/chaincfg/chainhash"
|
||||
"github.com/decred/dcrd/chaincfg/v3"
|
||||
"github.com/decred/dcrd/dcrec"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
"github.com/decred/dcrd/dcrutil/v3"
|
||||
"github.com/decred/dcrd/mining/v3"
|
||||
"github.com/decred/dcrd/txscript/v3"
|
||||
|
||||
@ -15,7 +15,7 @@ import (
|
||||
"github.com/decred/dcrd/chaincfg/chainhash"
|
||||
"github.com/decred/dcrd/chaincfg/v3"
|
||||
"github.com/decred/dcrd/dcrec"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
"github.com/decred/dcrd/dcrutil/v3"
|
||||
"github.com/decred/dcrd/txscript/v3"
|
||||
"github.com/decred/dcrd/wire"
|
||||
|
||||
@ -13,6 +13,7 @@ replace (
|
||||
github.com/decred/dcrd/blockchain/stake/v3 => ../blockchain/stake
|
||||
github.com/decred/dcrd/blockchain/v3 => ../blockchain
|
||||
github.com/decred/dcrd/chaincfg/v3 => ../chaincfg
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v3 => ../dcrec/secp256k1
|
||||
github.com/decred/dcrd/dcrutil/v3 => ../dcrutil
|
||||
github.com/decred/dcrd/txscript/v3 => ../txscript
|
||||
)
|
||||
|
||||
@ -14,6 +14,7 @@ require (
|
||||
|
||||
replace (
|
||||
github.com/decred/dcrd/chaincfg/v3 => ../chaincfg
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v3 => ../dcrec/secp256k1
|
||||
github.com/decred/dcrd/dcrutil/v3 => ../dcrutil
|
||||
github.com/decred/dcrd/txscript/v3 => ../txscript
|
||||
)
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2019 The Decred developers
|
||||
// Copyright (c) 2019-2020 The Decred developers
|
||||
// Use of this source code is governed by an ISC
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
@ -13,6 +13,6 @@ package main
|
||||
|
||||
import (
|
||||
_ "github.com/decred/dcrd/bech32"
|
||||
_ "github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
_ "github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
_ "github.com/decred/dcrd/fees/v2"
|
||||
)
|
||||
|
||||
@ -20,6 +20,7 @@ require (
|
||||
|
||||
replace (
|
||||
github.com/decred/dcrd/chaincfg/v3 => ../chaincfg
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v3 => ../dcrec/secp256k1
|
||||
github.com/decred/dcrd/dcrutil/v3 => ../dcrutil
|
||||
github.com/decred/dcrd/rpc/jsonrpc/types/v2 => ../rpc/jsonrpc/types
|
||||
)
|
||||
|
||||
@ -44,7 +44,7 @@ import (
|
||||
"github.com/decred/dcrd/chaincfg/chainhash"
|
||||
"github.com/decred/dcrd/chaincfg/v3"
|
||||
"github.com/decred/dcrd/database/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
"github.com/decred/dcrd/dcrjson/v3"
|
||||
"github.com/decred/dcrd/dcrutil/v3"
|
||||
"github.com/decred/dcrd/fees/v2"
|
||||
|
||||
@ -15,7 +15,7 @@ import (
|
||||
"github.com/decred/dcrd/chaincfg/chainhash"
|
||||
"github.com/decred/dcrd/chaincfg/v3"
|
||||
"github.com/decred/dcrd/dcrec"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
"github.com/decred/dcrd/dcrutil/v3"
|
||||
"github.com/decred/dcrd/hdkeychain/v2"
|
||||
"github.com/decred/dcrd/rpcclient/v5"
|
||||
|
||||
@ -15,7 +15,7 @@ import (
|
||||
"github.com/decred/dcrd/chaincfg/chainhash"
|
||||
"github.com/decred/dcrd/chaincfg/v3"
|
||||
"github.com/decred/dcrd/dcrec"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
"github.com/decred/dcrd/dcrutil/v3"
|
||||
dcrdtypes "github.com/decred/dcrd/rpc/jsonrpc/types/v2"
|
||||
"github.com/decred/dcrd/rpcclient/v5"
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// Copyright (c) 2013-2017 The btcsuite developers
|
||||
// Copyright (c) 2015-2019 The Decred developers
|
||||
// Copyright (c) 2015-2020 The Decred developers
|
||||
// Use of this source code is governed by an ISC
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
@ -10,7 +10,7 @@ import (
|
||||
"math/big"
|
||||
"strings"
|
||||
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
"github.com/decred/dcrd/wire"
|
||||
)
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ import (
|
||||
"github.com/decred/dcrd/chaincfg/chainhash"
|
||||
"github.com/decred/dcrd/chaincfg/v3"
|
||||
"github.com/decred/dcrd/dcrec"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
"github.com/decred/dcrd/dcrutil/v3"
|
||||
"github.com/decred/dcrd/txscript/v3"
|
||||
"github.com/decred/dcrd/wire"
|
||||
|
||||
@ -8,7 +8,7 @@ require (
|
||||
github.com/decred/dcrd/crypto/ripemd160 v1.0.0
|
||||
github.com/decred/dcrd/dcrec v1.0.0
|
||||
github.com/decred/dcrd/dcrec/edwards/v2 v2.0.0
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v2 v2.0.0
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v3 v3.0.0-00010101000000-000000000000
|
||||
github.com/decred/dcrd/dcrutil/v3 v3.0.0-20200104000002-54b67d3474fb
|
||||
github.com/decred/dcrd/wire v1.3.0
|
||||
github.com/decred/slog v1.0.0
|
||||
@ -16,5 +16,6 @@ require (
|
||||
|
||||
replace (
|
||||
github.com/decred/dcrd/chaincfg/v3 => ../chaincfg
|
||||
github.com/decred/dcrd/dcrec/secp256k1/v3 => ../dcrec/secp256k1
|
||||
github.com/decred/dcrd/dcrutil/v3 => ../dcrutil
|
||||
)
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// Copyright (c) 2013-2016 The btcsuite developers
|
||||
// Copyright (c) 2015-2019 The Decred developers
|
||||
// Copyright (c) 2015-2020 The Decred developers
|
||||
// Use of this source code is governed by an ISC
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
@ -18,8 +18,8 @@ import (
|
||||
"github.com/decred/dcrd/crypto/ripemd160"
|
||||
"github.com/decred/dcrd/dcrec"
|
||||
"github.com/decred/dcrd/dcrec/edwards/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2/schnorr"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3/schnorr"
|
||||
"github.com/decred/dcrd/wire"
|
||||
)
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// Copyright (c) 2015-2016 The btcsuite developers
|
||||
// Copyright (c) 2016-2019 The Decred developers
|
||||
// Copyright (c) 2016-2020 The Decred developers
|
||||
// Use of this source code is governed by an ISC
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
@ -10,7 +10,7 @@ import (
|
||||
"sync"
|
||||
|
||||
"github.com/decred/dcrd/chaincfg/chainhash"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
)
|
||||
|
||||
// sigCacheEntry represents an entry in the SigCache. Entries within the
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// Copyright (c) 2015-2016 The btcsuite developers
|
||||
// Copyright (c) 2016 The Decred developers
|
||||
// Copyright (c) 2016-2020 The Decred developers
|
||||
// Use of this source code is governed by an ISC
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
@ -11,7 +11,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/decred/dcrd/chaincfg/chainhash"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
)
|
||||
|
||||
// genRandomSig returns a random message, a signature of the message under the
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// Copyright (c) 2013-2015 The btcsuite developers
|
||||
// Copyright (c) 2015-2019 The Decred developers
|
||||
// Copyright (c) 2015-2020 The Decred developers
|
||||
// Use of this source code is governed by an ISC
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
@ -11,8 +11,8 @@ import (
|
||||
|
||||
"github.com/decred/dcrd/dcrec"
|
||||
"github.com/decred/dcrd/dcrec/edwards/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2/schnorr"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3/schnorr"
|
||||
"github.com/decred/dcrd/dcrutil/v3"
|
||||
"github.com/decred/dcrd/wire"
|
||||
)
|
||||
|
||||
@ -16,8 +16,8 @@ import (
|
||||
"github.com/decred/dcrd/chaincfg/v3"
|
||||
"github.com/decred/dcrd/dcrec"
|
||||
"github.com/decred/dcrd/dcrec/edwards/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2/schnorr"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3/schnorr"
|
||||
"github.com/decred/dcrd/dcrutil/v3"
|
||||
"github.com/decred/dcrd/wire"
|
||||
)
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// Copyright (c) 2013-2017 The btcsuite developers
|
||||
// Copyright (c) 2015-2019 The Decred developers
|
||||
// Copyright (c) 2015-2020 The Decred developers
|
||||
// Use of this source code is governed by an ISC
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
@ -11,7 +11,7 @@ import (
|
||||
|
||||
"github.com/decred/dcrd/chaincfg/chainhash"
|
||||
"github.com/decred/dcrd/dcrec"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
"github.com/decred/dcrd/dcrutil/v3"
|
||||
)
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@ import (
|
||||
"github.com/decred/dcrd/chaincfg/chainhash"
|
||||
"github.com/decred/dcrd/chaincfg/v3"
|
||||
"github.com/decred/dcrd/dcrec"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v2"
|
||||
"github.com/decred/dcrd/dcrec/secp256k1/v3"
|
||||
"github.com/decred/dcrd/dcrutil/v3"
|
||||
)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user