Accounts

package
Version: v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIsManAddress added in v1.0.4

func CheckIsManAddress(strData string) bool

func EthAddressToManAddress

func EthAddressToManAddress(address common.Address) string

func ManAddressToEthAddress

func ManAddressToEthAddress(manAddr string) (common.Address, error)

Types

type KeystoreManager

type KeystoreManager struct {
	Keystore *keystore.KeyStore
	ChainID  *big.Int
	Signer   types.Signer
}

func NewKeystoreManager

func NewKeystoreManager(keystoreDir string, chainId int64) *KeystoreManager

func (*KeystoreManager) GetKey

func (ks *KeystoreManager) GetKey(addr common.Address, filename, auth string) (*keystore.Key, error)

func (*KeystoreManager) SignTx

func (ks *KeystoreManager) SignTx(sendTx *common1.SendTxArgs1, from string) (*common1.SendTxArgs1, error)

func (*KeystoreManager) SignTxWithPassphrase

func (ks *KeystoreManager) SignTxWithPassphrase(transaction types.SelfTransaction, from string, passphrase string) ([]byte, error)

func (*KeystoreManager) TimedUnlock

func (ks *KeystoreManager) TimedUnlock(manAddr string, password string, timeout time.Duration) error

func (*KeystoreManager) Unlock

func (ks *KeystoreManager) Unlock(manAddr string, password string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL