cosmos-sdk/crypto
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
..
hd Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
keyring Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
amino.go Merge PR #4083: Replace gaiad --assert-invariants-blockly with --inv-check-period 2019-04-10 19:33:50 -04:00
armor.go merge crypto/keys/mintkey into crypto/ (#5880) 2020-03-27 10:24:19 +01:00
armor_test.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
bcrypt_readme.md merge crypto/keys/mintkey into crypto/ (#5880) 2020-03-27 10:24:19 +01:00
encode_test.go Merge PR #5527: Bump Tendermint Version to v0.33.0 2020-01-16 13:46:51 -08:00
ledger_mock.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
ledger_notavail.go Merge PR #3517: Increasing test coverage in keys/client package 2019-02-08 12:45:23 -08:00
ledger_real.go Merge PR #3811: Migrate repo to organization 2019-03-06 12:37:27 +01:00
ledger_secp256k1.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00
ledger_test.go Enter the new keyring interface (#5904) 2020-04-08 11:38:28 +02:00