Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.
日本語の概要は準備中です。原文の説明を表示しています。
Educational single-threaded TypeScript vanity address generator for Solana using @solana/web3.js with async iteration, event-loop yielding, streaming generator API, and best-effort memory zeroization.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Single-threaded TypeScript vanity address generator using @solana/web3.js with async iteration, event-loop yielding, and streaming generator API.
CLI / Library API
│
VanityGenerator
│
async generator loop
│
Keypair.generate() per iteration
│
AddressMatcher.matches()
│
yield on match / yield progress
// 1. Async generator (streaming)
for await (const result of generateVanityAddress({ prefix: 'pump' })) {
console.log(result.address);
break; // stop after first match
}
// 2. First match (promise)
const result = await findVanityAddress({ prefix: 'pump' });
// 3. Batch generation
const results = await findVanityAddresses({ prefix: 'So', count: 5 });
async function* generateVanityAddress(config: VanityConfig) {
let attempts = 0;
while (true) {
attempts++;
if (attempts % 1000 === 0) {
await new Promise(resolve => setImmediate(resolve));
}
const keypair = Keypair.generate();
const address = keypair.publicKey.toBase58();
if (matcher.matches(address)) {
yield { keypair, address, attempts };
}
}
}
Yields to the event loop every 1,000 iterations to prevent blocking.
| Feature | Rust | TypeScript |
|---|---|---|
| Speed | 100K+ keys/sec | ~5K keys/sec |
| Parallelism | Rayon (multi-core) | Single-threaded |
| Memory safety | Zeroize trait | Best-effort fill(0) |
| Use case | Production | Educational/prototyping |
// Zeroize secret key after use
const secretKey = keypair.secretKey;
try {
// ... use keypair
} finally {
secretKey.fill(0);
}
JavaScript's garbage collector may copy/relocate buffers, so fill(0) is best-effort.
@solana/web3.js Keypair.generate() — never custom RNGsecretKey.fill(0) after use (best-effort zeroization)setImmediate or setTimeout(0) for yielding, not process.nextTickfill(0) — no guaranteed memory cleanup in JSKeypair.generate() returns 64-byte array (32 secret + 32 public)まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.
日本語の概要は準備中です。原文の説明を表示しています。
Manage Apple Notes via the `memo` CLI on macOS (create, view, edit, delete, search, move, and export notes). Use when a user asks SolanaOS to add a note, list notes, search notes, or manage note folders.
日本語の概要は準備中です。原文の説明を表示しています。
Manage Apple Reminders via remindctl CLI (list, add, edit, complete, delete). Supports lists, date filters, and JSON/plain output.
日本語の概要は準備中です。原文の説明を表示しています。
Create, search, and manage Bear notes via grizzly CLI.
日本語の概要は準備中です。原文の説明を表示しています。
Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.
日本語の概要は準備中です。原文の説明を表示しています。
BluOS CLI (blu) for discovery, playback, grouping, and volume.
日本語の概要は準備中です。原文の説明を表示しています。