How cloakproject/cloakcoin works
CloakCoin is a proof-of-stake cryptocurrency client with a Qt wallet. Its principal user workflow is to use the wallet GUI to inspect client and chain status and manage wallet activity, while the core maintains blockchain state and communicates with peers; the README identifies the GUI wallet and proof-of-stake consensus. The repository also contains Enigma cloaking and a substantial Tor networking subsystem. The index and excerpts establish several core dependencies, but do not show the complete GUI action paths or Tor integration, so those links are omitted or marked unverified.
Main entry points: main.cpp Chain processing · bitcoingui.cpp Qt wallet · enigma.cpp Enigma protocol · cloakingrequest.cpp Cloaking requests
Components 18
Wallet GUI
- Qt wallet
src/qt/bitcoingui.cpp - Client status
src/qt/clientmodel.cpp - Wallet model
src/qt/walletmodel.cpp - Send coins
src/qt/sendcoinsdialog.cpp
Coin Core
- Chain processing
src/main.cpp - Peer networking
src/net.cpp - Wallet state
src/wallet.cpp - Node startup
src/init.cpp - RPC interface
src/bitcoinrpc.cpp
Enigma Cloaking
- Enigma protocol
src/enigma/enigma.cpp - Cloaking requests
src/enigma/cloakingrequest.cpp - Cloaking shield
src/enigma/cloakshield.cpp
Tor Networking
- Tor runtime
src/tor/or.h - Router directory
src/tor/routerlist.c - Descriptor parsing
src/tor/routerparse.c
Persistence
- Transaction database
src/txdb-leveldb.cpp - LevelDB engine
src/leveldb/db/version_set.cc
Other components
- Wallet user
Connections 17
- Wallet user → Qt wallet: uses
README - Qt wallet → Client status: shows status
- Qt wallet → Wallet model: manages wallet
- Qt wallet → Send coins: initiates send
- Client status → Chain processing: reads chain state
src/qt/clientmodel.cpp - Chain processing → Peer networking: uses peers
src/main.cpp - Chain processing → Wallet state: uses wallet
src/main.cpp - Chain processing → Node startup: uses startup
src/main.cpp - Chain processing → Transaction database: uses database
src/main.cpp - Chain processing → Enigma protocol: uses cloaking
src/main.cpp - Chain processing → RPC interface: exposes RPC
- Cloaking requests → Wallet state: updates wallet
src/enigma/cloakingrequest.cpp - Cloaking requests → Transaction database: fetches inputs
src/enigma/cloakingrequest.cpp - Enigma protocol → Cloaking requests: coordinates requests
- Enigma protocol → Cloaking shield: uses shield
- Router directory → Descriptor parsing: parses descriptors
- Transaction database → LevelDB engine: stores records