vanity

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatFilter

func FormatFilter(prefixes, suffixes []string) string

FormatFilter returns a human-readable description of the prefix/suffix lists.

Types

type Output

type Output struct {
	Prefixes  []string  `json:"prefixes,omitempty"`
	Suffixes  []string  `json:"suffixes,omitempty"`
	CreatedAt time.Time `json:"createdAt"`
	Wallets   []Wallet  `json:"wallets"`
}

Output holds the filter settings and the resulting wallets. Output holds the filter settings and the resulting wallets.

type Wallet

type Wallet struct {
	Index     int    `json:"index"`
	PublicKey string `json:"publicKey"`
	SecretKey string `json:"secretKey"`
}

Wallet represents a generated keypair matching the vanity filter.

func Search(ctx context.Context, count int, prefixes, suffixes []string, workers int, ignoreCase, useSimilar bool) []Wallet

Search generates 'count' vanity wallets matching any of the provided prefixes/suffixes using 'workers' goroutines. Accepts a context to cancel early, ensuring partial results are flushed.

Jump to

Keyboard shortcuts

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