Documentation ¶
Index ¶
- Constants
- Variables
- func BuildSignMsg(txbuilder authtxb.TxBuilder, msgs []sdk.Msg) (authtxb.StdSignMsg, error)
- type DefaultKeyStorePath
- type Key
- type KeyStore
- type KeyStoreWallet
- func (ksw *KeyStoreWallet) Accounts() ([]accounts.Account, error)
- func (ksw *KeyStoreWallet) BuildAndSign(txbuilder authtxb.TxBuilder, addr string, passphrase string, msgs []sdk.Msg) ([]byte, error)
- func (ksw *KeyStoreWallet) Drop(addr string) error
- func (ksw *KeyStoreWallet) GetPrivKey(addr string) (string, error)
- func (ksw *KeyStoreWallet) Sign(txbuilder authtxb.TxBuilder, addr string, passphrase string, ...) ([]byte, error)
- func (ksw *KeyStoreWallet) SignStdTx(txbuilder authtxb.TxBuilder, stdTx auth.StdTx, addr string, passphrase string) (signedStdTx auth.StdTx, err error)
- func (ksw *KeyStoreWallet) Update(addr string, passphrase, newPassphrase string) error
- type Seed
Constants ¶
View Source
const KeyStoreScheme = "keystores"
Variables ¶
View Source
var DefaultKeyStoreHome = defaultKeyStoreHome()
View Source
var (
ErrNoMatch = errors.New("no key for given address or file")
)
Functions ¶
func BuildSignMsg ¶
Types ¶
type DefaultKeyStorePath ¶
type DefaultKeyStorePath func() string
type Key ¶
type KeyStore ¶
type KeyStore struct {
// contains filtered or unexported fields
}
func NewKeyStore ¶
func (*KeyStore) RecoverKey ¶
type KeyStoreWallet ¶
type KeyStoreWallet struct {
// contains filtered or unexported fields
}
func NewKeyStoreWallet ¶
func NewKeyStoreWallet(path string) *KeyStoreWallet
func (*KeyStoreWallet) BuildAndSign ¶
func (*KeyStoreWallet) Drop ¶
func (ksw *KeyStoreWallet) Drop(addr string) error
func (*KeyStoreWallet) GetPrivKey ¶
func (ksw *KeyStoreWallet) GetPrivKey(addr string) (string, error)
func (*KeyStoreWallet) Sign ¶
func (ksw *KeyStoreWallet) Sign(txbuilder authtxb.TxBuilder, addr string, passphrase string, msg authtxb.StdSignMsg) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.