-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSTRUCTURE.txt
More file actions
362 lines (309 loc) · 18.7 KB
/
Copy pathSTRUCTURE.txt
File metadata and controls
362 lines (309 loc) · 18.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
JAVA NATIONAL FINANCE ENGINE — STRUCTURE
=========================================
Version: 2911.14.2
Date: 2026-06-23
Owner: Maximilian Eric Alexander Rupplin von Keffikon — MEARVK LLC
Contact: https://github.com/mearvk/Java.Web.Server.Telnet.Front.Java.21/discussions
Phone: 1.919.923.4239 (USA)
Languages: American, English, French, Spanish, Thai, Italian, German, Japanese, Chinese, Arabic, Russian, Ukrainian, Turkish
Headquarters: 555 South Mangum St, Durham, NC 27701
Purpose: IQ Conservatorship and Systems Design PhD+ of NCSU Math and Science and Harvard Law Final
Sorceress: Elisabeth R. Harkins of Stanford Math and Yale Sciences (https://github.com/ElisabethHarkins5509)
Contact: https://github.com/ElisabethHarkins5509/Java.Telnet.Options.JDKNatural.21/discussions
Students: Available on the 8th Floor after 8
Reference: NCSU CS, UNCW MSCSIS, Harvard Math, Pro-Counselling
VERSION RATIONALE
-----------------
2911 — Major release series.
14 — Minor: Middle director modules, Bitcoin wallet indexer, standalone
installer components, Apache key listener, distribution licensing.
1 — First patch of this minor series.
Full semver: 2911.14.1
SOURCE PACKAGES (source/)
---------------------------
Main.java
Entry point. Wires NITRO.BRIDGE and starts all services.
Ports declared: 49152 (WebExpress), 49155 (Status), 49166 (ModuleInstaller),
49177 (ASCIICreator), 5512 (AES2), 6682 (Bitcoin).
admin/
ModuleAdmin — Session-token admin authenticator for module unload / signatory ops.
Password via system property module.admin.password or
env MODULE_ADMIN_PASSWORD (default: n21admin).
ascii/creator/
ASCIICreator — Generates unique 5×5 binary ASCII grid codes (2,097,152 combinations).
bitcoin/
base/BitcoinBase
messaging/MessageOrderer
module/TraderModule
time/ — BitcoinAmericaAndLosAngelesDate, BitcoinAmericaAndNewYorkDate, BitcoinAsiaAndTokyoDate
time/flat/ — Full IANA timezone coverage (~400 timezone date classes)
time/flat/midi/BitcoinNewFlatiron108
commons/
CommonRails — Core print architecture; printSystemComponent / printShutdownSignal /
delayableFinePrinter / ANSI color constants / resolveOidColor.
EnglishArithemeter
InternationalCommonRails
IranianWedding
security/BodiSecurityException
security/SecurityExceptionHandler
transition/english/Arithmeter, EnglishArithemeter
connections/
Connection
ConnectionPoller
CurrentConnections
GalacticConnections
InternationalConnections
MexicoConnections
NationalConnections
RecordedConnections
logic/IPGeoParser
database/
N21AuthConfig — Loads MySQL credentials from authentication/mysql.auth.xml;
ensureMysqlRunning() checks / starts MySQL via cmd.exe sc/net.
N21DataSource — Shared JDBC connection; auto-fallback to XML on failure.
N21Status — Reports MySQL connectivity status with ANSI OID color.
N21Store — Static store methods for every N21 table:
connections, geo_locations, exceptions, security_events,
national_ids, national_finance_ids, status_snapshots,
ascii_signatures, module_loader.
N21XmlFallback — XML-based offline fallback; replayFallback() on startup.
encryption/module/aes/two/
EncryptionModule — AES 2.0 DSS5.0 encryption module.
exceptions/
ExceptionRecord — Record: EXCEPTION, ORIGIN, STACKTRACE, TIMESTAMP.
ExceptionListener — Interface; getPriority() + onException().
ExceptionHandler — Singleton dispatcher; ExceptionHandler.dispatch(e).
ExceptionEventDispatcher
ExceptionPersistenceService — Writes to /logging/exceptions.log (creates dir if absent).
PersistenceListener — Priority-100 listener; writes to /logging/exceptions.log.
N21ExceptionListener — Persists to MySQL via N21Store; flags security events.
NullPointerConstructorHandler
SecurityExceptionHandler
BackendSettings
marriatiage/tech/m/marriet/
Maria, Menounos
messaging/
MessageOutputHandler
MessageQueue
MessageQueueSorter
national/
NationalID — 8-digit + 16-digit key pair.
NationalFinanceID — Full person-aspect profile (IQ, education, trust, parents, etc.)
NationalFinanceIDFeeder — Telnet interactive onboarding; stores to MySQL.
NationalDriver — Ordered component printer for startup output.
NationalTellus
security/
PortAdministrator
PortKnockKnock
PortStealth
server/base/
BaseServer — ServerSocket lifecycle base.
server/nitro/
NitroWebExpress — Main server class; extends WebExpress.
WebExpress — Telnet proxy / message queue server base.
NitroWebExpress.Aspect — Bridge container; holds all service components:
├─ AESCompliant — AES 2.0 WebExpress on port 5512.
├─ BitcoinCompliant — Bitcoin WebExpress on port 6682.
├─ ConnectionStatusServer — Status report server on port 49155.
│ Reports: connections, geo, uptime, memory; persists to N21Store.
├─ MySQLComponent — Checks MySQL at startup; prints lime/red OID status.
├─ ModuleInstallationService — TCP command service on port 49166.
│ install <name> <sha256> <bytes> — receive .jar/.zip/.java, verify sig, load.
│ unload <name> — admin-only classloader close + registry remove.
│ list / restart / comment / signatory
│ Logs all actions to module_loader table.
│ ModuleRegistry — ConcurrentHashMap of InstalledModule entries.
│ InstalledModule — name, Path, URLClassLoader, install timestamp.
└─ ASCIICreatorServer — Binary ASCII signature service on port 49177.
request <nationalId> — issues unique 5×5 grid, 1000-day TTL, stored in DB.
view <nationalId> — retrieves existing valid signature.
Uniqueness enforced: UNIQUE KEY on both national_id and sig_id.
shutdown/
ShutdownHooks — JVM shutdown hook; prints SIGTERM/SIGKILL signals via CommonRails;
runs scripts/shutdown.sh silently for OS-level kills.
Ports swept: 49152, 49155, 49166, 49177, 5512, 6682.
sim/
InputQueue, stochastic
middle/
MiddleDirectorServer — Port 8888; synchronizes finance and target goals across
middle nodes and forwards to national NWE installations (49152).
Modules loaded from configuration/middle-director-modules.xml.
middle/director/
DirectorModule — Base interface; process() + recordTrade() + evaluateAndProcess().
DirectorPersistence — CSV persistence to data/middle/director/ (trades + edition/rank).
TradeEvaluator — Evaluates upward/better trades (trust + education grade).
Approved immediately or held 48hrs for auditor review.
EdgeSchedule — Weighted edge schedule: SHM=1, MHM=4, TAGM=6, GAGM=8, ACM=19.
Locked to central NWE authority (github.com/mearvk); alteration
requires valid PAT verification.
DistributionLicense — Edition + immutable rank system:
Personal Executive (rank 8) → National (rank 6) →
International (rank 4) → Free (rank 4).
Stored in MySQL distribution_license table; not alterable.
PublicKeyVerifier — Boot-time check for psychiatry/secrets/public.key on GitHub.
If present: software authorized to operate. Otherwise: restricted.
ShortHopsModule — Short-range finance hops. XML trades: Contract, Legal, Monies,
Resumes, Willingness, Trades, Quits.
Config: configuration/short-hops-trades.xml
MediumHopsModule — Medium-range goal synchronization across regional nodes.
ThoughtsAsGoalsModule — Weighted notions, formulations, rated value capture, sex trade.
Config: configuration/thoughts-as-goals-trades.xml
FinalMediumHopsModule — Science conclusions, postulates, rich research, grain review.
IQ 120+ / PhD required for structural sign-off.
Config: configuration/final-medium-hops-commodities.xml
GamesAsGoalsModule — Angular math roughing sketches (.mdmd file type).
IQ 150+ standard; IQ 125+ with good NationalID (trust ≥ 70).
Config: configuration/games-as-goals-sketches.xml
AuditorContentModule — Ethical trust codes (.CSVmd, 16 codes). Safe module —
always approves after annotation. Held trades released here.
Codes: source/middle/director/auditor-codes.csvmd
communicator/
Communicator
TransferSummaryMailer — Sends Transfer of Summary to contacts via sendmail/mailx.
Contacts loaded from configuration/transfer-contacts.xml.
Script: scripts/send-transfer-summary.sh
lanterna/
TerminalMenu — Lanterna GUI menu on port 49200; presents bordered buttons for
each service in the 49152 port series. Telnet clients connect,
select a service, and are transparently bridged to that port.
TerminalMenuBridge — Support class for TerminalMenu port bridging:
├─ SocketExtractor — Reflection utility; extracts private Socket from TelnetTerminal.
├─ ServiceConnector — Opens TCP connection to localhost:<port> for target service.
└─ Relay — Bidirectional byte pump (two daemon threads) between client
socket and service socket; closes both on EOF or error.
telnet/
TelnetCommunicationProxy
TelnetInputBuilder
TelnetInstaller
TelnetMessageQueue
TelnetOutputBuilder
TelnetProxyLivenessMonitor
DATABASE TABLES (MySQL — database N21)
----------------------------------------
connections — TCP connection log.
geo_locations — IP → city/country (ip-api.com).
exceptions — Full exception records with stack trace.
security_events — Security-flagged subset of exceptions.
national_ids — 8-digit + 16-digit key pairs.
national_finance_ids — Full person profile (NationalFinanceID fields).
users — Links national IDs, connections, and geo.
status_snapshots — Periodic uptime / memory / connection count.
ascii_signatures — Unique binary ASCII grid per National ID; 1000-day TTL.
module_loader — Audit log of all module install/unload/restart/connect actions.
distribution_license — Edition flag + immutable rank (PEE=8, NDE=6, INT=4, FREE=4).
Verified at boot via GitHub PAT. Not alterable at runtime.
bitcoin_transactions — Bitcoin tx records with AES keys and imagograph blob.
cia — Reserved: intelligence-agency integration.
fbi — Reserved: law-enforcement integration.
All tables are self-provisioning via N21Store.create*Table() at runtime
and also defined in scripts/N21.table.builder.sh.
SCRIPTS (scripts/)
--------------------
startup.sh — Start the server.
shutdown.sh — Silent SIGTERM → sleep 2 → SIGKILL on all server ports.
send-transfer-summary.sh — Send Transfer of Summary to contacts (requires mail agent).
N21.table.builder.sh — Create database N21 and all application tables.
mysql.install.sh — MySQL installation helper.
github.binary.classes.sh
bash/bitcoin/* — Bitcoin node verify/install scripts for versions 24–30.
bash/github.binary.classes.sh
Moves compiled .class files from source/ to out/ relative to project root.
PORTS SUMMARY
-------------
49152 WebExpress (main Telnet proxy)
49155 ConnectionStatusServer
49166 ModuleInstallationService
49177 ASCIICreatorServer
49188 ModuleLoaderDaemon
49199 Communicator
49200 TerminalMenu (Lanterna GUI → bridges to selected service)
49144 BinaryHttpServer
49133 WeatherServer
5512 AES 2.0 Compliant WebExpress
6682 Bitcoin Compliant WebExpress
8888 MiddleDirectorServer (finance/goal synchronization)
2000 StrernaryDirectoryServer (directory menu + XML forwarding + NIO masquerade)
20000 Strernary (best-guess inference, Java + OS dual port)
CITY ANALYSIS MODULE
--------------------
source/city-analysis/CityAnalysisMain.java — Entry point (IDE/terminal)
source/city-analysis/CityAnalysisServer.java — Property/deed data fetcher
source/city-analysis/CitySpeculationEngine.java — AI speculation + recursive self-analysis
source/city-analysis/CitySpeculationTrainer.java — Moral-bound IQ spatial model trainer
source/city-analysis/city-analysis-config.xml — 15 NC cities, connection settings
source/city-analysis/cse-allowance-config.xml — Reasoning limits, IQ tiers, trainer params
source/city-analysis/legalice.presumes.xml — Citizen class presumptions
source/city-analysis/speculations/ — Initial speculation output
source/city-analysis/speculations/recursive/ — Recursive passes by date/time
LOG / DATA PATHS
----------------
/logging/exceptions.log — Exception persistence (directory auto-created).
modules/ — Installed module files (.jar / .zip / .java source).
authentication/mysql.auth.xml — MySQL credentials.
data/middle/director/ — Director module trade CSVs (per-module).
data/middle/director/holds/ — 48hr auditor hold records.
data/distribution-edition.txt — Install-time edition selection.
psychiatry/secrets/public.key — Public authorization key (pushed to GitHub).
psychiatry/secrets/secret.key — Private key (NEVER pushed; .gitignored).
AUTHORIZATION
-------------
At boot, PublicKeyVerifier checks psychiatry/secrets/public.key on GitHub.
If present (HTTP 200): software operates within existing guidelines,
agreements, and contracts. If absent: restricted mode.
Owner retains local copies of both public.key and secret.key.
CONFIGURATION FILES
-------------------
configuration/nwe-config.xml — Main NWE service toggles.
configuration/protocol-handlers.xml — Well-known port protocol handlers.
configuration/middle-director-modules.xml — Middle director module registry.
configuration/edge-schedule.xml — Weighted edge schedule (locked).
configuration/short-hops-trades.xml — ShortHops trade definitions.
configuration/thoughts-as-goals-trades.xml — ThoughtsAsGoals trade definitions.
configuration/final-medium-hops-commodities.xml — FinalMediumHops research commodities.
configuration/games-as-goals-sketches.xml — GamesAsGoals .mdmd sketch config.
configuration/transfer-contacts.xml — Transfer of Summary contact registry.
configuration/nio-masquerade-config.xml — NIO masquerade layer settings.
configuration/masquerade-modules.xml — Masquerade-aware module registry.
configuration/port-2000-directory-config.xml — Port 2000 directory/forwarding config.
CONTACT / RANK UPGRADES / INSTALLER IDS
----------------------------------------
https://github.com/mearvk/Java.Web.Server.Telnet.Front.Java.21/discussions
Rank Upgrades: Request elevation from Free/International (rank 4) to
National (rank 6) or Personal Executive (rank 8).
Installer IDs: Request technical Installer ID for third-party module submission.
Public Key Requests: Request personal public.key for module signing and Rank 4
server registration.
Requirements: Valid NationalID, Moral Rating >= "Very Good", IQ >= 126.
STANDALONE COMPONENTS (not part of NWE — independently downloadable)
----------------------------------------------------------------------
standalone/
nwe-module-installer.jar — Standalone module installer. Listens on port 8888.
Accepts modules only from verified NWE (public.key check).
SHA-256 verified before install. COPY feature for replication.
NWEModuleInstaller.java — Source.
build.sh / run.sh — Build and run scripts.
apache/
nwe-key-listener — Standalone C executable. Listens port 80.
nwe-key-listener.c — Source (requires libcurl + libssl).
Phase 1: Accepts public.key POST, verifies against GitHub.
Phase 2: Accepts JAR from verified IP, checks PK magic + SHA-256,
installs to /opt/nwe/, opens port 8888, launches JAR.
30-minute timeout if no valid key received.
modules/
mod_nwe_key.c — Apache2 drop-in module (same logic as standalone).
mod_nwe_key.so — Compiled shared object (.libs/).
build-module.sh — Build + install + enable script (requires sudo).
Endpoints: POST /nwe-key-listener/handshake
POST /nwe-key-listener/install
suggestions/
TECHNICAL.md — Technical architecture suggestions.
SECURITY.md — Security recommendations.
MANAGEMENT.md — Management and operations suggestions.
COMPLETION.md — Session work completed / remaining items.
DATABASE TABLES — BITCOIN
--------------------------
bitcoin_wallets_v24..v30 — Indexed wallet files (name, size, BTC, USD, blob, SHA-256).
Original data. Never modified by trades.
bitcoin_trades_v24..v30 — Trade records (national_id, wallet, amount, USD, date, author).
bitcoin_wallet_sessions — Active wallet selection per NationalID (session persistence).
distribution_license — Edition flag + immutable rank (PEE=8, NDE=6, INT=4, FREE=4).