Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VanityCreate2Flags ¶ added in v1.9.1
VanityCreate2Flags returns CLI flags for CREATE2 vanity address generation
func VanityFlags ¶ added in v1.9.1
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
}
type GitAccount ¶
type SSHAccount ¶
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