keystore

package
v0.68.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const KeyStoreAlgoType = "eth"

Variables

This section is empty.

Functions

This section is empty.

Types

type Wallet

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

func (*Wallet) Algo

func (w *Wallet) Algo() string

func (*Wallet) Chain

func (w *Wallet) Chain() string

func (*Wallet) Cleanup

func (w *Wallet) Cleanup() error

func (*Wallet) Name

func (w *Wallet) Name() string

func (*Wallet) PubKey

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

func (*Wallet) Reload

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

func (*Wallet) Sign

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

func (*Wallet) Version

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

type WalletLoader

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

func InitialiseWalletLoader

func InitialiseWalletLoader(vegaPaths paths.Paths) (*WalletLoader, error)

func (*WalletLoader) Generate

func (l *WalletLoader) Generate(passphrase string) (*Wallet, map[string]string, error)

func (*WalletLoader) Import

func (l *WalletLoader) Import(sourceFilePath, passphrase string) (*Wallet, map[string]string, error)

func (*WalletLoader) Load

func (l *WalletLoader) Load(walletName, passphrase string) (*Wallet, error)

Jump to

Keyboard shortcuts

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