go-ethereum: github.com/axiomzen/go-ethereum/accounts/external Index | Files

package external

import "github.com/axiomzen/go-ethereum/accounts/external"

Index

Package Files

backend.go

type ExternalBackend Uses

type ExternalBackend struct {
    // contains filtered or unexported fields
}

func NewExternalBackend Uses

func NewExternalBackend(endpoint string) (*ExternalBackend, error)

func (*ExternalBackend) Subscribe Uses

func (eb *ExternalBackend) Subscribe(sink chan<- accounts.WalletEvent) event.Subscription

func (*ExternalBackend) Wallets Uses

func (eb *ExternalBackend) Wallets() []accounts.Wallet

type ExternalSigner Uses

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 Uses

func NewExternalSigner(endpoint string) (*ExternalSigner, error)

func (*ExternalSigner) Accounts Uses

func (api *ExternalSigner) Accounts() []accounts.Account

func (*ExternalSigner) Close Uses

func (api *ExternalSigner) Close() error

func (*ExternalSigner) Contains Uses

func (api *ExternalSigner) Contains(account accounts.Account) bool

func (*ExternalSigner) Derive Uses

func (api *ExternalSigner) Derive(path accounts.DerivationPath, pin bool) (accounts.Account, error)

func (*ExternalSigner) Open Uses

func (api *ExternalSigner) Open(passphrase string) error

func (*ExternalSigner) SelfDerive Uses

func (api *ExternalSigner) SelfDerive(bases []accounts.DerivationPath, chain ethereum.ChainStateReader)

func (*ExternalSigner) SignData Uses

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 Uses

func (api *ExternalSigner) SignDataWithPassphrase(account accounts.Account, passphrase, mimeType string, data []byte) ([]byte, error)

func (*ExternalSigner) SignText Uses

func (api *ExternalSigner) SignText(account accounts.Account, text []byte) ([]byte, error)

func (*ExternalSigner) SignTextWithPassphrase Uses

func (api *ExternalSigner) SignTextWithPassphrase(account accounts.Account, passphrase string, text []byte) ([]byte, error)

func (*ExternalSigner) SignTx Uses

func (api *ExternalSigner) SignTx(account accounts.Account, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error)

func (*ExternalSigner) SignTxWithPassphrase Uses

func (api *ExternalSigner) SignTxWithPassphrase(account accounts.Account, passphrase string, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error)

func (*ExternalSigner) Status Uses

func (api *ExternalSigner) Status() (string, error)

func (*ExternalSigner) URL Uses

func (api *ExternalSigner) URL() accounts.URL

Package external imports 13 packages (graph). Updated 2019-07-06. Refresh now. Tools for package owners.