Documentation ¶
Index ¶
- type CSAKeystoreInterface
- type EthKeyStoreInterface
- func (_m *EthKeyStoreInterface) AddKey(key *ethkey.Key) error
- func (_m *EthKeyStoreInterface) AllKeys() ([]ethkey.Key, error)
- func (_m *EthKeyStoreInterface) CreateNewKey() (ethkey.Key, error)
- func (_m *EthKeyStoreInterface) EnsureFundingKey() (ethkey.Key, bool, error)
- func (_m *EthKeyStoreInterface) ExportKey(address common.Address, newPassword string) ([]byte, error)
- func (_m *EthKeyStoreInterface) FundingKeys() ([]ethkey.Key, error)
- func (_m *EthKeyStoreInterface) GetRoundRobinAddress(addresses ...common.Address) (common.Address, error)
- func (_m *EthKeyStoreInterface) HasDBSendingKeys() (bool, error)
- func (_m *EthKeyStoreInterface) HasSendingKeyWithAddress(address common.Address) (bool, error)
- func (_m *EthKeyStoreInterface) ImportKey(keyJSON []byte, oldPassword string) (ethkey.Key, error)
- func (_m *EthKeyStoreInterface) ImportKeyFileToDB(keyPath string) (ethkey.Key, error)
- func (_m *EthKeyStoreInterface) KeyByAddress(address common.Address) (ethkey.Key, error)
- func (_m *EthKeyStoreInterface) RemoveKey(address common.Address, hardDelete bool) (ethkey.Key, error)
- func (_m *EthKeyStoreInterface) SendingKeys() ([]ethkey.Key, error)
- func (_m *EthKeyStoreInterface) SignTx(fromAddress common.Address, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error)
- func (_m *EthKeyStoreInterface) SubscribeToKeyChanges() (chan struct{}, func())
- func (_m *EthKeyStoreInterface) Unlock(password string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSAKeystoreInterface ¶
CSAKeystoreInterface is an autogenerated mock type for the CSAKeystoreInterface type
func (*CSAKeystoreInterface) CreateCSAKey ¶
func (_m *CSAKeystoreInterface) CreateCSAKey() (*csakey.Key, error)
CreateCSAKey provides a mock function with given fields:
func (*CSAKeystoreInterface) ListCSAKeys ¶
func (_m *CSAKeystoreInterface) ListCSAKeys() ([]csakey.Key, error)
ListCSAKeys provides a mock function with given fields:
func (*CSAKeystoreInterface) Unsafe_GetUnlockedPrivateKey ¶
func (_m *CSAKeystoreInterface) Unsafe_GetUnlockedPrivateKey(pubkey crypto.PublicKey) ([]byte, error)
Unsafe_GetUnlockedPrivateKey provides a mock function with given fields: pubkey
type EthKeyStoreInterface ¶
EthKeyStoreInterface is an autogenerated mock type for the EthKeyStoreInterface type
func (*EthKeyStoreInterface) AddKey ¶
func (_m *EthKeyStoreInterface) AddKey(key *ethkey.Key) error
AddKey provides a mock function with given fields: key
func (*EthKeyStoreInterface) AllKeys ¶
func (_m *EthKeyStoreInterface) AllKeys() ([]ethkey.Key, error)
AllKeys provides a mock function with given fields:
func (*EthKeyStoreInterface) CreateNewKey ¶
func (_m *EthKeyStoreInterface) CreateNewKey() (ethkey.Key, error)
CreateNewKey provides a mock function with given fields:
func (*EthKeyStoreInterface) EnsureFundingKey ¶
func (_m *EthKeyStoreInterface) EnsureFundingKey() (ethkey.Key, bool, error)
EnsureFundingKey provides a mock function with given fields:
func (*EthKeyStoreInterface) ExportKey ¶
func (_m *EthKeyStoreInterface) ExportKey(address common.Address, newPassword string) ([]byte, error)
ExportKey provides a mock function with given fields: address, newPassword
func (*EthKeyStoreInterface) FundingKeys ¶
func (_m *EthKeyStoreInterface) FundingKeys() ([]ethkey.Key, error)
FundingKeys provides a mock function with given fields:
func (*EthKeyStoreInterface) GetRoundRobinAddress ¶
func (_m *EthKeyStoreInterface) GetRoundRobinAddress(addresses ...common.Address) (common.Address, error)
GetRoundRobinAddress provides a mock function with given fields: addresses
func (*EthKeyStoreInterface) HasDBSendingKeys ¶
func (_m *EthKeyStoreInterface) HasDBSendingKeys() (bool, error)
HasDBSendingKeys provides a mock function with given fields:
func (*EthKeyStoreInterface) HasSendingKeyWithAddress ¶
func (_m *EthKeyStoreInterface) HasSendingKeyWithAddress(address common.Address) (bool, error)
HasSendingKeyWithAddress provides a mock function with given fields: address
func (*EthKeyStoreInterface) ImportKey ¶
ImportKey provides a mock function with given fields: keyJSON, oldPassword
func (*EthKeyStoreInterface) ImportKeyFileToDB ¶
func (_m *EthKeyStoreInterface) ImportKeyFileToDB(keyPath string) (ethkey.Key, error)
ImportKeyFileToDB provides a mock function with given fields: keyPath
func (*EthKeyStoreInterface) KeyByAddress ¶
KeyByAddress provides a mock function with given fields: address
func (*EthKeyStoreInterface) RemoveKey ¶
func (_m *EthKeyStoreInterface) RemoveKey(address common.Address, hardDelete bool) (ethkey.Key, error)
RemoveKey provides a mock function with given fields: address, hardDelete
func (*EthKeyStoreInterface) SendingKeys ¶
func (_m *EthKeyStoreInterface) SendingKeys() ([]ethkey.Key, error)
SendingKeys provides a mock function with given fields:
func (*EthKeyStoreInterface) SignTx ¶
func (_m *EthKeyStoreInterface) SignTx(fromAddress common.Address, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error)
SignTx provides a mock function with given fields: fromAddress, tx, chainID
func (*EthKeyStoreInterface) SubscribeToKeyChanges ¶
func (_m *EthKeyStoreInterface) SubscribeToKeyChanges() (chan struct{}, func())
SubscribeToKeyChanges provides a mock function with given fields:
func (*EthKeyStoreInterface) Unlock ¶
func (_m *EthKeyStoreInterface) Unlock(password string) error
Unlock provides a mock function with given fields: password