Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

vanity-address-generation

БесплатноБез исполняемых скриптовНе проверен

Complete mastery guide for cryptographic vanity address generation — understanding how blockchain addresses are derived from private keys (ECDSA, keccak256)…

nirholasот nirholas★ 289 звёзд на GitHub

Об этом скилле

Vanity Address Generation — From Cryptographic Foundations

This skill teaches you everything about generating custom blockchain addresses — from the elliptic curve math that creates them, to the brute-force algorithms that find patterns, to the security considerations that keep them safe.

What Is a Vanity Address?

A vanity address has a human-chosen pattern in it:

Standard:  0x7a3b9c2d1e4f5a6b8c0d9e2f3a4b5c6d7e8f9a0b
Vanity:    0xSperax...                  ← starts with "Sperax"
Vanity:    0x...DEAD                    ← ends with "DEAD"
Vanity:    0x000000...                  ← leading zeros (gas savings!)
Use Case Example Why
Brand identity DAO treasury at 0xSperax... Recognizable in block explorers
Gas optimization Contract at 0x000000... Leading zeros save gas on calldata
Memorability Personal wallet 0xNick... Easy to verify at a glance
Security verification Known prefix for official addresses Users can spot fakes faster
Collectibility Rare patterns like 0xDEADBEEF... Fun, flex, verifiable

How Addresses Are Born

Ethereum Address Derivation

┌──────────────────────────────────────────────────────┐
│          ETHEREUM ADDRESS DERIVATION                  │
├──────────────────────────────────────────────────────┤
│                                                       │
│  1. Generate random 256-bit private key               │
│     priv = random_bytes(32)                           │
│     e.g., 0xac0974bec39a17e36ba4a6b4d238ff944...     │
│                                                       │
│  2. Derive public key via secp256k1 elliptic curve    │
│     pub = secp256k1(priv)   → 64 bytes (uncompressed)│
│                                                       │
│  3. Hash public key with Keccak-256                   │
│     hash = keccak256(pub)   → 32 bytes                │
│                                                       │
│  4. Take last 20 bytes as address                     │
│     addr = hash[12:]        → 20 bytes = 40 hex chars │
│     → 0x followed by 40 hex characters                │
│                                                       │
│  priv → secp256k1 → pub → keccak256 → addr           │
│  (secret)  (ECDSA)  (point)  (hash)   (public)       │
│                                                       │
└──────────────────────────────────────────────────────┘

The Math Behind secp256k1

Elliptic Curve: y² = x³ + 7 (mod p)

Where:
  p = 2²⁵⁶ - 2³² - 977   (a very large prime)
  G = generator point       (a specific point on the curve)
  n = order of G            (number of possible points)

Private key: k (random integer, 1 ≤ k < n)
Public key:  K = k × G     (scalar multiplication on the curve)

This multiplication is:
  - Forward: trivial (milliseconds)
  - Reverse: impossible (discrete logarithm problem)

Why Brute Force Is Required

Because keccak256 is a one-way function, you cannot compute which private key produces a desired address. You must:

  1. Generate a random private key
  2. Derive its address
  3. Check if the address matches your pattern
  4. If not, repeat from step 1

This is computationally identical to mining.

Difficulty Estimation

How Hard Is Each Pattern?

Each hex character has 16 possible values (0-9, a-f).

Pattern Positions Expected Attempts Time (1M/sec) Time (1B/sec GPU)
1 char prefix 1 16 instant instant
2 char prefix 2 256 instant instant
3 char prefix 3 4,096 instant instant
4 char prefix 4 65,536 ~0.07 sec instant
5 char prefix 5 1,048,576 ~1 sec instant
6 char prefix 6 16,777,216 ~17 sec ~0.02 sec
7 char prefix 7 268,435,456 ~4.5 min ~0.3 sec
8 char prefix 8 4,294,967,296 ~72 min ~4.3 sec
"sperax" (6 chars) 6 ~16.7 million ~17 sec ~0.02 sec
"dead" + "beef" 4+4 ~4.3 billion × 2 days ~minutes
10+ chars 10+ > 1 trillion months-years days-weeks

Note: Case-insensitive matching (using EIP-55 checksum) can reduce difficulty by up to 2× for alphabetic characters.

Formula

def estimate_difficulty(pattern, position="prefix"):
    """Calculate expected attempts for a vanity pattern."""
    # Each hex char: 1/16 probability
    # Case-insensitive letters (a-f): 1/10 for letters, 1/16 for digits
    expected = 1
    for char in pattern:
        if char.lower() in 'abcdef':
            expected *= 10  # Case-insensitive: a or A both match
        else:
            expected *= 16
    return expected

def estimate_time(difficulty, rate_per_second):
    """Average time = difficulty / rate."""
    seconds = difficulty / rate_per_second
    if seconds < 60:
        return f"{seconds:.1f} seconds"
    elif seconds < 3600:
        return f"{seconds/60:.1f} minutes"
Полный SKILL.md на GitHub

Установить vanity-address-generation в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл vanity-address-generation?

Complete mastery guide for cryptographic vanity address generation — understanding how blockchain addresses are derived from private keys (ECDSA, keccak256), brute-force search algorithms, GPU acceleration with OpenCL/CUDA, CREATE2 deterministic deployment for contract vanity addresses, security implications of vanity generation, time/difficulty estimation, multi-chain address formats (Ethereum, Bitcoin, Solana), and practical UX benefits of branded addresses for DAOs and protocols.

Как установить скилл vanity-address-generation?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл vanity-address-generation запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить vanity-address-generation с