clef

package
v0.73.0-preview.7 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClefAlgoType = "clef"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
	Close()
}

type Wallet added in v0.55.0

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

func GenerateNewWallet

func GenerateNewWallet(client Client, endpoint string) (*Wallet, error)

GenerateNewWallet new wallet will create new account in Clef and returns wallet. Caveat: generating new wallet in Clef has to be manually approved and only key store backend is supported.

func NewWallet

func NewWallet(client Client, endpoint string, accountAddr ethcommon.Address) (*Wallet, error)

func (*Wallet) Algo added in v0.55.0

func (w *Wallet) Algo() string

func (*Wallet) Chain added in v0.55.0

func (w *Wallet) Chain() string

func (*Wallet) Cleanup added in v0.55.0

func (w *Wallet) Cleanup() error

func (*Wallet) Name added in v0.55.0

func (w *Wallet) Name() string

func (*Wallet) PubKey added in v0.55.0

func (w *Wallet) PubKey() crypto.PublicKey

func (*Wallet) Reload added in v0.55.0

func (w *Wallet) Reload(details registry.EthereumWalletDetails) error

func (*Wallet) Sign added in v0.55.0

func (w *Wallet) Sign(data []byte) ([]byte, error)

func (*Wallet) Version added in v0.55.0

func (w *Wallet) Version() (string, error)

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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