Documentation ¶
Index ¶
- type Backend
- type Signer
- func (api *Signer) Accounts() []accounts.Account
- func (api *Signer) Close() error
- func (api *Signer) Contains(account accounts.Account) bool
- func (api *Signer) Derive(path accounts.DerivationPath, pin bool) (accounts.Account, error)
- func (api *Signer) Open(passphrase string) error
- func (api *Signer) SelfDerive(bases []accounts.DerivationPath, chain ethereum.ChainStateReader)
- func (api *Signer) SignData(account accounts.Account, mimeType string, data []byte) ([]byte, error)
- func (api *Signer) SignDataWithPassphrase(account accounts.Account, passphrase, mimeType string, data []byte) ([]byte, error)
- func (api *Signer) SignText(account accounts.Account, text []byte) ([]byte, error)
- func (api *Signer) SignTextWithPassphrase(account accounts.Account, passphrase string, text []byte) ([]byte, error)
- func (api *Signer) SignTx(account accounts.Account, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error)
- func (api *Signer) SignTxWithPassphrase(account accounts.Account, passphrase string, tx *types.Transaction, ...) (*types.Transaction, error)
- func (api *Signer) Status() (string, error)
- func (api *Signer) URL() accounts.URL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func NewExternalBackend ¶
func (*Backend) Subscribe ¶
func (eb *Backend) Subscribe(sink chan<- accounts.WalletEvent) event.Subscription
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
Signer provides an API to interact with an external signer (clef) It proxies request to the external signer while forwarding relevant request headers
func NewExternalSigner ¶
func (*Signer) SelfDerive ¶
func (api *Signer) SelfDerive(bases []accounts.DerivationPath, chain ethereum.ChainStateReader)
func (*Signer) SignData ¶
SignData signs keccak256(data). The mimetype parameter describes the type of data being signed
func (*Signer) SignDataWithPassphrase ¶
func (*Signer) SignTextWithPassphrase ¶
func (*Signer) SignTx ¶
func (api *Signer) SignTx(account accounts.Account, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error)
func (*Signer) SignTxWithPassphrase ¶
Click to show internal directories.
Click to hide internal directories.