cosmos-sdk/crypto/keyring
Alessio Treglia a1feca39c2
Enter the new keyring interface (#5904)
crypto/keyring:

`Keybase` interface gives way to its successor: `Keyring`. `LegacyKeybase`
interface is added in order to guarantee limited backward compatibility with
the old `Keybase` interface for the sole purpose of migrating keys across
the new keyring backends.

The package no longer depends on the `github.com/types.Config`
singleton.

`SupportedAlgos` and `SupportedLedgerAlgos` methods have been removed.
The keyring just fails when trying to perform an action with an unsupported
algorithm.

crypto/ subdirs reorganization:

`crypto/keys/hd` was moved to `crypto/hd`, which now groups together
all HD wallets related types and utilities.

client/input:

* Removal of unnecessary `GetCheckPassword`, `PrintPrefixed` functions.
* `GetConfirmation`'s signature changed to take in a io.Writer for better integration
  with `cobra.Command` types.

client/context:

* In-memory keyring is allocated in the context when `--gen-only` flag is passed
  in. `GetFromFields` does no longer silently allocate a keyring, it takes one as
  argument.

Co-authored with @jgimeno

Co-authored-by: Jonathan Gimeno <jgimeno@gmail.com>
2020-04-08 11:38:28 +02:00
..
testdata/keys/keys.db crypto/keyring: deprecate old keybase (#5889) 2020-03-30 20:30:50 +02:00
codec.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
doc.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
errors.go crypto/keys: move keybase and keyring to crypto/keyring/ dir (#5866) 2020-03-25 15:20:36 +00:00
info.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
keyring.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
keyring_ledger_test.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
keyring_test.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
keys.toml crypto/keys: move keybase and keyring to crypto/keyring/ dir (#5866) 2020-03-25 15:20:36 +00:00
legacy.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
legacy_test.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
output.go crypto/keys: move keybase and keyring to crypto/keyring/ dir (#5866) 2020-03-25 15:20:36 +00:00
output_test.go crypto/keys: move keybase and keyring to crypto/keyring/ dir (#5866) 2020-03-25 15:20:36 +00:00
signing_algorithms.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
signing_algorithms_test.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
types.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
types_test.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00