clef

package
v0.75.3 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: AGPL-3.0 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