From 26a58718a365b3b0c68d6fc0f3fe3a02a9bf8407 Mon Sep 17 00:00:00 2001 From: Wilmer Paulino Date: Tue, 27 Aug 2019 15:23:26 -0700 Subject: [PATCH] build: replace use of btcsuite/golangcrypto with golang.org/x/crypto btcsuite/golangcrypto was created to cope with the lack of package management for Go back in the day. This is no longer needed as we now use modules. --- go.mod | 9 ++------- go.sum | 1 - internal/prompt/prompt.go | 2 +- snacl/snacl.go | 4 ++-- 4 files changed, 5 insertions(+), 11 deletions(-) diff --git a/go.mod b/go.mod index 1145245..1c93063 100644 --- a/go.mod +++ b/go.mod @@ -4,23 +4,18 @@ require ( github.com/btcsuite/btcd v0.0.0-20190523000118-16327141da8c github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d - github.com/btcsuite/golangcrypto v0.0.0-20150304025918-53f62d9b43e8 github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792 github.com/coreos/bbolt v1.3.2 github.com/davecgh/go-spew v1.1.1 github.com/golang/protobuf v1.2.0 github.com/jessevdk/go-flags v1.4.0 github.com/jrick/logrotate v1.0.0 - github.com/kkdai/bstream v0.0.0-20181106074824-b3251f7901ec // indirect - github.com/kr/pretty v0.1.0 // indirect github.com/lightninglabs/gozmq v0.0.0-20190710231225-cea2a031735d github.com/lightninglabs/neutrino v0.0.0-20190313035638-e1ad4c33fb18 go.etcd.io/bbolt v1.3.3 // indirect golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67 golang.org/x/net v0.0.0-20190206173232-65e2d4e15006 - golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 // indirect - golang.org/x/sys v0.0.0-20190209173611-3b5209105503 // indirect google.golang.org/grpc v1.18.0 - gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect - gopkg.in/yaml.v2 v2.2.2 // indirect ) + +go 1.13 diff --git a/go.sum b/go.sum index 2410dd9..bdc52c6 100644 --- a/go.sum +++ b/go.sum @@ -19,7 +19,6 @@ github.com/btcsuite/btcwallet v0.0.0-20180904010540-284e2e0e696e33d5be388f7f3d9a github.com/btcsuite/btcwallet v0.0.0-20190313032608-acf3b04b0273/go.mod h1:mkOYY8/psBiL5E+Wb0V7M0o+N7NXi2SZJz6+RKkncIc= github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd h1:R/opQEbFEy9JGkIguV40SvRY1uliPX8ifOvi6ICsFCw= github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg= -github.com/btcsuite/golangcrypto v0.0.0-20150304025918-53f62d9b43e8 h1:nOsAWScwueMVk/VLm/dvQQD7DuanyvAUb6B3P3eT274= github.com/btcsuite/golangcrypto v0.0.0-20150304025918-53f62d9b43e8/go.mod h1:tYvUd8KLhm/oXvUeSEs2VlLghFjQt9+ZaF9ghH0JNjc= github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVaaLLH7j4eDXPRvw78tMflu7Ie2bzYOH4Y8rRKBY= github.com/btcsuite/goleveldb v1.0.0 h1:Tvd0BfvqX9o823q1j2UZ/epQo09eJh6dTcRp79ilIN4= diff --git a/internal/prompt/prompt.go b/internal/prompt/prompt.go index 817f912..571ebfa 100644 --- a/internal/prompt/prompt.go +++ b/internal/prompt/prompt.go @@ -14,7 +14,7 @@ import ( "github.com/btcsuite/btcutil/hdkeychain" "github.com/btcsuite/btcwallet/internal/legacy/keystore" - "github.com/btcsuite/golangcrypto/ssh/terminal" + "golang.org/x/crypto/ssh/terminal" ) // ProvideSeed is used to prompt for the wallet seed which maybe required during diff --git a/snacl/snacl.go b/snacl/snacl.go index e893759..1f09531 100644 --- a/snacl/snacl.go +++ b/snacl/snacl.go @@ -14,8 +14,8 @@ import ( "runtime/debug" "github.com/btcsuite/btcwallet/internal/zero" - "github.com/btcsuite/golangcrypto/nacl/secretbox" - "github.com/btcsuite/golangcrypto/scrypt" + "golang.org/x/crypto/nacl/secretbox" + "golang.org/x/crypto/scrypt" ) var (