# babakalol/seed-gen architecture

> Architecture diagram of the GitHub repository babakalol/seed-gen, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/babakalol/seed-gen
- Repository: https://github.com/babakalol/seed-gen

## Overview

SeedGen is a Windows console application with two user paths: generate one 12-word phrase, or repeatedly generate phrases and check wallet balances. The documented wallet/address and BTC, ETH, LTC, DOGE checks are represented, but checker.h provides declarations only; its implementations and service interactions are not shown. The graph therefore omits unverified internal call paths for those checks. Only README and the excerpted source files informed these relationships.

Main entry points: [`main.cpp`](https://github.com/babakalol/seed-gen/blob/main/main.cpp) (Menu and search loop), [`generate.cpp`](https://github.com/babakalol/seed-gen/blob/main/generate.cpp) (Phrase generator), [`checker.h`](https://github.com/babakalol/seed-gen/blob/main/checker.h) (Wallet checks and rates), [`wordlist.h`](https://github.com/babakalol/seed-gen/blob/main/wordlist.h) (Mnemonic word list)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Console workflow"]
  node_menu["Menu and search loop<br/>[main.cpp]"]
end

subgraph group_phrases["Phrase generation"]
  node_generator["Phrase generator<br/>[generate.cpp]"]
  node_wordlist["Mnemonic word list<br/>[wordlist.h]"]
end

subgraph group_checking["Wallet checking"]
  node_wallet_checks["Wallet checks and rates<br/>[checker.h]"]
  node_wallet_services["Wallet data services"]
end

subgraph group_results["Results"]
  node_console_output["Console results<br/>[main.cpp]"]
  node_found_file["Found wallet records"]
end

node_user(("Console user"))

node_user -->|"selects action"| node_menu
node_menu -->|"generates phrase"| node_generator
node_generator -->|"selects words"| node_wordlist
node_menu -->|"checks phrase"| node_wallet_checks
node_menu -->|"prints results"| node_console_output
node_menu -->|"writes found details"| node_found_file
node_wallet_checks -.->|"queries services"| node_wallet_services

click node_menu "https://github.com/babakalol/seed-gen/blob/main/main.cpp"
click node_generator "https://github.com/babakalol/seed-gen/blob/main/generate.cpp"
click node_wordlist "https://github.com/babakalol/seed-gen/blob/main/wordlist.h"
click node_wallet_checks "https://github.com/babakalol/seed-gen/blob/main/checker.h"
click node_console_output "https://github.com/babakalol/seed-gen/blob/main/main.cpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_menu,node_user toneBlue
class node_generator,node_wordlist toneAmber
class node_wallet_checks,node_wallet_services toneMint
class node_console_output,node_found_file toneRose
```

## Components

### Console workflow

- [Menu and search loop](https://github.com/babakalol/seed-gen/blob/main/main.cpp): `main.cpp`

### Phrase generation

- [Phrase generator](https://github.com/babakalol/seed-gen/blob/main/generate.cpp): `generate.cpp`
- [Mnemonic word list](https://github.com/babakalol/seed-gen/blob/main/wordlist.h): `wordlist.h`

### Wallet checking

- [Wallet checks and rates](https://github.com/babakalol/seed-gen/blob/main/checker.h): `checker.h`
- **Wallet data services**

### Results

- [Console results](https://github.com/babakalol/seed-gen/blob/main/main.cpp): `main.cpp`
- **Found wallet records**

### Other components

- **Console user**

## Connections

- Console user → Menu and search loop: selects action (evidence: `README.md`)
- Menu and search loop → Phrase generator: generates phrase (evidence: `main.cpp`)
- Phrase generator → Mnemonic word list: selects words (evidence: `generate.cpp`)
- Menu and search loop → Wallet checks and rates: checks phrase (evidence: `main.cpp`)
- Menu and search loop → Console results: prints results (evidence: `main.cpp`)
- Menu and search loop → Found wallet records: writes found details (evidence: `main.cpp`)
- Wallet checks and rates → Wallet data services: queries services
