Browse Source

remove go-crypto from go-crypto:

use tendermint/crypto :-)
pull/1782/head
Liamsi 6 years ago
parent
commit
c96b27136f
7 changed files with 6 additions and 7 deletions
  1. +1
    -1
      crypto/merkle/simple_map.go
  2. +1
    -1
      crypto/merkle/simple_map_test.go
  3. +1
    -1
      crypto/merkle/simple_tree.go
  4. +1
    -1
      crypto/merkle/simple_tree_test.go
  5. +1
    -1
      crypto/pub_key.go
  6. +1
    -1
      crypto/tmhash/hash_test.go
  7. +0
    -1
      types/heartbeat_test.go

+ 1
- 1
crypto/merkle/simple_map.go 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"
)


+ 1
- 1
crypto/merkle/simple_map_test.go 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


+ 1
- 1
crypto/merkle/simple_tree.go 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).


+ 1
- 1
crypto/merkle/simple_tree_test.go 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


+ 1
- 1
crypto/pub_key.go 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.


+ 1
- 1
crypto/tmhash/hash_test.go 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) {


+ 0
- 1
types/heartbeat_test.go 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.../}")
}


Loading…
Cancel
Save