Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoAccounts = errors.New("no accounts found in clef")
)
Functions ¶
func DefaultIpcPath ¶
DefaultIpcPath returns the os-dependent default ipc path for clef.
func NewSigner ¶
func NewSigner(clef ExternalSignerInterface, client Client, recoverFunc crypto.RecoverFunc) (signer crypto.Signer, err error)
NewSigner creates a new connection to the signer at endpoint. As clef does not expose public keys it signs a test message to recover the public key.
Types ¶
type ExternalSignerInterface ¶
type ExternalSignerInterface interface { SignData(account accounts.Account, mimeType string, data []byte) ([]byte, error) SignTx(account accounts.Account, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error) Accounts() []accounts.Account }
ExternalSignerInterface is the interface for the clef client from go-ethereum.
Click to show internal directories.
Click to hide internal directories.