Documentation
¶
Index ¶
- type Addresses
- type ECDSAMessageSigner
- type FakeChainStore
- type MemoryChainStore
- func (m *MemoryChainStore) Accounts(ctx context.Context) (accounts []string, err error)
- func (m *MemoryChainStore) Create() (common.Address, error)
- func (m *MemoryChainStore) Delete(addr common.Address)
- func (m *MemoryChainStore) MustCreate(t require.TestingT) common.Address
- func (m *MemoryChainStore) Sign(ctx context.Context, account string, data []byte) (signed []byte, err error)
- type MessageSigner
- type Signer
- type TxSigner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ECDSAMessageSigner ¶
type ECDSAMessageSigner ecdsa.PrivateKey
func (*ECDSAMessageSigner) SignMessage ¶
type FakeChainStore ¶
FakeChainStore is an implementation of keys.ChainStore for testing. The zero value is usable.
type MemoryChainStore ¶
type MemoryChainStore struct {
// contains filtered or unexported fields
}
func NewMemoryChainStore ¶
func NewMemoryChainStore() *MemoryChainStore
func (*MemoryChainStore) Accounts ¶
func (m *MemoryChainStore) Accounts(ctx context.Context) (accounts []string, err error)
func (*MemoryChainStore) Delete ¶
func (m *MemoryChainStore) Delete(addr common.Address)
func (*MemoryChainStore) MustCreate ¶
func (m *MemoryChainStore) MustCreate(t require.TestingT) common.Address
type MessageSigner ¶
type MessageSigner func(ctx context.Context, address common.Address, message []byte) ([]byte, error)
func (MessageSigner) SignMessage ¶
Click to show internal directories.
Click to hide internal directories.