Documentation ¶
Index ¶
- type ExternalBackend
- type ExternalSigner
- func (api *ExternalSigner) Accounts() []accounts.Account
- func (api *ExternalSigner) Close() error
- func (api *ExternalSigner) ConfirmAddress(path accounts.DerivationPath) (common.Address, error)
- func (api *ExternalSigner) Contains(account accounts.Account) bool
- func (api *ExternalSigner) Decrypt(account accounts.Account, c, s1, s2 []byte) ([]byte, error)
- func (api *ExternalSigner) Derive(path accounts.DerivationPath, pin bool) (accounts.Account, error)
- func (api *ExternalSigner) GenerateProofOfPossession(account accounts.Account, address common.Address) ([]byte, []byte, error)
- func (api *ExternalSigner) GenerateProofOfPossessionBLS(account accounts.Account, address common.Address) ([]byte, []byte, error)
- func (api *ExternalSigner) GetPublicKey(account accounts.Account) (*ecdsa.PublicKey, error)
- func (api *ExternalSigner) Open(passphrase string) error
- func (api *ExternalSigner) SelfDerive(bases []accounts.DerivationPath, chain ethereum.ChainStateReader)
- func (api *ExternalSigner) SignBLS(account accounts.Account, msg []byte, extraData []byte, ...) (blscrypto.SerializedSignature, error)
- func (api *ExternalSigner) SignData(account accounts.Account, mimeType string, data []byte) ([]byte, error)
- func (api *ExternalSigner) SignDataWithPassphrase(account accounts.Account, passphrase, mimeType string, data []byte) ([]byte, error)
- func (api *ExternalSigner) SignHash(account accounts.Account, hash []byte) ([]byte, error)
- func (api *ExternalSigner) SignText(account accounts.Account, text []byte) ([]byte, error)
- func (api *ExternalSigner) SignTextWithPassphrase(account accounts.Account, passphrase string, text []byte) ([]byte, error)
- func (api *ExternalSigner) SignTx(account accounts.Account, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error)
- func (api *ExternalSigner) SignTxWithPassphrase(account accounts.Account, passphrase string, tx *types.Transaction, ...) (*types.Transaction, error)
- func (api *ExternalSigner) Status() (string, error)
- func (api *ExternalSigner) URL() accounts.URL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExternalBackend ¶
type ExternalBackend struct {
// contains filtered or unexported fields
}
func NewExternalBackend ¶
func NewExternalBackend(endpoint string) (*ExternalBackend, error)
func (*ExternalBackend) Subscribe ¶
func (eb *ExternalBackend) Subscribe(sink chan<- accounts.WalletEvent) event.Subscription
func (*ExternalBackend) Wallets ¶
func (eb *ExternalBackend) Wallets() []accounts.Wallet
type ExternalSigner ¶
type ExternalSigner struct {
// contains filtered or unexported fields
}
ExternalSigner 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 NewExternalSigner(endpoint string) (*ExternalSigner, error)
func (*ExternalSigner) Accounts ¶
func (api *ExternalSigner) Accounts() []accounts.Account
func (*ExternalSigner) Close ¶
func (api *ExternalSigner) Close() error
func (*ExternalSigner) ConfirmAddress ¶
func (api *ExternalSigner) ConfirmAddress(path accounts.DerivationPath) (common.Address, error)
func (*ExternalSigner) Contains ¶
func (api *ExternalSigner) Contains(account accounts.Account) bool
func (*ExternalSigner) Derive ¶
func (api *ExternalSigner) Derive(path accounts.DerivationPath, pin bool) (accounts.Account, error)
func (*ExternalSigner) GenerateProofOfPossession ¶
func (*ExternalSigner) GenerateProofOfPossessionBLS ¶
func (*ExternalSigner) GetPublicKey ¶
func (*ExternalSigner) Open ¶
func (api *ExternalSigner) Open(passphrase string) error
func (*ExternalSigner) SelfDerive ¶
func (api *ExternalSigner) SelfDerive(bases []accounts.DerivationPath, chain ethereum.ChainStateReader)
func (*ExternalSigner) SignBLS ¶
func (api *ExternalSigner) SignBLS(account accounts.Account, msg []byte, extraData []byte, useComposite, cip22 bool) (blscrypto.SerializedSignature, error)
func (*ExternalSigner) SignData ¶
func (api *ExternalSigner) SignData(account accounts.Account, mimeType string, data []byte) ([]byte, error)
SignData signs keccak256(data). The mimetype parameter describes the type of data being signed
func (*ExternalSigner) SignDataWithPassphrase ¶
func (*ExternalSigner) SignHash ¶
SignHash is not implemented for the external signer
DEPRECATED, use SignData in future releases.
func (*ExternalSigner) SignTextWithPassphrase ¶
func (*ExternalSigner) SignTx ¶
func (api *ExternalSigner) SignTx(account accounts.Account, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error)
func (*ExternalSigner) SignTxWithPassphrase ¶
func (api *ExternalSigner) SignTxWithPassphrase(account accounts.Account, passphrase string, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error)
func (*ExternalSigner) Status ¶
func (api *ExternalSigner) Status() (string, error)
func (*ExternalSigner) URL ¶
func (api *ExternalSigner) URL() accounts.URL
Click to show internal directories.
Click to hide internal directories.