Documentation ¶
Index ¶
- func New(opts ...Option) crypto.Signer
- type Option
- func WithEthereumAddressFunc(f func() (common.Address, error)) Option
- func WithPublicKeyFunc(f func() (*ecdsa.PublicKey, error)) Option
- func WithSignFunc(f func(data []byte) ([]byte, error)) Option
- func WithSignTxFunc(...) Option
- func WithSignTypedDataFunc(f func(*eip712.TypedData) ([]byte, error)) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option is the option passed to the mock Chequebook service
func WithEthereumAddressFunc ¶
func WithSignTxFunc ¶
func WithSignTxFunc(f func(transaction *types.Transaction, chainID *big.Int) (*types.Transaction, error)) Option
Click to show internal directories.
Click to hide internal directories.