mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 06:42:16 +00:00
remove go-crypto from go-crypto:
use tendermint/crypto :-)
This commit is contained in:
parent
80ab7bfe99
commit
c96b27136f
@ -1,7 +1,7 @@
|
|||||||
package merkle
|
package merkle
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/tendermint/go-crypto/tmhash"
|
"github.com/tendermint/tendermint/crypto/tmhash"
|
||||||
cmn "github.com/tendermint/tmlibs/common"
|
cmn "github.com/tendermint/tmlibs/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/tendermint/go-crypto/tmhash"
|
"github.com/tendermint/tendermint/crypto/tmhash"
|
||||||
)
|
)
|
||||||
|
|
||||||
type strHasher string
|
type strHasher string
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package merkle
|
package merkle
|
||||||
|
|
||||||
import (
|
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).
|
// SimpleHashFromTwoHashes is the basic operation of the Merkle tree: Hash(left | right).
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
. "github.com/tendermint/tmlibs/test"
|
. "github.com/tendermint/tmlibs/test"
|
||||||
|
|
||||||
"testing"
|
"testing"
|
||||||
"github.com/tendermint/go-crypto/tmhash"
|
"github.com/tendermint/tendermint/crypto/tmhash"
|
||||||
)
|
)
|
||||||
|
|
||||||
type testItem []byte
|
type testItem []byte
|
||||||
|
@ -14,7 +14,7 @@ import (
|
|||||||
|
|
||||||
cmn "github.com/tendermint/tmlibs/common"
|
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.
|
// An address is a []byte, but hex-encoded even in JSON.
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/tendermint/go-crypto/tmhash"
|
"github.com/tendermint/tendermint/crypto/tmhash"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestHash(t *testing.T) {
|
func TestHash(t *testing.T) {
|
||||||
|
@ -31,7 +31,6 @@ func TestHeartbeatString(t *testing.T) {
|
|||||||
sig, err := key.Sign([]byte("Tendermint"))
|
sig, err := key.Sign([]byte("Tendermint"))
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
hb.Signature = sig
|
hb.Signature = sig
|
||||||
|
|
||||||
require.Equal(t, hb.String(), "Heartbeat{1:000000000000 11/02 (0) /FF41E371B9BF.../}")
|
require.Equal(t, hb.String(), "Heartbeat{1:000000000000 11/02 (0) /FF41E371B9BF.../}")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user