yakmesh 1.3.0 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,44 @@
2
2
 
3
3
  All notable changes to YAKMESH will be documented in this file.
4
4
 
5
+ ## [1.3.2] - 2026-01-17
6
+
7
+ ### Added
8
+ - **Public Content Delivery API** - Content-addressed storage for decentralized website hosting
9
+ - `GET /content` - List available content with stats
10
+ - `GET /content/:hash` - Fetch content by hash with optional proof
11
+ - `POST /content` - Publish content with consensus verification
12
+ - Content gossip via mesh for cross-node synchronization
13
+ - Consensus proof system for verified content
14
+
15
+ ### Fixed
16
+ - Gossip protocol method calls (use `spreadRumor()` instead of `broadcast()`)
17
+ - Direct messaging via mesh instead of non-existent gossip.sendTo()
18
+
19
+ ### Community
20
+ - Added social links: Discord, Telegram, X (Twitter)
21
+ - Created Discord announcement template
22
+
23
+ ---
24
+
25
+ ## [1.3.1] - 2026-01-16
26
+
27
+ ### Security
28
+ - Hardened peer handshake protocol validation
29
+ - Enhanced network fingerprint verification in HELLO/WELCOME exchange
30
+ - Added CodebaseLock module for runtime source integrity
31
+
32
+ ### Added
33
+ - 3-node test infrastructure for protocol verification
34
+ - iO-style (indistinguishability obfuscation) network identity derivation
35
+ - Human-readable network names from codebase fingerprint
36
+
37
+ ### Fixed
38
+ - Config path resolution for relative/absolute paths
39
+ - Test suite node ID prefix assertion
40
+
41
+ ---
42
+
5
43
  ## [1.3.0] - 2026-01-15
6
44
 
7
45
  ### 🌟 Major New Systems - "A Beacon in the Darkness"
@@ -40,6 +78,19 @@ All notable changes to YAKMESH will be documented in this file.
40
78
  - Timing attack resistance in PHANTOM
41
79
  - Improved rate limiting integration
42
80
 
81
+ ### 🛡️ Code Proof Protocol Hardening
82
+ - **CRITICAL FIX**: HELLO message now includes `networkFingerprint`
83
+ - **CRITICAL FIX**: WELCOME handler validates fingerprint, rejects mismatches (code 1008)
84
+ - Added `CodebaseLock` module for runtime source file protection
85
+ - Fixed config loading for relative/absolute path handling
86
+ - Comprehensive 3-node test suite: 17/17 tests passing
87
+ - Same-codebase peering verification
88
+ - Cross-codebase rejection (bidirectional)
89
+ - N-way fingerprint isolation matrix
90
+ - Empty/partial fingerprint attack blocking
91
+ - Flood attack resistance (20 simultaneous rejected)
92
+ - Fingerprint spoofing prevention
93
+
43
94
  ---
44
95
 
45
96
  ## [1.2.0] - 2026-01-15
@@ -79,4 +130,4 @@ All notable changes to YAKMESH will be documented in this file.
79
130
  - ML-DSA-65 post-quantum signatures
80
131
  - SQLite-based distributed oracle
81
132
  - WebSocket mesh networking
82
- - Phase-based consensus timing
133
+ - Phase-based consensus timing
package/README.md CHANGED
@@ -1,185 +1,191 @@
1
- <div align="center">
2
- <img src="https://yakmesh.dev/assets/yakmesh-logo2.png" alt="YAKMESH" width="200">
3
-
4
- <h1>🏔️ YAKMESH™: Sturdy & Secure</h1>
5
-
6
- <p><strong>Yielding Atomic Kernel Modular Encryption Secured Hub</strong></p>
7
-
8
- <p>
9
- <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
10
- <a href="https://nodejs.org"><img src="https://img.shields.io/badge/Node.js-18+-green.svg" alt="Node.js"></a>
11
- <a href="https://csrc.nist.gov/projects/post-quantum-cryptography"><img src="https://img.shields.io/badge/Crypto-Post--Quantum-blue.svg" alt="Post-Quantum"></a>
12
- <a href="https://www.npmjs.com/package/yakmesh"><img src="https://img.shields.io/npm/v/yakmesh.svg" alt="npm version"></a>
13
- </p>
14
- </div>
15
-
16
- ---
17
-
18
- YAKMESH is a high-resiliency, decentralized networking layer designed for the 2026 threat landscape. Built with quantum-resistant cryptography at its core and anchored by PCIe atomic timing synchronization, YAKMESH provides a "sturdy" substrate for distributed systems that cannot afford to fail.
19
-
20
- ## Why YAKMESH?
21
-
22
- In an era where traditional ECDSA is increasingly vulnerable and network jitter can desynchronize global state, YAKMESH offers a three-pillar solution:
23
-
24
- 🌿 **Yielding Resilience**: A self-healing mesh topology that adapts to node failure and adversarial interference without central authority.
25
-
26
- ⚛️ **Atomic Precision**: Integrated support for PCIe atomic clock hardware, enabling nanosecond-level hardware timestamping for low-latency synchronization.
27
-
28
- 🔐 **Quantum Hardened**: Fully compatible with Project Zond and the QRL (Quantum Resistant Ledger) ecosystem, utilizing stateless lattice-based signatures (ML-DSA) from Genesis.
29
-
30
- ---
31
-
32
- ## The Y.A.K.M.E.S.H. Philosophy
33
-
34
- | Letter | Principle | Description |
35
- |--------|-----------|-------------|
36
- | **Y** | **Yielding** | Not brittle; flexible enough to absorb network shocks |
37
- | **A** | **Atomic** | Grounded in the absolute truth of physical time |
38
- | **K** | **Kernel** | The essential, innermost part of the secure stack |
39
- | **M** | **Modular** | Swap out encryption primitives or transport layers as tech evolves |
40
- | **E** | **Encryption** | Privacy and integrity by default |
41
- | **S** | **Secured** | Hardened against both classical and quantum vectors |
42
- | **H** | **Hub** | A nexus for decentralized data and peer-to-peer logic |
43
-
44
- ---
45
-
46
- ## Features
47
-
48
- - 🔒 **Post-Quantum Secure** - ML-DSA-65 (NIST FIPS 204) signatures
49
- - 🔮 **Self-Verifying Oracle** - Deterministic validation without external trust
50
- - 🌐 **Mesh Networking** - P2P WebSocket communication with gossip protocol
51
- - ⏱️ **Precision Timing** - Support for atomic clocks, GPS, PTP, NTP
52
- - 🔌 **Plugin Architecture** - Adapters for any database or API
53
- - 🛡️ **Phase Modulation** - Time-based anti-replay protection
54
-
55
- ## Quick Start
56
-
57
- ```bash
58
- npm install yakmesh
59
- ```
60
-
61
- ```javascript
62
- import { YakmeshNode } from 'yakmesh';
63
-
64
- const node = new YakmeshNode({
65
- node: { name: 'My Node' },
66
- network: { httpPort: 3000, wsPort: 9001 },
67
- });
68
-
69
- await node.start();
70
- ```
71
-
72
- ## CLI
73
-
74
- ```bash
75
- # Initialize a new node
76
- npx yakmesh init
77
-
78
- # Start the node
79
- npx yakmesh start
80
-
81
- # Check status
82
- npx yakmesh status
83
- ```
84
-
85
- ## Documentation
86
-
87
- Full documentation available at **[yakmesh.dev](https://yakmesh.dev)**
88
-
89
- ## Architecture
90
-
91
- ```
92
- yakmesh/
93
- ├── oracle/ # Self-verifying validation engine
94
- ├── mesh/ # WebSocket P2P networking
95
- ├── gossip/ # Epidemic-style message propagation
96
- ├── identity/ # Post-quantum key management
97
- ├── database/ # SQLite replication engine
98
- ├── adapters/ # Platform integration plugins
99
- ├── webserver/ # Embedded Caddy web server
100
- └── server/ # HTTP/WS server
101
- ```
102
-
103
- ## Network Identity
104
-
105
- Each YAKMESH network has a unique identity derived from configurable salts:
106
-
107
- ```javascript
108
- import { setIdentityConfig } from 'yakmesh/oracle/network-identity.js';
109
-
110
- setIdentityConfig({
111
- networkPrefix: 'my', // Network ID prefix
112
- identitySalt: 'my-app-v1', // Unique network salt
113
- });
114
-
115
- // Different salt = different network (cannot interoperate)
116
- ```
117
-
118
- ## Time Source Trust Levels
119
-
120
- | Level | Source | Tolerance | Oracle Capable |
121
- |-------|--------|-----------|----------------|
122
- | ATOMIC | PCIe atomic clock | ±100ms | ✅ Yes |
123
- | GPS | GPS with PPS | ±500ms | ✅ Yes |
124
- | PTP | IEEE 1588 (Meinberg) | ±500ms | ⚠️ Partial |
125
- | NTP | Standard NTP | ±5000ms | ❌ No |
126
-
127
- ## Adapters
128
-
129
- Create custom adapters by extending `BaseAdapter`:
130
-
131
- ```javascript
132
- import { BaseAdapter } from 'yakmesh/adapters/base-adapter.js';
133
-
134
- class MyAdapter extends BaseAdapter {
135
- async init() { /* Connect to your database */ }
136
- getSchema() { return { tables: ['users', 'orders'] }; }
137
- async fetchChanges(since) { /* Return changed records */ }
138
- async applyChange(table, record, op) { /* Write to database */ }
139
- }
140
- ```
141
-
142
- ### Official Adapters
143
-
144
- - `@yakmesh/adapter-peerquanta` - PeerQuanta phpBB marketplace
145
-
146
- ## API Endpoints
147
-
148
- | Endpoint | Method | Description |
149
- |----------|--------|-------------|
150
- | `/health` | GET | Node health status |
151
- | `/node` | GET | Node identity info |
152
- | `/peers` | GET | Connected peers |
153
- | `/oracle/status` | GET | Oracle integrity check |
154
- | `/network/identity` | GET | Network identity (hash obfuscated) |
155
- | `/time/status` | GET | Time source detection |
156
- | `/time/capabilities` | GET | Time oracle eligibility |
157
- | `/connect` | POST | Connect to a peer |
158
-
159
- ## Pro Features
160
-
161
- YAKMESH Pro includes additional security features:
162
-
163
- - 🔐 **WebSocket Authentication** - Challenge-response auth with signatures
164
- - 🔒 **Message Encryption** - XChaCha20-Poly1305 encrypted messages
165
- - 📋 **Peer Allowlist/Blocklist** - Access control for private networks
166
- - 🛡️ **Connection Rate Limiting** - DDoS protection
167
-
168
- ## License
169
-
170
- - **Community Edition**: MIT License (see [LICENSE](LICENSE))
171
- - **Pro Edition**: Proprietary License
172
-
173
- See [TRADEMARK.md](TRADEMARK.md) for trademark usage policy.
174
-
175
- ---
176
-
177
- <div align="center">
178
- <sub>Built with quantum principles. Secured by math.</sub>
179
- <br><br>
180
- <strong><a href="https://yakmesh.dev">yakmesh.dev</a></strong>
181
- <br><br>
182
- <sub>© 2026 YAKMESH™ Project. Sturdy & Secure.</sub>
183
- <br>
184
- <sub>YAKMESH™ is a trademark of PeerQuanta, application pending (Serial No. 99594620).</sub>
185
- </div>
1
+ <div align="center">
2
+ <img src="https://yakmesh.dev/assets/yakmesh-logo2.png" alt="YAKMESH" width="200">
3
+
4
+ <h1>🏔️ YAKMESH™: Sturdy & Secure</h1>
5
+
6
+ <p><strong>Yielding Atomic Kernel Modular Encryption Secured Hub</strong></p>
7
+
8
+ <p>
9
+ <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
10
+ <a href="https://nodejs.org"><img src="https://img.shields.io/badge/Node.js-18+-green.svg" alt="Node.js"></a>
11
+ <a href="https://csrc.nist.gov/projects/post-quantum-cryptography"><img src="https://img.shields.io/badge/Crypto-Post--Quantum-blue.svg" alt="Post-Quantum"></a>
12
+ <a href="https://www.npmjs.com/package/yakmesh"><img src="https://img.shields.io/npm/v/yakmesh.svg" alt="npm version"></a>
13
+ </p>
14
+ </div>
15
+
16
+ ---
17
+
18
+ YAKMESH is a high-resiliency, decentralized networking layer designed for the 2026 threat landscape. Built with quantum-resistant cryptography at its core and anchored by PCIe atomic timing synchronization, YAKMESH provides a "sturdy" substrate for distributed systems that cannot afford to fail.
19
+
20
+ ## Why YAKMESH?
21
+
22
+ In an era where traditional ECDSA is increasingly vulnerable and network jitter can desynchronize global state, YAKMESH offers a three-pillar solution:
23
+
24
+ 🌿 **Yielding Resilience**: A self-healing mesh topology that adapts to node failure and adversarial interference without central authority.
25
+
26
+ ⚛️ **Atomic Precision**: Integrated support for PCIe atomic clock hardware, enabling hardware timestamping with support for high-precision time sources for low-latency synchronization.
27
+
28
+ 🔐 **Quantum Hardened**: Fully compatible with Project Zond and the QRL (Quantum Resistant Ledger) ecosystem, utilizing stateless lattice-based signatures (ML-DSA) from Genesis.
29
+
30
+ ---
31
+
32
+ ## The Y.A.K.M.E.S.H. Philosophy
33
+
34
+ | Letter | Principle | Description |
35
+ |--------|-----------|-------------|
36
+ | **Y** | **Yielding** | Not brittle; flexible enough to absorb network shocks |
37
+ | **A** | **Atomic** | Grounded in the absolute truth of physical time |
38
+ | **K** | **Kernel** | The essential, innermost part of the secure stack |
39
+ | **M** | **Modular** | Swap out encryption primitives or transport layers as tech evolves |
40
+ | **E** | **Encryption** | Privacy and integrity by default |
41
+ | **S** | **Secured** | Hardened against both classical and quantum vectors |
42
+ | **H** | **Hub** | A nexus for decentralized data and peer-to-peer logic |
43
+
44
+ ---
45
+
46
+ ## Features
47
+
48
+ - 🔒 **Post-Quantum Secure** - ML-DSA-65 (NIST FIPS 204) signatures
49
+ - 🔮 **Self-Verifying Oracle** - Deterministic validation without external trust
50
+ - 🌐 **Mesh Networking** - P2P WebSocket communication with gossip protocol
51
+ - ⏱️ **Precision Timing** - Support for atomic clocks, GPS, PTP, NTP
52
+ - 🔌 **Plugin Architecture** - Adapters for any database or API
53
+ - 🛡️ **Phase Modulation** - Time-based anti-replay protection
54
+
55
+ ## Quick Start
56
+
57
+ ```bash
58
+ npm install yakmesh
59
+ ```
60
+
61
+ ```javascript
62
+ import { YakmeshNode } from 'yakmesh';
63
+
64
+ const node = new YakmeshNode({
65
+ node: { name: 'My Node' },
66
+ network: { httpPort: 3000, wsPort: 9001 },
67
+ });
68
+
69
+ await node.start();
70
+ ```
71
+
72
+ ## CLI
73
+
74
+ ```bash
75
+ # Initialize a new node
76
+ npx yakmesh init
77
+
78
+ # Start the node
79
+ npx yakmesh start
80
+
81
+ # Check status
82
+ npx yakmesh status
83
+ ```
84
+
85
+ ## Documentation
86
+
87
+ Full documentation available at **[yakmesh.dev](https://yakmesh.dev)**
88
+
89
+ ## Architecture
90
+
91
+ ```
92
+ yakmesh/
93
+ ├── oracle/ # Self-verifying validation engine
94
+ ├── mesh/ # WebSocket P2P networking
95
+ ├── gossip/ # Epidemic-style message propagation
96
+ ├── identity/ # Post-quantum key management
97
+ ├── database/ # SQLite replication engine
98
+ ├── adapters/ # Platform integration plugins
99
+ ├── webserver/ # Embedded Caddy web server
100
+ └── server/ # HTTP/WS server
101
+ ```
102
+
103
+ ## Network Identity
104
+
105
+ Each YAKMESH network has a unique identity derived from configurable salts:
106
+
107
+ ```javascript
108
+ import { setIdentityConfig } from 'yakmesh/oracle/network-identity.js';
109
+
110
+ setIdentityConfig({
111
+ networkPrefix: 'my', // Network ID prefix
112
+ identitySalt: 'my-app-v1', // Unique network salt
113
+ });
114
+
115
+ // Different salt = different network (cannot interoperate)
116
+ ```
117
+
118
+ ## Time Source Trust Levels
119
+
120
+ | Level | Source | Tolerance | Oracle Capable |
121
+ |-------|--------|-----------|----------------|
122
+ | ATOMIC | PCIe atomic clock | ±100ms | ✅ Yes |
123
+ | GPS | GPS with PPS | ±500ms | ✅ Yes |
124
+ | PTP | IEEE 1588 (Meinberg) | ±500ms | ⚠️ Partial |
125
+ | NTP | Standard NTP | ±5000ms | ❌ No |
126
+
127
+ ## Adapters
128
+
129
+ Create custom adapters by extending `BaseAdapter`:
130
+
131
+ ```javascript
132
+ import { BaseAdapter } from 'yakmesh/adapters/base-adapter.js';
133
+
134
+ class MyAdapter extends BaseAdapter {
135
+ async init() { /* Connect to your database */ }
136
+ getSchema() { return { tables: ['users', 'orders'] }; }
137
+ async fetchChanges(since) { /* Return changed records */ }
138
+ async applyChange(table, record, op) { /* Write to database */ }
139
+ }
140
+ ```
141
+
142
+ ### Official Adapters
143
+
144
+ - `@yakmesh/adapter-peerquanta` - PeerQuanta phpBB marketplace
145
+
146
+ ## API Endpoints
147
+
148
+ | Endpoint | Method | Description |
149
+ |----------|--------|-------------|
150
+ | `/health` | GET | Node health status |
151
+ | `/node` | GET | Node identity info |
152
+ | `/peers` | GET | Connected peers |
153
+ | `/oracle/status` | GET | Oracle integrity check |
154
+ | `/network/identity` | GET | Network identity (hash obfuscated) |
155
+ | `/time/status` | GET | Time source detection |
156
+ | `/time/capabilities` | GET | Time oracle eligibility |
157
+ | `/connect` | POST | Connect to a peer |
158
+
159
+ ## Pro Features
160
+
161
+ YAKMESH Pro includes additional security features:
162
+
163
+ - 🔐 **WebSocket Authentication** - Challenge-response auth with signatures
164
+ - 🔒 **Message Encryption** - XChaCha20-Poly1305 encrypted messages
165
+ - 📋 **Peer Allowlist/Blocklist** - Access control for private networks
166
+ - 🛡️ **Connection Rate Limiting** - DDoS protection
167
+
168
+ ## License
169
+
170
+ - **Community Edition**: MIT License (see [LICENSE](LICENSE))
171
+ - **Pro Edition**: Proprietary License
172
+
173
+ See [TRADEMARK.md](TRADEMARK.md) for trademark usage policy.
174
+
175
+ ---
176
+
177
+ <div align="center">
178
+ <sub>Built with quantum principles. Secured by math.</sub>
179
+ <br><br>
180
+ <strong><a href="https://yakmesh.dev">yakmesh.dev</a></strong>
181
+ <br><br>
182
+ <p>
183
+ <a href="https://discord.gg/E62tAE2wGh">💬 Discord</a>
184
+ <a href="https://t.me/yakmesh">📱 Telegram</a>
185
+ <a href="https://x.com/yakmesh">𝕏 Twitter</a>
186
+ </p>
187
+ <br>
188
+ <sub>© 2026 YAKMESH™ Project. Sturdy & Secure.</sub>
189
+ <br>
190
+ <sub>YAKMESH™ is a trademark of PeerQuanta, application pending (Serial No. 99594620).</sub>
191
+ </div>
@@ -0,0 +1,55 @@
1
+ # 🦬 YAKMESH v1.3.1 — Public Content Delivery + Mesh Peering Confirmed!
2
+
3
+ Hey everyone! Big update today:
4
+
5
+ ## ✅ What's New
6
+
7
+ ### 🌐 Public Content Delivery API
8
+ We've added a complete **content-addressed storage system** with public delivery:
9
+
10
+ ```
11
+ GET /content/:hash → Fetch any content by its hash
12
+ GET /content/:hash/proof → Get consensus proof for verification
13
+ POST /content/publish → Store and gossip content to mesh
14
+ ```
15
+
16
+ **Key features:**
17
+ - Content addressed by SHA3-256 hash (trustless verification)
18
+ - Consensus proofs for light client verification
19
+ - LRU caching for instant edge delivery
20
+ - Automatic mesh sync via gossip protocol
21
+
22
+ ### 🔗 First Successful LAN Mesh Peering
23
+ Tested and confirmed: **two Yakmesh nodes successfully peered** with matching network fingerprints. The Code Proof Protocol verified both were running identical codebases before allowing the connection.
24
+
25
+ **Connection is as simple as:**
26
+ ```powershell
27
+ POST http://localhost:3000/connect
28
+ { "address": "ws://192.168.1.178:9001" }
29
+ ```
30
+
31
+ ### 📱 New Social Channels
32
+ We're now on:
33
+ - 💬 **Discord**: https://discord.gg/E62tAE2wGh
34
+ - 📱 **Telegram**: https://t.me/yakmesh
35
+ - 𝕏 **Twitter**: https://x.com/yakmesh
36
+
37
+ ## 📦 Install
38
+
39
+ ```bash
40
+ npm install yakmesh@1.3.1
41
+ ```
42
+
43
+ ## 🔗 Links
44
+ - 🌐 Website: https://yakmesh.dev
45
+ - 📖 GitHub: https://github.com/yakmesh/yakmesh
46
+ - 📦 npm: https://npmjs.com/package/yakmesh
47
+
48
+ ---
49
+
50
+ **What's next?**
51
+ - Multi-node cluster testing
52
+ - Production deployment
53
+ - Website/webapp hosting demos
54
+
55
+ Questions? Drop them here! 🦬