Versions in this module Expand all Collapse all v0 v0.33.2 Apr 3, 2019 Changes in this version + const DefaultBIP39Passphrase + const Ed25519 + const Secp256k1 + var ErrUnsupportedLanguage = errors.New("unsupported language: only english is supported") + var ErrUnsupportedSigningAlgo = errors.New("unsupported signing algo: only secp256k1 is supported") + type Info interface + GetAddress func() types.AccAddress + GetName func() string + GetPath func() (*hd.BIP44Params, error) + GetPubKey func() crypto.PubKey + GetType func() KeyType + func NewMultiInfo(name string, pub crypto.PubKey) Info + type KeyOutput struct + Address string + Mnemonic string + Name string + PubKey string + PubKeys []multisigPubKeyOutput + Threshold uint + Type string + func Bech32ConsKeyOutput(keyInfo Info) (KeyOutput, error) + func Bech32KeyOutput(info Info) (KeyOutput, error) + func Bech32KeysOutput(infos []Info) ([]KeyOutput, error) + func Bech32ValKeyOutput(keyInfo Info) (KeyOutput, error) + type KeyType uint + const TypeLedger + const TypeLocal + const TypeMulti + const TypeOffline + func (kt KeyType) String() string + type Keybase interface + CloseDB func() + CreateAccount func(name, mnemonic, bip39Passwd, encryptPasswd string, account uint32, ...) (Info, error) + CreateLedger func(name string, algo SigningAlgo, account uint32, index uint32) (info Info, err error) + CreateMnemonic func(name string, language Language, passwd string, algo SigningAlgo) (info Info, seed string, err error) + CreateMulti func(name string, pubkey crypto.PubKey) (info Info, err error) + CreateOffline func(name string, pubkey crypto.PubKey) (info Info, err error) + Delete func(name, passphrase string, skipPass bool) error + Derive func(name, mnemonic, bip39Passwd, encryptPasswd string, params hd.BIP44Params) (Info, error) + Export func(name string) (armor string, err error) + ExportPrivateKeyObject func(name string, passphrase string) (crypto.PrivKey, error) + ExportPubKey func(name string) (armor string, err error) + Get func(name string) (Info, error) + GetByAddress func(address types.AccAddress) (Info, error) + Import func(name string, armor string) (err error) + ImportPubKey func(name string, armor string) (err error) + List func() ([]Info, error) + Sign func(name, passphrase string, msg []byte) ([]byte, crypto.PubKey, error) + Update func(name, oldpass string, getNewpass func() (string, error)) error + func New(name, dir string) Keybase + func NewInMemory() Keybase + type Language int + const ChineseSimplified + const ChineseTraditional + const English + const French + const Italian + const Japanese + const Korean + const Spanish + type SigningAlgo string