func GetKeyInfo(name string) (keys.Info, error) {
	keybase, err := NewKeyBaseFromHomeFlag()
	if err != nil {
		return nil, err
	}
	return keybase.Get(name)
}
GetKeyInfo returns key info for a given name. An error is returned if the
keybase cannot be retrieved or getting the info fails.
package keys
import (
	"bufio"
	"fmt"
	"os"
	"path/filepath"
	"github.com/spf13/viper"
	"github.com/tendermint/tendermint/libs/cli"
	"gopkg.in/yaml.v2"
	"github.com/Dipper-Labs/Dipper-Protocol/client/flags"
	"github.com/Dipper-Labs/Dipper-Protocol/client/input"
	"github.com/Dipper-Labs/Dipper-Protocol/crypto/keys"
)
const (
	OutputFormatText = "text"
	OutputFormatJSON = "json"
	defaultKeyDBName = "keys"
)
type bechKeyOutFn func(keyInfo keys.Info) (keys.KeyOutput, error)