Documentation
¶
Index ¶
- func KeyStoreSignerFn(path string, password string, chainID *big.Int) (bind.SignerFn, error)
- func PrivateKeySignerFn(privateKey *ecdsa.PrivateKey, chainID *big.Int) (bind.SignerFn, error)
- func Web3SignerFn(remoteSignerURL string) (bind.SignerFn, error)
- type Config
- type JSONRPCRequest
- type SignerFn
- type Web3Signer
- type Web3SignerClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeyStoreSignerFn ¶
func PrivateKeySignerFn ¶
Types ¶
type Config ¶
type Config struct { PrivateKey *ecdsa.PrivateKey KeystorePath string Password string Endpoint string Address string }
func (Config) IsLocalKeystoreSigner ¶
func (Config) IsPrivateKeySigner ¶
func (Config) IsWeb3Signer ¶
type JSONRPCRequest ¶
type JSONRPCRequest struct { JSONRPC string `json:"jsonrpc"` Method string `json:"method"` Params interface{} `json:"params"` ID string `json:"id"` }
JSONRPCRequest is a struct for JSON RPC 2.0 request See: https://www.jsonrpc.org/specification
type Web3Signer ¶
type Web3Signer struct {
// contains filtered or unexported fields
}
Web3Signer is a client for a remote signer It currently implements `eth_signTransaction` method of Consensys Web3 Signer Reference: https://docs.web3signer.consensys.io/reference/api/json-rpc#eth_signtransaction
func (Web3Signer) SignTransaction ¶
func (r Web3Signer) SignTransaction( from common.Address, tx *types.Transaction, ) (*types.Transaction, error)
type Web3SignerClient ¶
type Web3SignerClient interface {
SignTransaction(from common.Address, tx *types.Transaction) (*types.Transaction, error)
}
func NewWeb3SignerClient ¶
func NewWeb3SignerClient(url string) Web3SignerClient
Click to show internal directories.
Click to hide internal directories.