remove go-crypto from go-crypto:

use tendermint/crypto :-)
This commit is contained in:
Liamsi 2018-06-20 21:05:38 -07:00
parent 80ab7bfe99
commit c96b27136f
7 changed files with 6 additions and 7 deletions

View File

@ -1,7 +1,7 @@
package merkle
import (
"github.com/tendermint/go-crypto/tmhash"
"github.com/tendermint/tendermint/crypto/tmhash"
cmn "github.com/tendermint/tmlibs/common"
)

View File

@ -5,7 +5,7 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/tendermint/go-crypto/tmhash"
"github.com/tendermint/tendermint/crypto/tmhash"
)
type strHasher string

View File

@ -1,7 +1,7 @@
package merkle
import (
"github.com/tendermint/go-crypto/tmhash"
"github.com/tendermint/tendermint/crypto/tmhash"
)
// SimpleHashFromTwoHashes is the basic operation of the Merkle tree: Hash(left | right).

View File

@ -7,7 +7,7 @@ import (
. "github.com/tendermint/tmlibs/test"
"testing"
"github.com/tendermint/go-crypto/tmhash"
"github.com/tendermint/tendermint/crypto/tmhash"
)
type testItem []byte

View File

@ -14,7 +14,7 @@ import (
cmn "github.com/tendermint/tmlibs/common"
"github.com/tendermint/go-crypto/tmhash"
"github.com/tendermint/tendermint/crypto/tmhash"
)
// An address is a []byte, but hex-encoded even in JSON.

View File

@ -5,7 +5,7 @@ import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/tendermint/go-crypto/tmhash"
"github.com/tendermint/tendermint/crypto/tmhash"
)
func TestHash(t *testing.T) {

View File

@ -31,7 +31,6 @@ func TestHeartbeatString(t *testing.T) {
sig, err := key.Sign([]byte("Tendermint"))
require.NoError(t, err)
hb.Signature = sig
require.Equal(t, hb.String(), "Heartbeat{1:000000000000 11/02 (0) /FF41E371B9BF.../}")
}