model

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VanityCreate2Flags added in v1.9.1

func VanityCreate2Flags() []cli.Flag

VanityCreate2Flags returns CLI flags for CREATE2 vanity address generation

func VanityFlags added in v1.9.1

func VanityFlags() []cli.Flag

VanityFlags returns the common CLI flags for vanity address generation

Types

type AddressGenerator added in v1.9.1

type AddressGenerator interface {
	// Generate generates a new address and returns the address string and any associated data
	Generate() (address string, data interface{}, err error)
}

AddressGenerator is an interface for generating addresses

type Config

type Config struct {
	Banner  string
	Git     map[string]GitAccount
	SSH     map[string]SSHAccount
	Proxy   map[string]Proxy
	Snippet map[string]string
}

func ReadInConfig

func ReadInConfig(path string) (*Config, bool, error)

type GitAccount

type GitAccount struct {
	Name       string
	Email      string
	SSHPrikey  string
	SSHSignKey string
}

type Proxy

type Proxy struct {
	Socks string
	Http  string
}

type SSHAccount

type SSHAccount struct {
	Login  string
	Host   string
	Port   string
	Prikey string
}

func (SSHAccount) GetPort

func (sa SSHAccount) GetPort() string

type VanityConfig added in v1.9.1

type VanityConfig struct {
	Contains      string
	Mode          int // 1: prefix, 2: suffix, 3: prefix-or-suffix
	CaseSensitive bool
	UpperOrLower  bool
	Threads       int
}

VanityConfig holds the configuration for vanity address generation

func ParseVanityConfig added in v1.9.1

func ParseVanityConfig(cmd *cli.Command) (*VanityConfig, error)

ParseVanityConfig parses the vanity configuration from CLI command

type VanityMatcher added in v1.9.1

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

VanityMatcher performs address matching based on configuration

func NewVanityMatcher added in v1.9.1

func NewVanityMatcher(config *VanityConfig) *VanityMatcher

NewVanityMatcher creates a new matcher with the given configuration

func (*VanityMatcher) Match added in v1.9.1

func (m *VanityMatcher) Match(address string) bool

Match checks if an address matches the configured criteria address should be without 0x prefix for Ethereum addresses

type VanityResult added in v1.9.1

type VanityResult struct {
	Address string
	Data    interface{}
}

VanityResult holds the result of a vanity search

type VanitySearcher added in v1.9.1

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

VanitySearcher performs vanity address search with multiple threads

func NewVanitySearcher added in v1.9.1

func NewVanitySearcher(config *VanityConfig, generator AddressGenerator) *VanitySearcher

NewVanitySearcher creates a new searcher

func (*VanitySearcher) Search added in v1.9.1

func (s *VanitySearcher) Search(ctx context.Context) (*VanityResult, error)

Search performs the vanity address search

Jump to

Keyboard shortcuts

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