Browse Source

Moved crypto code to top level again

pull/1782/head
Ethan Frey 7 years ago
parent
commit
9016390a6e
44 changed files with 33 additions and 33 deletions
  1. +0
    -0
      LICENSE
  2. +0
    -0
      Makefile
  3. +0
    -0
      README.md
  4. +0
    -0
      armor.go
  5. +0
    -0
      armor_test.go
  6. +0
    -0
      bcrypt/base64.go
  7. +0
    -0
      bcrypt/bcrypt.go
  8. +0
    -0
      crypto.go
  9. +0
    -0
      embed_test.go
  10. +0
    -0
      encode_test.go
  11. +0
    -0
      glide.yaml
  12. +0
    -0
      hash.go
  13. +0
    -0
      hd/address.go
  14. +0
    -0
      hd/address_test.go
  15. +0
    -0
      hd/hd_test.go
  16. +0
    -0
      hd/test.json
  17. +1
    -1
      keys/cmd/keys/main.go
  18. +3
    -3
      keys/cmd/root.go
  19. +1
    -1
      keys/cmd/serve.go
  20. +1
    -1
      keys/cmd/utils.go
  21. +1
    -1
      keys/cryptostore/enc_storage.go
  22. +1
    -1
      keys/cryptostore/encoder_test.go
  23. +1
    -1
      keys/cryptostore/holder.go
  24. +2
    -2
      keys/cryptostore/holder_test.go
  25. +1
    -1
      keys/cryptostore/storage_test.go
  26. +1
    -1
      keys/server/helpers.go
  27. +2
    -2
      keys/server/keys.go
  28. +5
    -5
      keys/server/keys_test.go
  29. +1
    -1
      keys/storage/filestorage/main.go
  30. +1
    -1
      keys/storage/filestorage/main_test.go
  31. +1
    -1
      keys/storage/memstorage/main.go
  32. +1
    -1
      keys/storage/memstorage/main_test.go
  33. +3
    -3
      keys/tx/multi_test.go
  34. +3
    -3
      keys/tx/one_test.go
  35. +1
    -1
      keys/tx/reader.go
  36. +2
    -2
      keys/tx/reader_test.go
  37. +0
    -0
      priv_key.go
  38. +0
    -0
      pub_key.go
  39. +0
    -0
      pub_key_test.go
  40. +0
    -0
      random.go
  41. +0
    -0
      signature.go
  42. +0
    -0
      signature_test.go
  43. +0
    -0
      symmetric.go
  44. +0
    -0
      symmetric_test.go

crypto/LICENSE → LICENSE View File


crypto/Makefile → Makefile View File


crypto/README.md → README.md View File


crypto/armor.go → armor.go View File


crypto/armor_test.go → armor_test.go View File


crypto/bcrypt/base64.go → bcrypt/base64.go View File


crypto/bcrypt/bcrypt.go → bcrypt/bcrypt.go View File


crypto/crypto.go → crypto.go View File


crypto/embed_test.go → embed_test.go View File


crypto/encode_test.go → encode_test.go View File


crypto/glide.yaml → glide.yaml View File


crypto/hash.go → hash.go View File


crypto/hd/address.go → hd/address.go View File


crypto/hd/address_test.go → hd/address_test.go View File


crypto/hd/hd_test.go → hd/hd_test.go View File


crypto/hd/test.json → hd/test.json View File


+ 1
- 1
keys/cmd/keys/main.go View File

@ -17,7 +17,7 @@ package main
import (
"os"
"github.com/tendermint/go-keys/cmd"
"github.com/tendermint/go-crypto/keys/cmd"
)
func main() {


+ 3
- 3
keys/cmd/root.go View File

@ -19,9 +19,9 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"
keys "github.com/tendermint/go-keys"
"github.com/tendermint/go-keys/cryptostore"
"github.com/tendermint/go-keys/storage/filestorage"
keys "github.com/tendermint/go-crypto/keys"
"github.com/tendermint/go-crypto/keys/cryptostore"
"github.com/tendermint/go-crypto/keys/storage/filestorage"
)
const KeySubdir = "keys"


+ 1
- 1
keys/cmd/serve.go View File

@ -25,7 +25,7 @@ import (
"github.com/pkg/errors"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/tendermint/go-keys/server"
"github.com/tendermint/go-crypto/keys/server"
)
// serveCmd represents the serve command


+ 1
- 1
keys/cmd/utils.go View File

@ -7,7 +7,7 @@ import (
"github.com/pkg/errors"
"github.com/spf13/viper"
data "github.com/tendermint/go-data"
keys "github.com/tendermint/go-keys"
keys "github.com/tendermint/go-crypto/keys"
)
const PassLength = 10


+ 1
- 1
keys/cryptostore/enc_storage.go View File

@ -2,7 +2,7 @@ package cryptostore
import (
crypto "github.com/tendermint/go-crypto"
keys "github.com/tendermint/go-keys"
keys "github.com/tendermint/go-crypto/keys"
)
// encryptedStorage needs passphrase to get private keys


+ 1
- 1
keys/cryptostore/encoder_test.go View File

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


+ 1
- 1
keys/cryptostore/holder.go View File

@ -1,6 +1,6 @@
package cryptostore
import keys "github.com/tendermint/go-keys"
import keys "github.com/tendermint/go-crypto/keys"
// Manager combines encyption and storage implementation to provide
// a full-featured key manager


+ 2
- 2
keys/cryptostore/holder_test.go View File

@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
crypto "github.com/tendermint/go-crypto"
"github.com/tendermint/go-keys/cryptostore"
"github.com/tendermint/go-keys/storage/memstorage"
"github.com/tendermint/go-crypto/keys/cryptostore"
"github.com/tendermint/go-crypto/keys/storage/memstorage"
)
// TestKeyManagement makes sure we can manipulate these keys well


+ 1
- 1
keys/cryptostore/storage_test.go View File

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


+ 1
- 1
keys/server/helpers.go View File

@ -13,7 +13,7 @@ import (
"net/http"
data "github.com/tendermint/go-data"
"github.com/tendermint/go-keys/server/types"
"github.com/tendermint/go-crypto/keys/server/types"
"github.com/pkg/errors"
)


+ 2
- 2
keys/server/keys.go View File

@ -5,8 +5,8 @@ import (
"net/http"
"github.com/gorilla/mux"
keys "github.com/tendermint/go-keys"
"github.com/tendermint/go-keys/server/types"
keys "github.com/tendermint/go-crypto/keys"
"github.com/tendermint/go-crypto/keys/server/types"
)
type Keys struct {


+ 5
- 5
keys/server/keys_test.go View File

@ -10,11 +10,11 @@ import (
"github.com/gorilla/mux"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
keys "github.com/tendermint/go-keys"
"github.com/tendermint/go-keys/cryptostore"
"github.com/tendermint/go-keys/server"
"github.com/tendermint/go-keys/server/types"
"github.com/tendermint/go-keys/storage/memstorage"
keys "github.com/tendermint/go-crypto/keys"
"github.com/tendermint/go-crypto/keys/cryptostore"
"github.com/tendermint/go-crypto/keys/server"
"github.com/tendermint/go-crypto/keys/server/types"
"github.com/tendermint/go-crypto/keys/storage/memstorage"
)
func TestKeyServer(t *testing.T) {


+ 1
- 1
keys/storage/filestorage/main.go View File

@ -14,7 +14,7 @@ import (
"github.com/pkg/errors"
crypto "github.com/tendermint/go-crypto"
keys "github.com/tendermint/go-keys"
keys "github.com/tendermint/go-crypto/keys"
)
const (


+ 1
- 1
keys/storage/filestorage/main_test.go View File

@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
crypto "github.com/tendermint/go-crypto"
keys "github.com/tendermint/go-keys"
keys "github.com/tendermint/go-crypto/keys"
)
func TestBasicCRUD(t *testing.T) {


+ 1
- 1
keys/storage/memstorage/main.go View File

@ -7,7 +7,7 @@ package memstorage
import (
"github.com/pkg/errors"
keys "github.com/tendermint/go-keys"
keys "github.com/tendermint/go-crypto/keys"
)
type data struct {


+ 1
- 1
keys/storage/memstorage/main_test.go View File

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


+ 3
- 3
keys/tx/multi_test.go View File

@ -6,9 +6,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
crypto "github.com/tendermint/go-crypto"
keys "github.com/tendermint/go-keys"
"github.com/tendermint/go-keys/cryptostore"
"github.com/tendermint/go-keys/storage/memstorage"
keys "github.com/tendermint/go-crypto/keys"
"github.com/tendermint/go-crypto/keys/cryptostore"
"github.com/tendermint/go-crypto/keys/storage/memstorage"
)
func TestMultiSig(t *testing.T) {


+ 3
- 3
keys/tx/one_test.go View File

@ -6,9 +6,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
crypto "github.com/tendermint/go-crypto"
keys "github.com/tendermint/go-keys"
"github.com/tendermint/go-keys/cryptostore"
"github.com/tendermint/go-keys/storage/memstorage"
keys "github.com/tendermint/go-crypto/keys"
"github.com/tendermint/go-crypto/keys/cryptostore"
"github.com/tendermint/go-crypto/keys/storage/memstorage"
)
func TestOneSig(t *testing.T) {


+ 1
- 1
keys/tx/reader.go View File

@ -3,7 +3,7 @@ package tx
import (
crypto "github.com/tendermint/go-crypto"
data "github.com/tendermint/go-data"
keys "github.com/tendermint/go-keys"
keys "github.com/tendermint/go-crypto/keys"
)
const (


+ 2
- 2
keys/tx/reader_test.go View File

@ -7,8 +7,8 @@ import (
"github.com/stretchr/testify/require"
crypto "github.com/tendermint/go-crypto"
data "github.com/tendermint/go-data"
"github.com/tendermint/go-keys/cryptostore"
"github.com/tendermint/go-keys/storage/memstorage"
"github.com/tendermint/go-crypto/keys/cryptostore"
"github.com/tendermint/go-crypto/keys/storage/memstorage"
)
func TestReader(t *testing.T) {


crypto/priv_key.go → priv_key.go View File


crypto/pub_key.go → pub_key.go View File


crypto/pub_key_test.go → pub_key_test.go View File


crypto/random.go → random.go View File


crypto/signature.go → signature.go View File


crypto/signature_test.go → signature_test.go View File


crypto/symmetric.go → symmetric.go View File


crypto/symmetric_test.go → symmetric_test.go View File


Loading…
Cancel
Save