accounts

package
v0.0.0-...-575f8db Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLibSecp256

func NewLibSecp256() *libSecp256

Types

type Config

type Config struct {
	DataDir string
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(dir string, lib bool, m int64) *Config

func (*Config) FindKey

func (c *Config) FindKey(start, passphrase string) (*ecdsa.PrivateKey, error)

func (*Config) ImportKey

func (c *Config) ImportKey(keyStr, passphrase string) (*common.Address, error)

func (*Config) KeyDir

func (c *Config) KeyDir() string

func (*Config) LuckyEnd

func (c *Config) LuckyEnd(end, passphrase string) (*common.Address, error)

func (*Config) LuckyKey

func (c *Config) LuckyKey(start, end, passphrase string) (*common.Address, error)

func (*Config) LuckyPrivateKey

func (c *Config) LuckyPrivateKey(start, end string, max int64) (*big.Int, error)

func (*Config) LuckyStar

func (c *Config) LuckyStar(start, passphrase string) (*common.Address, error)

func (*Config) ReadKey

func (c *Config) ReadKey(addr, passphrase string) (*ecdsa.PrivateKey, error)

type KeyGenerator

type KeyGenerator interface {
	PrivateKey2Address(*big.Int) string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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