cosmos-sdk/client/keys
Alessio Treglia 9bd603ae88
crypto: cleanup, more testing
crypto.LedgerShowAddress() is a ledger specific function
and should takes acc address prefix instead of depending
on a sdk.Config singleton.

crypto/keys/mintkey:
- decryptPrivKey() return error instead of os.Exit()ing.
- encryptPrivKey() should panic instead of os.Exit() when
  bcrypt.GenerateFromPassword() call fails so that the
  caller is given a chance to recover().

crypto/keys:
- SignWithLedger() does not need to be method of
  baseKeybase. Method receiver is unused.
- ledgerInfo objecta may be pointers, type switch
  should handle both to avoid panics.
- keyringKeybase should not provide Update() at all.

More test cases are added to increase package crypto
and subpackages overall coverage.
2020-03-02 11:09:52 +00:00
..
add.go Merge PR #5562: Remove KeyringServiceName from the sdk.Config struct 2020-01-23 13:47:11 -05:00
add_ledger_test.go Replace defer with testing.T.Cleanup() (#5732) 2020-03-02 00:16:23 +00:00
add_test.go Replace defer with testing.T.Cleanup() (#5732) 2020-03-02 00:16:23 +00:00
codec.go Interchangable PrivKey implementations in keybase (#5278) 2019-12-12 21:52:24 +00:00
codec_test.go Merge PR #5203: Add more linters 2019-10-17 09:47:35 -04:00
delete.go Merge PR #5562: Remove KeyringServiceName from the sdk.Config struct 2020-01-23 13:47:11 -05:00
delete_test.go Replace defer with testing.T.Cleanup() (#5732) 2020-03-02 00:16:23 +00:00
export.go Merge PR #5562: Remove KeyringServiceName from the sdk.Config struct 2020-01-23 13:47:11 -05:00
export_test.go Replace defer with testing.T.Cleanup() (#5732) 2020-03-02 00:16:23 +00:00
import.go Merge PR #5562: Remove KeyringServiceName from the sdk.Config struct 2020-01-23 13:47:11 -05:00
import_test.go Replace defer with testing.T.Cleanup() (#5732) 2020-03-02 00:16:23 +00:00
list.go Merge PR #5562: Remove KeyringServiceName from the sdk.Config struct 2020-01-23 13:47:11 -05:00
list_test.go Replace defer with testing.T.Cleanup() (#5732) 2020-03-02 00:16:23 +00:00
migrate.go Merge PR #5562: Remove KeyringServiceName from the sdk.Config struct 2020-01-23 13:47:11 -05:00
migrate_test.go Replace defer with testing.T.Cleanup() (#5732) 2020-03-02 00:16:23 +00:00
mnemonic.go Interchangable PrivKey implementations in keybase (#5278) 2019-12-12 21:52:24 +00:00
mnemonic_test.go Replace defer with testing.T.Cleanup() (#5732) 2020-03-02 00:16:23 +00:00
parse.go Interchangable PrivKey implementations in keybase (#5278) 2019-12-12 21:52:24 +00:00
parse_test.go Merge PR #5203: Add more linters 2019-10-17 09:47:35 -04:00
root.go Interchangable PrivKey implementations in keybase (#5278) 2019-12-12 21:52:24 +00:00
root_test.go Create new generic keyring constructor: NewKeyring (#5547) 2020-01-22 17:54:56 +00:00
show.go crypto: cleanup, more testing 2020-03-02 11:09:52 +00:00
show_test.go Replace defer with testing.T.Cleanup() (#5732) 2020-03-02 00:16:23 +00:00
types.go gometalinter -> golangci-lint migration (#3933) 2019-03-19 17:52:43 +01:00
types_test.go Replace defer with testing.T.Cleanup() (#5732) 2020-03-02 00:16:23 +00:00
update.go Create new generic keyring constructor: NewKeyring (#5547) 2020-01-22 17:54:56 +00:00
update_test.go Replace defer with testing.T.Cleanup() (#5732) 2020-03-02 00:16:23 +00:00
utils.go Create new generic keyring constructor: NewKeyring (#5547) 2020-01-22 17:54:56 +00:00