beanapologist commited on
Commit
37cdd42
ยท
verified ยท
1 Parent(s): aaca7d4

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +160 -244
README.md CHANGED
@@ -13,6 +13,7 @@ tags:
13
  - peer-to-peer
14
  size_categories:
15
  - 1K<n<10K
 
16
  ---
17
 
18
  # ๐Ÿ”ฌ COINjecture NP Solutions Dataset v3
@@ -22,10 +23,11 @@ size_categories:
22
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
23
  [![Data Version](https://img.shields.io/badge/Data%20Version-v3.1-blue.svg)]()
24
  [![Update Frequency](https://img.shields.io/badge/Updates-Real--time-green.svg)]()
 
25
 
26
  **A comprehensive, real-time dataset of NP-complete problem solutions generated through Proof-of-Useful-Work (PoUW) blockchain consensus**
27
 
28
- [Overview](#-overview) โ€ข [Data Schema](#-data-schema) โ€ข [Metrics Categories](#-metrics-categories) โ€ข [Usage](#-usage) โ€ข [Citation](#-citation)
29
 
30
  ---
31
 
@@ -37,174 +39,153 @@ This dataset contains **institutional-grade metrics** from the COINjecture Netwo
37
 
38
  | Property | Value |
39
  |----------|-------|
40
- | **Network** | COINjecture Network B v3 (Fresh Genesis - December 2024) |
41
- | **Genesis Hash** | `4a80254b4a48e867b57399469b0a1fbaba8848e8ac738587b55ebf6e6b8c4b23` |
 
42
  | **Chain ID** | `coinject-network-b-v2` |
43
  | **Data Version** | v3.1 (Institutional Grade) |
44
  | **Problem Types** | SAT, SubsetSum, TSP |
45
- | **Update Frequency** | Every ~10 blocks (~10 seconds) |
46
  | **Metrics Per Record** | 54+ fields |
47
  | **Format** | JSON Lines (.jsonl) |
48
- | **Consensus** | Multi-peer consensus with 51% agreement threshold |
49
 
50
  ### What's New in v3
51
 
52
  | Feature | Description |
53
  |---------|-------------|
54
- | **Fresh Genesis** | Clean chain start with new genesis block |
55
- | **Improved Consensus** | Multi-peer consensus with configurable thresholds |
56
- | **Connection Stability** | TCP keepalive, yamux optimization, 5-min idle timeout |
57
- | **Better Sync** | Nodes sync properly regardless of block height differences |
58
- | **P2P Improvements** | Stable gossipsub mesh with proper peer tracking |
59
 
60
  ### Research Applications
61
 
62
- - **Computational Complexity**: Empirical analysis of NP-complete problem hardness
63
- - **Algorithm Performance**: Solve/verify time distributions across problem types
64
- - **Distributed Systems**: Consensus metrics and network propagation analysis
65
- - **Energy Research**: Computational efficiency and resource utilization studies
66
- - **Cryptographic Analysis**: Hash function behavior and difficulty adjustment
67
 
68
  ---
69
 
70
  ## ๐Ÿ“Š Data Schema
71
 
72
- Each record represents a block in the COINjecture blockchain containing a solved NP-complete problem instance.
73
 
74
  ### Core Fields
75
 
76
  | Field | Type | Description |
77
  |-------|------|-------------|
78
- | block_height | uint64 | Sequential block number in the canonical chain |
79
- | block_hash | string | SHA-256 hash of the block header (hex-encoded) |
80
- | prev_block_hash | string | Hash of the parent block (enables chain traversal) |
81
- | timestamp | string | ISO 8601 timestamp of block creation |
82
- | problem_type | string | NP-complete problem class: SAT, SubsetSum, or TSP |
83
 
84
- ### Problem Instance Fields
85
 
86
  | Field | Type | Description |
87
  |-------|------|-------------|
88
- | problem_instance | object | Serialized problem definition (varies by type) |
89
- | solution | object | Verified solution to the problem instance |
90
- | problem_size | uint32 | Instance complexity metric (variables, nodes, etc.) |
91
- | is_satisfiable | boolean | For SAT: whether a satisfying assignment exists |
92
 
93
  ---
94
 
95
  ## ๐Ÿ“ˆ Metrics Categories
96
 
97
- ### โฑ๏ธ Timing Metrics (Microsecond Precision)
98
 
99
- High-resolution timing data for performance analysis:
100
-
101
- | Field | Type | Unit | Description |
102
- |-------|------|------|-------------|
103
- | solve_time_us | uint64 | ฮผs | Time to find the solution |
104
- | verify_time_us | uint64 | ฮผs | Time to verify solution correctness |
105
- | block_time_seconds | float64 | s | Total block production time |
106
- | mining_attempts | uint64 | count | Hash attempts before valid block found |
107
-
108
- ### ๐Ÿ’พ Memory Metrics
109
-
110
- Resource utilization during computation:
111
-
112
- | Field | Type | Unit | Description |
113
- |-------|------|------|-------------|
114
- | solve_memory_bytes | uint64 | bytes | Peak memory during solve phase |
115
- | verify_memory_bytes | uint64 | bytes | Peak memory during verification |
116
- | peak_memory_bytes | uint64 | bytes | Maximum memory allocation |
117
-
118
- ### ๐ŸŒ Network Metrics
119
-
120
- Distributed system behavior:
121
-
122
- | Field | Type | Unit | Description |
123
- |-------|------|------|-------------|
124
- | peer_count | uint32 | count | Connected peers at block time |
125
- | propagation_time_ms | uint64 | ms | Block propagation latency |
126
- | sync_lag_blocks | int64 | blocks | Distance from network tip |
127
-
128
- ### โ›๏ธ Mining Metrics
129
 
130
- Consensus and difficulty data:
131
 
132
- | Field | Type | Description |
133
  |-------|------|-------------|
134
- | difficulty_target | string | Current difficulty target (hex) |
135
- | nonce | uint64 | Winning nonce value |
136
- | hash_rate_estimate | float64 | Estimated network hash rate (H/s) |
137
- | mined_locally | boolean | Whether this node mined the block |
138
-
139
- ### ๐Ÿ”— Chain Metrics
140
 
141
- Blockchain state information:
142
 
143
- | Field | Type | Description |
144
  |-------|------|-------------|
145
- | chain_work | string | Cumulative proof-of-work score |
146
- | transaction_count | uint32 | Transactions in block |
147
- | block_size_bytes | uint64 | Serialized block size |
148
 
149
- ### ๐Ÿ’ฐ Economic Metrics
150
 
151
- Token economics data (ฮท = ฮป = 1/โˆš2 tokenomics):
 
 
 
 
 
152
 
153
- | Field | Type | Unit | Description |
154
- |-------|------|------|-------------|
155
- | block_reward | uint64 | tokens | Mining reward for this block |
156
- | total_fees | uint64 | tokens | Transaction fees collected |
157
 
158
- ### ๐Ÿ–ฅ๏ธ Hardware Context
 
 
 
 
159
 
160
- Node environment information for reproducibility:
161
 
162
- | Field | Type | Description |
163
  |-------|------|-------------|
164
- | cpu_model | string | Processor model identifier |
165
- | cpu_cores | uint32 | Physical CPU cores |
166
- | cpu_threads | uint32 | Logical CPU threads |
167
- | ram_total_bytes | uint64 | Total system RAM |
168
- | os_info | string | Operating system details |
169
 
170
- ### ๐Ÿท๏ธ Provenance Metadata
171
 
172
- Data lineage and quality indicators:
 
 
 
 
 
 
173
 
174
- | Field | Type | Description |
175
- |-------|------|-------------|
176
- | node_version | string | Software version that produced this record |
177
- | node_id | string | Unique node identifier (anonymized) |
178
- | data_version | string | Schema version (currently v3.1) |
179
- | measurement_confidence | float64 | Data quality score (0.0-1.0) |
 
 
180
 
181
  ---
182
 
183
  ## ๐Ÿ”ฌ Problem Types
184
 
185
  ### SAT (Boolean Satisfiability)
186
-
187
- The canonical NP-complete problem. Given a Boolean formula in CNF, find a satisfying assignment or prove none exists.
188
-
189
  ```json
190
  {
191
  "problem_type": "SAT",
192
  "problem_instance": {
193
  "num_variables": 50,
194
  "num_clauses": 215,
195
- "clauses": [[1, -3, 5], [-2, 4], ...]
196
  },
197
  "solution": {
198
  "satisfiable": true,
199
- "assignment": [true, false, true, ...]
200
  }
201
  }
202
  ```
203
 
204
  ### SubsetSum
205
-
206
- Given a set of integers and a target sum, find a subset that sums to the target.
207
-
208
  ```json
209
  {
210
  "problem_type": "SubsetSum",
@@ -218,16 +199,13 @@ Given a set of integers and a target sum, find a subset that sums to the target.
218
  }
219
  ```
220
 
221
- ### TSP (Traveling Salesman Problem)
222
-
223
- Find the shortest Hamiltonian cycle through all vertices in a weighted graph.
224
-
225
  ```json
226
  {
227
  "problem_type": "TSP",
228
  "problem_instance": {
229
  "num_cities": 20,
230
- "distances": [[0, 10, 15], [10, 0, 20], ...]
231
  },
232
  "solution": {
233
  "tour": [0, 3, 1, 4, 2, 0],
@@ -240,165 +218,116 @@ Find the shortest Hamiltonian cycle through all vertices in a weighted graph.
240
 
241
  ## ๐Ÿ“– Usage
242
 
243
- ### Loading with Hugging Face Datasets
244
-
245
  ```python
246
  from datasets import load_dataset
247
-
248
- # Load the complete dataset
249
  dataset = load_dataset("COINjecture/NP_Solutions_v3")
250
 
251
- # Access records
252
  for record in dataset["train"]:
253
  print(f"Block {record['block_height']}: {record['problem_type']}")
254
- print(f" Solve time: {record['solve_time_us']}ฮผs")
255
- print(f" CPU: {record['cpu_model']}")
256
  ```
257
 
258
- ### Loading Raw JSONL
259
-
260
  ```python
261
  import json
262
  from pathlib import Path
263
 
264
  records = []
265
- for jsonl_file in Path("data").glob("*.jsonl"):
266
- with open(jsonl_file) as f:
267
- for line in f:
268
- records.append(json.loads(line))
269
-
270
- print(f"Loaded {len(records)} records")
271
- ```
272
-
273
- ### Filtering by Problem Type
274
-
275
- ```python
276
- sat_problems = dataset["train"].filter(
277
- lambda x: x["problem_type"] == "SAT"
278
- )
279
- print(f"SAT problems: {len(sat_problems)}")
280
  ```
281
 
282
- ### Performance Analysis Example
283
-
284
  ```python
285
  import pandas as pd
286
-
287
- # Convert to DataFrame for analysis
288
  df = pd.DataFrame(dataset["train"])
289
-
290
- # Analyze solve times by problem type
291
- stats = df.groupby("problem_type")["solve_time_us"].agg(["mean", "std", "min", "max"])
292
  print(stats)
293
-
294
- # Hardware comparison
295
- hardware_stats = df.groupby("cpu_model")["solve_time_us"].mean()
296
- print(hardware_stats)
297
  ```
298
 
299
  ---
300
 
301
- ## ๐Ÿ“Š Data Quality
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
302
 
303
- ### Verification Standards
304
 
305
- All data in this dataset meets the following quality criteria:
306
 
307
  | Standard | Description |
308
  |----------|-------------|
309
- | **Cryptographic Integrity** | Every block hash is verified against the chain |
310
- | **Solution Validity** | All NP-complete solutions are independently verified |
311
- | **Timing Accuracy** | Microsecond-precision timestamps from monotonic clocks |
312
- | **Hardware Attribution** | Full system context for reproducibility |
313
- | **Chain Continuity** | prev_block_hash enables complete chain reconstruction |
314
- | **Consensus Verification** | Multi-peer agreement before block acceptance |
315
-
316
- ### Data Versioning
317
-
318
- | Version | Release | Changes |
319
- |---------|---------|---------|
320
- | **v3.1** | Dec 2024 | Fresh genesis, improved P2P, multi-peer consensus |
321
- | v3.0 | Nov 2024 | Institutional-grade: 54+ fields, hardware context |
322
- | v2.0 | Oct 2024 | Added timing metrics, energy estimates |
323
- | v1.0 | Sep 2024 | Initial release: basic problem/solution data |
324
-
325
- ---
326
-
327
- ## ๐Ÿ”„ Update Frequency
328
-
329
- This dataset receives **real-time updates** approximately every 10 blocks (~10 seconds of blockchain time). New JSONL files are appended as blocks are mined on the COINjecture Network B.
330
-
331
- ### Data Pipeline Architecture
332
-
333
- ```
334
- โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
335
- โ”‚ โ›“๏ธ CONSENSUS LAYER โ”‚
336
- โ”‚ โ”‚
337
- โ”‚ ๐ŸŒฑ Genesis (Block 0) โ”€โ”€โ”€ Hash: 4a80254b4a48e867... โ”‚
338
- โ”‚ โ”‚ โ”‚
339
- โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ” โ”‚
340
- โ”‚ โ–ผ โ–ผ โ–ผ โ”‚
341
- โ”‚ ๐ŸงฎSAT ๐Ÿ“ŠSum ๐Ÿ—บ๏ธTSP โ”‚
342
- โ”‚ โ”‚ โ”‚ โ”‚ โ”‚
343
- โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
344
- โ”‚ โ”‚ โ”‚
345
- โ”‚ โ–ผ โ”‚
346
- โ”‚ Multi-Peer Consensus (51% threshold) โ”‚
347
- โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
348
- โ”‚
349
- โ–ผ
350
- โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
351
- โ”‚ ๐ŸŒ P2P NETWORK โ”‚
352
- โ”‚ โ”‚
353
- โ”‚ ๐Ÿ“ก Droplet 1 โ—„โ”€โ”€โ”€โ”€โ–บ ๐Ÿ“ก Droplet 2 โ—„โ”€โ”€โ”€โ”€โ–บ ๐Ÿ“ก GCE Node โ”‚
354
- โ”‚ โ”‚ โ”‚ โ”‚ โ”‚
355
- โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
356
- โ”‚ โ”‚ โ”‚
357
- โ”‚ ๐Ÿ’ฌ Gossipsub Mesh โ”‚
358
- โ”‚ (Status + Blocks + Txns) โ”‚
359
- โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
360
- โ”‚
361
- โ–ผ
362
- โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
363
- โ”‚ ๐Ÿ“ˆ METRICS ENGINE โ”‚
364
- โ”‚ โ”‚
365
- โ”‚ โฑ๏ธTiming ๐Ÿ’พMemory ๐Ÿ–ฅ๏ธHardware ๐ŸŒNetwork ๐Ÿ’ฐEconomics โ”‚
366
- โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚
367
- โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚
368
- โ”‚ โ”‚ โ”‚
369
- โ”‚ 54+ metrics/block โ”‚
370
- โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
371
- โ”‚
372
- โ–ผ
373
- โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
374
- โ”‚ ๐ŸŽฏ DATA OUTPUT โ”‚
375
- โ”‚ โ”‚
376
- โ”‚ ๐Ÿ“ฆ Buffer (10 blocks) โ”‚
377
- โ”‚ โ”‚ โ”‚
378
- โ”‚ every ~10 seconds โ”‚
379
- โ”‚ โ”‚ โ”‚
380
- โ”‚ โ–ผ โ”‚
381
- โ”‚ ๐Ÿค— HuggingFace NP_Solutions_v3 โ”‚
382
- โ”‚ โ”‚ โ”‚
383
- โ”‚ โ–ผ โ”‚
384
- โ”‚ ๐Ÿ”Œ Datasets API โ”‚
385
- โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€๏ฟฝ๏ฟฝโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
386
- ```
387
 
388
  ---
389
 
390
  ## ๐Ÿ“œ Citation
391
 
392
- If you use this dataset in your research, please cite:
393
-
394
  ```bibtex
395
  @dataset{coinjecture_np_solutions_v3,
396
  title={COINjecture NP Solutions Dataset v3},
397
  author={{COINjecture Network Contributors}},
398
- year={2024},
399
  publisher={Hugging Face},
400
  url={https://huggingface.co/datasets/COINjecture/NP_Solutions_v3},
401
- note={Institutional-grade blockchain research data from Proof-of-Useful-Work consensus}
402
  }
403
  ```
404
 
@@ -406,31 +335,18 @@ If you use this dataset in your research, please cite:
406
 
407
  ## ๐Ÿ“„ License
408
 
409
- This dataset is released under the **MIT License**. You are free to use, modify, and distribute this data for any purpose, including commercial applications.
410
 
411
  ---
412
 
413
- ## ๐Ÿ”— Related Resources
414
 
415
  | Resource | Link |
416
  |----------|------|
417
- | **Previous Dataset (v2)** | [COINjecture/NP_Solutions_v2](https://huggingface.co/datasets/COINjecture/NP_Solutions_v2) |
418
- | **Legacy Dataset** | [COINjecture/NP_Solutions](https://huggingface.co/datasets/COINjecture/NP_Solutions) |
419
- | **Source Code** | [GitHub](https://github.com/beanapologist/COINjecture-NetB-Updates) |
420
- | **Whitepaper** | [COINjecture.com](https://coinjecture.com) |
421
- | **Network Explorer** | Coming Soon |
422
 
423
  ---
424
 
425
- ## ๐Ÿค Contributing
426
-
427
- We welcome contributions to improve data quality and documentation. Please open an issue or pull request on our GitHub repository.
428
-
429
- ---
430
-
431
- **Built with ๐Ÿ’Ž by the COINjecture Network**
432
-
433
- *Transforming computational waste into useful work*
434
-
435
- *ฮท = ฮป = 1/โˆš2*
436
-
 
13
  - peer-to-peer
14
  size_categories:
15
  - 1K<n<10K
16
+ viewer: false
17
  ---
18
 
19
  # ๐Ÿ”ฌ COINjecture NP Solutions Dataset v3
 
23
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
24
  [![Data Version](https://img.shields.io/badge/Data%20Version-v3.1-blue.svg)]()
25
  [![Update Frequency](https://img.shields.io/badge/Updates-Real--time-green.svg)]()
26
+ [![Genesis](https://img.shields.io/badge/Genesis-Dec%201%202025-purple.svg)]()
27
 
28
  **A comprehensive, real-time dataset of NP-complete problem solutions generated through Proof-of-Useful-Work (PoUW) blockchain consensus**
29
 
30
+ [Overview](#-overview) โ€ข [Data Schema](#-data-schema) โ€ข [Metrics](#-metrics-categories) โ€ข [Usage](#-usage) โ€ข [Citation](#-citation)
31
 
32
  ---
33
 
 
39
 
40
  | Property | Value |
41
  |----------|-------|
42
+ | **Network** | COINjecture Network B v3 |
43
+ | **Genesis Date** | December 1, 2025 |
44
+ | **Genesis Hash** | `4a80254b4a48e867` |
45
  | **Chain ID** | `coinject-network-b-v2` |
46
  | **Data Version** | v3.1 (Institutional Grade) |
47
  | **Problem Types** | SAT, SubsetSum, TSP |
48
+ | **Update Frequency** | Every ~10 seconds |
49
  | **Metrics Per Record** | 54+ fields |
50
  | **Format** | JSON Lines (.jsonl) |
51
+ | **Consensus** | Multi-peer (51% threshold) |
52
 
53
  ### What's New in v3
54
 
55
  | Feature | Description |
56
  |---------|-------------|
57
+ | ๐ŸŒฑ **Fresh Genesis** | Clean chain start - December 1, 2025 |
58
+ | ๐Ÿค **Multi-Peer Consensus** | 51% agreement threshold for mining |
59
+ | ๐Ÿ”— **Connection Stability** | TCP keepalive, yamux optimization |
60
+ | ๐Ÿ”„ **Better Sync** | Nodes sync regardless of height differences |
61
+ | ๐Ÿ“ก **P2P Improvements** | Stable gossipsub mesh with peer tracking |
62
 
63
  ### Research Applications
64
 
65
+ - **Computational Complexity**: Empirical NP-complete problem analysis
66
+ - **Algorithm Performance**: Solve/verify time distributions
67
+ - **Distributed Systems**: Consensus and propagation metrics
68
+ - **Energy Research**: Computational efficiency studies
69
+ - **Cryptographic Analysis**: Hash function and difficulty research
70
 
71
  ---
72
 
73
  ## ๐Ÿ“Š Data Schema
74
 
75
+ Each record represents a mined block containing a solved NP-complete problem.
76
 
77
  ### Core Fields
78
 
79
  | Field | Type | Description |
80
  |-------|------|-------------|
81
+ | `block_height` | uint64 | Block number in canonical chain |
82
+ | `block_hash` | string | SHA-256 block header hash (hex) |
83
+ | `prev_block_hash` | string | Parent block hash |
84
+ | `timestamp` | string | ISO 8601 block creation time |
85
+ | `problem_type` | string | SAT, SubsetSum, or TSP |
86
 
87
+ ### Problem Fields
88
 
89
  | Field | Type | Description |
90
  |-------|------|-------------|
91
+ | `problem_instance` | object | Serialized problem definition |
92
+ | `solution` | object | Verified solution |
93
+ | `problem_size` | uint32 | Complexity metric |
94
+ | `is_satisfiable` | boolean | SAT: satisfying assignment exists |
95
 
96
  ---
97
 
98
  ## ๐Ÿ“ˆ Metrics Categories
99
 
100
+ ### โฑ๏ธ Timing (Microsecond Precision)
101
 
102
+ | Field | Unit | Description |
103
+ |-------|------|-------------|
104
+ | `solve_time_us` | ฮผs | Solution computation time |
105
+ | `verify_time_us` | ฮผs | Verification time |
106
+ | `block_time_seconds` | s | Total block production |
107
+ | `mining_attempts` | count | Hash attempts |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
 
109
+ ### ๐Ÿ’พ Memory
110
 
111
+ | Field | Unit | Description |
112
  |-------|------|-------------|
113
+ | `solve_memory_bytes` | bytes | Peak solve memory |
114
+ | `verify_memory_bytes` | bytes | Peak verify memory |
115
+ | `peak_memory_bytes` | bytes | Maximum allocation |
 
 
 
116
 
117
+ ### ๐ŸŒ Network
118
 
119
+ | Field | Unit | Description |
120
  |-------|------|-------------|
121
+ | `peer_count` | count | Connected peers |
122
+ | `propagation_time_ms` | ms | Block propagation latency |
123
+ | `sync_lag_blocks` | blocks | Distance from tip |
124
 
125
+ ### โ›๏ธ Mining
126
 
127
+ | Field | Description |
128
+ |-------|-------------|
129
+ | `difficulty_target` | Current difficulty (hex) |
130
+ | `nonce` | Winning nonce |
131
+ | `hash_rate_estimate` | Network hash rate (H/s) |
132
+ | `mined_locally` | This node mined block |
133
 
134
+ ### ๐Ÿ”— Chain
 
 
 
135
 
136
+ | Field | Description |
137
+ |-------|-------------|
138
+ | `chain_work` | Cumulative PoW score |
139
+ | `transaction_count` | Transactions in block |
140
+ | `block_size_bytes` | Serialized size |
141
 
142
+ ### ๐Ÿ’ฐ Economics (ฮท = 1/โˆš2)
143
 
144
+ | Field | Unit | Description |
145
  |-------|------|-------------|
146
+ | `block_reward` | tokens | Mining reward |
147
+ | `total_fees` | tokens | Transaction fees |
 
 
 
148
 
149
+ ### ๐Ÿ–ฅ๏ธ Hardware
150
 
151
+ | Field | Description |
152
+ |-------|-------------|
153
+ | `cpu_model` | Processor identifier |
154
+ | `cpu_cores` | Physical cores |
155
+ | `cpu_threads` | Logical threads |
156
+ | `ram_total_bytes` | System RAM |
157
+ | `os_info` | Operating system |
158
 
159
+ ### ๐Ÿท๏ธ Provenance
160
+
161
+ | Field | Description |
162
+ |-------|-------------|
163
+ | `node_version` | Software version |
164
+ | `node_id` | Node identifier (anonymized) |
165
+ | `data_version` | Schema version (v3.1) |
166
+ | `measurement_confidence` | Quality score (0.0-1.0) |
167
 
168
  ---
169
 
170
  ## ๐Ÿ”ฌ Problem Types
171
 
172
  ### SAT (Boolean Satisfiability)
 
 
 
173
  ```json
174
  {
175
  "problem_type": "SAT",
176
  "problem_instance": {
177
  "num_variables": 50,
178
  "num_clauses": 215,
179
+ "clauses": [[1, -3, 5], [-2, 4]]
180
  },
181
  "solution": {
182
  "satisfiable": true,
183
+ "assignment": [true, false, true]
184
  }
185
  }
186
  ```
187
 
188
  ### SubsetSum
 
 
 
189
  ```json
190
  {
191
  "problem_type": "SubsetSum",
 
199
  }
200
  ```
201
 
202
+ ### TSP (Traveling Salesman)
 
 
 
203
  ```json
204
  {
205
  "problem_type": "TSP",
206
  "problem_instance": {
207
  "num_cities": 20,
208
+ "distances": [[0, 10, 15], [10, 0, 20]]
209
  },
210
  "solution": {
211
  "tour": [0, 3, 1, 4, 2, 0],
 
218
 
219
  ## ๐Ÿ“– Usage
220
 
221
+ ### Load with HuggingFace
 
222
  ```python
223
  from datasets import load_dataset
 
 
224
  dataset = load_dataset("COINjecture/NP_Solutions_v3")
225
 
 
226
  for record in dataset["train"]:
227
  print(f"Block {record['block_height']}: {record['problem_type']}")
 
 
228
  ```
229
 
230
+ ### Load Raw JSONL
 
231
  ```python
232
  import json
233
  from pathlib import Path
234
 
235
  records = []
236
+ for f in Path("data").glob("*.jsonl"):
237
+ records.extend(json.loads(line) for line in open(f))
 
 
 
 
 
 
 
 
 
 
 
 
 
238
  ```
239
 
240
+ ### Analysis Example
 
241
  ```python
242
  import pandas as pd
 
 
243
  df = pd.DataFrame(dataset["train"])
244
+ stats = df.groupby("problem_type")["solve_time_us"].describe()
 
 
245
  print(stats)
 
 
 
 
246
  ```
247
 
248
  ---
249
 
250
+ ## ๐Ÿ”„ Data Pipeline
251
+
252
+ ```mermaid
253
+ flowchart TB
254
+ subgraph CONSENSUS["โ›“๏ธ CONSENSUS LAYER"]
255
+ G[๐ŸŒฑ Genesis Block]
256
+ G --> SAT[๐Ÿงฎ SAT]
257
+ G --> SUM[๐Ÿ“Š SubsetSum]
258
+ G --> TSP[๐Ÿ—บ๏ธ TSP]
259
+ SAT & SUM & TSP --> MC[Multi-Peer Consensus<br/>51% Threshold]
260
+ end
261
+
262
+ subgraph P2P["๐ŸŒ P2P NETWORK"]
263
+ D1[๐Ÿ“ก Droplet 1]
264
+ D2[๐Ÿ“ก Droplet 2]
265
+ GCE[๐Ÿ“ก GCE Node]
266
+ D1 <--> D2
267
+ D2 <--> GCE
268
+ GCE <--> D1
269
+ GOSSIP[๐Ÿ’ฌ Gossipsub Mesh]
270
+ end
271
+
272
+ subgraph METRICS["๐Ÿ“ˆ METRICS ENGINE"]
273
+ T[โฑ๏ธ Timing]
274
+ M[๐Ÿ’พ Memory]
275
+ H[๐Ÿ–ฅ๏ธ Hardware]
276
+ N[๐ŸŒ Network]
277
+ E[๐Ÿ’ฐ Economics]
278
+ T & M & H & N & E --> COLLECT[54+ Metrics/Block]
279
+ end
280
+
281
+ subgraph OUTPUT["๐ŸŽฏ DATA OUTPUT"]
282
+ BUF[๐Ÿ“ฆ Buffer<br/>10 blocks]
283
+ HF[๐Ÿค— HuggingFace<br/>NP_Solutions_v3]
284
+ API[๐Ÿ”Œ Datasets API]
285
+ BUF -->|~10 sec| HF --> API
286
+ end
287
+
288
+ MC --> P2P
289
+ P2P --> METRICS
290
+ METRICS --> OUTPUT
291
+
292
+ style G fill:#90EE90
293
+ style MC fill:#FFB6C1
294
+ style HF fill:#FFD700
295
+ ```
296
 
297
+ ---
298
 
299
+ ## ๐Ÿ“Š Data Quality
300
 
301
  | Standard | Description |
302
  |----------|-------------|
303
+ | **Cryptographic Integrity** | Block hashes verified |
304
+ | **Solution Validity** | All solutions independently verified |
305
+ | **Timing Accuracy** | Microsecond precision (monotonic clocks) |
306
+ | **Hardware Attribution** | Full system context |
307
+ | **Chain Continuity** | Complete chain reconstruction |
308
+ | **Consensus Verification** | Multi-peer agreement |
309
+
310
+ ### Version History
311
+
312
+ | Version | Date | Changes |
313
+ |---------|------|---------|
314
+ | **v3.1** | Dec 2025 | Fresh genesis, multi-peer consensus |
315
+ | v3.0 | Nov 2025 | 54+ fields, hardware context |
316
+ | v2.0 | Oct 2025 | Timing metrics, energy estimates |
317
+ | v1.0 | Sep 2025 | Initial release |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
318
 
319
  ---
320
 
321
  ## ๐Ÿ“œ Citation
322
 
 
 
323
  ```bibtex
324
  @dataset{coinjecture_np_solutions_v3,
325
  title={COINjecture NP Solutions Dataset v3},
326
  author={{COINjecture Network Contributors}},
327
+ year={2025},
328
  publisher={Hugging Face},
329
  url={https://huggingface.co/datasets/COINjecture/NP_Solutions_v3},
330
+ note={Proof-of-Useful-Work blockchain research data}
331
  }
332
  ```
333
 
 
335
 
336
  ## ๐Ÿ“„ License
337
 
338
+ **MIT License** - Free to use, modify, and distribute for any purpose.
339
 
340
  ---
341
 
342
+ ## ๐Ÿ”— Resources
343
 
344
  | Resource | Link |
345
  |----------|------|
346
+ | Previous Dataset | [NP_Solutions_v2](https://huggingface.co/datasets/COINjecture/NP_Solutions_v2) |
347
+ | Source Code | [GitHub](https://github.com/beanapologist/COINjecture-NetB-Updates) |
348
+ | Whitepaper | [COINjecture.com](https://coinjecture.com) |
 
 
349
 
350
  ---
351
 
352
+ **Built with ๐Ÿ’Ž by COINjecture Network** โ€ข *ฮท = ฮป = 1/โˆš2*