signer

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2020 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoSigner        = errors.New("signer not configured")
	ErrAddressNotFound = errors.New("address not found")
)

Functions

This section is empty.

Types

type Kind

type Kind int
const (
	None Kind = iota
	Keyed
	HardwareWallet
)

type Signer

type Signer struct {
	Key    *ecdsa.PrivateKey
	Wallet *walletSigner
}

func NewKeyed

func NewKeyed(key *ecdsa.PrivateKey) *Signer

func NewLedger

func NewLedger(w accounts.Wallet, ac *accounts.Account) *Signer

func (*Signer) Kind

func (s *Signer) Kind() Kind

func (*Signer) TransactOpts

func (s *Signer) TransactOpts(chainID *big.Int) (*bind.TransactOpts, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL