yakmesh 1.2.0 → 1.3.1
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 +91 -102
- package/README.md +185 -185
- package/assets/yakmesh-logo2sm.png +0 -0
- package/assets/ymsm.png +0 -0
- package/discord.md +74 -0
- package/identity/node-key.js +31 -4
- package/mesh/beacon-broadcast.js +655 -0
- package/mesh/echo-ranging.js +612 -0
- package/mesh/network.js +64 -4
- package/mesh/phantom-routing.js +700 -0
- package/mesh/pulse-sync.js +618 -0
- package/mesh/temporal-encoder.js +383 -383
- package/oracle/codebase-lock.js +256 -0
- package/oracle/index.js +16 -7
- package/oracle/network-identity.js +418 -439
- package/oracle/phase-epoch.js +3 -0
- package/oracle/time-source.js +76 -56
- package/oracle/validation-oracle-hardened.js +96 -6
- package/package.json +84 -52
- package/server/index.js +967 -933
- package/.github/workflows/ci.yml +0 -67
- package/test-crypto.mjs +0 -28
- package/test-security.mjs +0 -223
- package/test-stress.mjs +0 -198
- package/test-suite.mjs +0 -198
- package/test-tme.mjs +0 -383
package/CHANGELOG.md
CHANGED
|
@@ -1,124 +1,113 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
All notable changes to YAKMESH
|
|
3
|
+
All notable changes to YAKMESH will be documented in this file.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
5
|
+
## [1.3.1] - 2026-01-16
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
### Security
|
|
8
|
+
- Hardened peer handshake protocol validation
|
|
9
|
+
- Enhanced network fingerprint verification in HELLO/WELCOME exchange
|
|
10
|
+
- Added CodebaseLock module for runtime source integrity
|
|
9
11
|
|
|
10
12
|
### Added
|
|
11
|
-
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
- Mesh topology-aware encoding for intelligent path diversity
|
|
15
|
-
- NOT erasure coding - a fundamentally new approach to packet loss recovery
|
|
16
|
-
- **TemporalSlice**: Atomic unit of TME with cryptographic time binding
|
|
17
|
-
- Temporal hash includes: data + timestamp + sequence + mesh position
|
|
18
|
-
- Chain integrity via prevTemporalHash linking
|
|
19
|
-
- Tamper detection on deserialization
|
|
20
|
-
- **TemporalStream**: Message slicing and reassembly with temporal properties
|
|
21
|
-
- Configurable slice size and timing intervals
|
|
22
|
-
- Completion tracking and missing slice detection
|
|
23
|
-
- Temporal chain validation
|
|
24
|
-
- **TemporalReconstructor**: Recovery system using timing proofs
|
|
25
|
-
- Consensus verification from multiple mesh neighbors
|
|
26
|
-
- Missing slice attestation via timing proofs
|
|
27
|
-
- Partial reconstruction capabilities
|
|
28
|
-
- **TemporalMeshEncoder**: High-level API for TME operations
|
|
29
|
-
- Full encode/decode lifecycle management
|
|
30
|
-
- Statistics tracking (slices sent/received, completion rates)
|
|
31
|
-
- Stream status monitoring
|
|
32
|
-
- New test suite: 18 TME-specific tests (test-tme.mjs)
|
|
33
|
-
|
|
34
|
-
### Philosophy
|
|
35
|
-
- "Time IS the redundancy dimension" - unlike Walrus/Red Stuff 2D erasure coding
|
|
36
|
-
- Designed for real-time mesh networks with atomic clock sync
|
|
37
|
-
- Leverages YAKMESH's unique post-quantum + atomic timing combination
|
|
13
|
+
- 3-node test infrastructure for protocol verification
|
|
14
|
+
- iO-style (indistinguishability obfuscation) network identity derivation
|
|
15
|
+
- Human-readable network names from codebase fingerprint
|
|
38
16
|
|
|
39
|
-
|
|
17
|
+
### Fixed
|
|
18
|
+
- Config path resolution for relative/absolute paths
|
|
19
|
+
- Test suite node ID prefix assertion
|
|
40
20
|
|
|
41
|
-
|
|
42
|
-
- **NAVR (Network Assimilation Validation Routine)**: Computational identity verification for new nodes
|
|
43
|
-
- Replaces traditional "Proof of Work" terminology to avoid blockchain confusion
|
|
44
|
-
- One-time puzzle solve during node registration (NOT mining)
|
|
45
|
-
- Configurable difficulty for network defense scaling
|
|
46
|
-
- **Sybil Defense Module** (`mesh/sybil-defense.js`):
|
|
47
|
-
- NAVR computational puzzle for identity creation
|
|
48
|
-
- ReputationTracker for trust scoring (0.0 to 1.0 scale)
|
|
49
|
-
- SubnetDiversity to prevent eclipse attacks (max 3 connections per /24 subnet)
|
|
50
|
-
- **Replay Defense Module** (`mesh/replay-defense.js`):
|
|
51
|
-
- NonceRegistry with cryptographic 32-byte nonces (1hr expiry)
|
|
52
|
-
- TimestampValidator (10-minute freshness window)
|
|
53
|
-
- SequenceTracker for per-sender message ordering
|
|
54
|
-
- ChallengeResponse for mutual node authentication
|
|
55
|
-
- **Message Validator Module** (`mesh/message-validator.js`):
|
|
56
|
-
- Size limits per message type (1MB max, gossip 64KB, handshake 8KB)
|
|
57
|
-
- Nesting depth protection (max 10 levels)
|
|
58
|
-
- SafeJsonParser with prototype pollution protection
|
|
59
|
-
- Expanded test suite: 24 security tests covering all attack vectors
|
|
21
|
+
---
|
|
60
22
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
23
|
+
## [1.3.0] - 2026-01-15
|
|
24
|
+
|
|
25
|
+
### 🌟 Major New Systems - "A Beacon in the Darkness"
|
|
26
|
+
|
|
27
|
+
#### ECHO™ - Encrypted Coordinate Heuristic Oracle
|
|
28
|
+
- Privacy-preserving network topology discovery
|
|
29
|
+
- Virtual coordinate system for latency estimation
|
|
30
|
+
- Encrypted timing probes (AES-256-GCM)
|
|
31
|
+
- Route optimization through coordinate-based pathfinding
|
|
32
|
+
|
|
33
|
+
#### PULSE™ - Precision Universal Latency Sync Engine
|
|
34
|
+
- Mesh heartbeat system with cryptographic proofs
|
|
35
|
+
- Node liveness detection (alive/suspect/dead states)
|
|
36
|
+
- Network partition detection with confidence scoring
|
|
37
|
+
- Raft-inspired leader election using heartbeat chains
|
|
38
|
+
|
|
39
|
+
#### PHANTOM™ - Post-quantum Hidden Anonymous Network Transmission
|
|
40
|
+
- **First-ever post-quantum onion routing implementation**
|
|
41
|
+
- ML-KEM-768 (Kyber) key encapsulation per layer
|
|
42
|
+
- Multi-layer encryption with temporal padding
|
|
43
|
+
- Decoy traffic injection (10% probability)
|
|
44
|
+
- Fixed packet sizing to prevent length analysis
|
|
45
|
+
|
|
46
|
+
#### BEACON™ - Broadcast Emergency Alert Channel Over Network
|
|
47
|
+
- Priority message propagation (ROUTINE → CRITICAL)
|
|
48
|
+
- Flood-based protocol with intelligent deduplication
|
|
49
|
+
- Proof-of-receipt for delivery confirmation
|
|
50
|
+
- TTL-based propagation control
|
|
51
|
+
|
|
52
|
+
### 📊 Test Coverage
|
|
53
|
+
- 68 tests total (18 TME + 24 Security + 26 Novel Systems)
|
|
54
|
+
- All tests passing
|
|
55
|
+
|
|
56
|
+
### 🔐 Security Improvements
|
|
57
|
+
- Enhanced cryptographic hashing (SHA3-256)
|
|
58
|
+
- Timing attack resistance in PHANTOM
|
|
59
|
+
- Improved rate limiting integration
|
|
60
|
+
|
|
61
|
+
### 🛡️ Code Proof Protocol Hardening
|
|
62
|
+
- **CRITICAL FIX**: HELLO message now includes `networkFingerprint`
|
|
63
|
+
- **CRITICAL FIX**: WELCOME handler validates fingerprint, rejects mismatches (code 1008)
|
|
64
|
+
- Added `CodebaseLock` module for runtime source file protection
|
|
65
|
+
- Fixed config loading for relative/absolute path handling
|
|
66
|
+
- Comprehensive 3-node test suite: 17/17 tests passing
|
|
67
|
+
- Same-codebase peering verification
|
|
68
|
+
- Cross-codebase rejection (bidirectional)
|
|
69
|
+
- N-way fingerprint isolation matrix
|
|
70
|
+
- Empty/partial fingerprint attack blocking
|
|
71
|
+
- Flood attack resistance (20 simultaneous rejected)
|
|
72
|
+
- Fingerprint spoofing prevention
|
|
66
73
|
|
|
67
|
-
|
|
74
|
+
---
|
|
68
75
|
|
|
69
|
-
|
|
70
|
-
- **CRITICAL**: Fixed ML-DSA-65 signature verification parameter order (was: publicKey, message, signature → now: signature, message, publicKey)
|
|
76
|
+
## [1.2.0] - 2026-01-15
|
|
71
77
|
|
|
72
78
|
### Added
|
|
73
|
-
- **
|
|
74
|
-
-
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
|
|
78
|
-
-
|
|
79
|
-
- Stress test suite (14 tests with edge cases)
|
|
80
|
-
|
|
81
|
-
### Security
|
|
82
|
-
- Integrated rate limiting into mesh/network.js WebSocket handling
|
|
83
|
-
- Protection against 51% / network isolation attacks via message throttling
|
|
79
|
+
- **TME™ (Temporal Mesh Encoding)** - Novel packet resilience system
|
|
80
|
+
- Encodes data across TIME, not space
|
|
81
|
+
- Temporal slicing with cryptographic chaining
|
|
82
|
+
- Predictive reconstruction from timing proofs
|
|
83
|
+
- TME FAQ documentation
|
|
84
|
+
- Whitepaper (docs/WHITEPAPER.md)
|
|
84
85
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
### Fixed
|
|
88
|
-
- Fixed README.md formatting for proper rendering on npm and GitHub
|
|
86
|
+
---
|
|
89
87
|
|
|
90
|
-
## [1.0
|
|
88
|
+
## [1.1.0] - 2026-01-14
|
|
91
89
|
|
|
92
|
-
###
|
|
93
|
-
-
|
|
94
|
-
-
|
|
90
|
+
### Added
|
|
91
|
+
- **NAVR** (Network Access Verification via Resources) - Sybil defense
|
|
92
|
+
- Replay attack protection (nonces, timestamps, sequences)
|
|
93
|
+
- Message validator with size limits and depth checks
|
|
94
|
+
- Rate limiter for DoS protection
|
|
95
|
+
- Subnet diversity tracking
|
|
95
96
|
|
|
96
|
-
|
|
97
|
+
---
|
|
97
98
|
|
|
98
|
-
|
|
99
|
-
- **Post-Quantum Cryptography**: ML-DSA-65 (NIST FIPS 204) signatures
|
|
100
|
-
- **Self-Verifying Oracle**: Deterministic validation without external trust
|
|
101
|
-
- **Mesh Networking**: P2P WebSocket communication with gossip protocol
|
|
102
|
-
- **Precision Timing**: Support for atomic clocks, GPS, PTP, NTP time sources
|
|
103
|
-
- **Plugin Architecture**: BaseAdapter for custom database integrations
|
|
104
|
-
- **Phase Modulation**: Time-based anti-replay protection
|
|
105
|
-
- **Network Identity**: Configurable salts for isolated network deployments
|
|
106
|
-
- **Code Proof Protocol**: Integrity verification for distributed code
|
|
107
|
-
- **Consensus Engine**: Distributed agreement on network state
|
|
108
|
-
- **CLI Tools**: `yakmesh init`, `yakmesh start`, `yakmesh status`
|
|
109
|
-
- **Dashboard**: Web-based node monitoring interface
|
|
110
|
-
- **Embedded Webserver**: Caddy integration for HTTPS/reverse proxy
|
|
99
|
+
## [1.0.3] - 2026-01-15
|
|
111
100
|
|
|
112
|
-
###
|
|
113
|
-
-
|
|
114
|
-
-
|
|
115
|
-
- Hardware timestamping support for timing attack mitigation
|
|
101
|
+
### Fixed
|
|
102
|
+
- verify() function in identity module
|
|
103
|
+
- Rate limiter initialization
|
|
116
104
|
|
|
117
105
|
---
|
|
118
106
|
|
|
119
|
-
[1.0.
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
107
|
+
## [1.0.0] - 2026-01-13
|
|
108
|
+
|
|
109
|
+
### Initial Release
|
|
110
|
+
- ML-DSA-65 post-quantum signatures
|
|
111
|
+
- SQLite-based distributed oracle
|
|
112
|
+
- WebSocket mesh networking
|
|
113
|
+
- Phase-based consensus timing
|
package/README.md
CHANGED
|
@@ -1,185 +1,185 @@
|
|
|
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
|
|
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
|
+
<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>
|
|
Binary file
|
package/assets/ymsm.png
ADDED
|
Binary file
|
package/discord.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# 🦬 YAKMESH™ — Post-Quantum Mesh Networking
|
|
2
|
+
|
|
3
|
+
**The Yielding Atomic Kernel for quantum-resistant mesh orchestration**
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
npm install yakmesh
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## ⚡ What is YAKMESH?
|
|
12
|
+
|
|
13
|
+
A **post-quantum secure** mesh networking library featuring:
|
|
14
|
+
|
|
15
|
+
🔐 **ML-DSA-65 Signatures** — NIST FIPS 204 standard, quantum-resistant
|
|
16
|
+
⏱️ **Atomic Time Sync** — High-precision timing for mesh coordination
|
|
17
|
+
🛡️ **TME™ (Temporal Matrix Encoding)** — Novel packet resilience without retransmission
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 🆚 How is TME Different?
|
|
22
|
+
|
|
23
|
+
| Walrus/Red Stuff | YAKMESH TME |
|
|
24
|
+
|------------------|-------------|
|
|
25
|
+
| Encodes across **space** (nodes) | Encodes across **time** (slices) |
|
|
26
|
+
| For storage | For transmission |
|
|
27
|
+
| Retransmit on loss | **Zero latency** recovery |
|
|
28
|
+
|
|
29
|
+
> *"Time IS the redundancy dimension."*
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## 🛠️ Quick Start
|
|
34
|
+
|
|
35
|
+
```js
|
|
36
|
+
import { TemporalMeshEncoder } from 'yakmesh';
|
|
37
|
+
|
|
38
|
+
const encoder = new TemporalMeshEncoder();
|
|
39
|
+
const { slices } = encoder.encode('Hello mesh!');
|
|
40
|
+
// Slices sent across different paths
|
|
41
|
+
// Lost slices reconstructed from timing proofs
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## 🔒 Security Modules
|
|
47
|
+
|
|
48
|
+
- **NAVR** — Sybil attack prevention (computational identity puzzle)
|
|
49
|
+
- **Replay Defense** — Nonces + timestamps + sequence tracking
|
|
50
|
+
- **Rate Limiter** — DoS protection (30 conn/min per IP)
|
|
51
|
+
- **Message Validator** — Size limits, depth checks, prototype pollution protection
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## 📦 Current Version: `1.2.0`
|
|
56
|
+
|
|
57
|
+
✅ TME (Temporal Matrix Encoding)
|
|
58
|
+
✅ ML-DSA-65 Post-Quantum Signatures
|
|
59
|
+
✅ Full security hardening suite
|
|
60
|
+
✅ 42+ tests passing
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
**Links:**
|
|
65
|
+
🌐 Website: https://yakmesh.dev
|
|
66
|
+
📦 npm: https://npmjs.com/package/yakmesh
|
|
67
|
+
📖 GitHub: https://github.com/yakmesh/yakmesh
|
|
68
|
+
📄 Whitepaper: `docs/WHITEPAPER.md`
|
|
69
|
+
|
|
70
|
+
**USPTO Serial No. 99594620**
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
*Powered by TME™ — The world's first temporal-erasure protocol for atomically-synced mesh networks.*
|