File size: 10,408 Bytes
aaca7d4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37cdd42
aaca7d4
 
 
47fca0e
aaca7d4
 
 
 
 
 
 
 
 
 
 
37cdd42
 
 
aaca7d4
 
 
37cdd42
aaca7d4
 
37cdd42
aaca7d4
 
 
 
 
37cdd42
 
 
 
 
aaca7d4
 
 
37cdd42
 
 
 
 
aaca7d4
 
 
 
 
37cdd42
aaca7d4
 
 
 
 
37cdd42
 
 
 
 
aaca7d4
37cdd42
aaca7d4
 
 
37cdd42
 
 
 
aaca7d4
 
 
 
 
37cdd42
aaca7d4
37cdd42
 
 
 
 
 
aaca7d4
37cdd42
aaca7d4
37cdd42
aaca7d4
37cdd42
 
 
aaca7d4
37cdd42
aaca7d4
37cdd42
aaca7d4
37cdd42
 
 
aaca7d4
37cdd42
aaca7d4
37cdd42
 
 
 
 
 
aaca7d4
37cdd42
aaca7d4
37cdd42
 
 
 
 
aaca7d4
37cdd42
aaca7d4
37cdd42
aaca7d4
37cdd42
 
aaca7d4
37cdd42
aaca7d4
37cdd42
 
 
 
 
 
 
aaca7d4
37cdd42
 
 
 
 
 
 
 
aaca7d4
 
 
 
 
 
 
 
 
 
 
 
37cdd42
aaca7d4
 
 
37cdd42
aaca7d4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37cdd42
aaca7d4
 
 
 
 
37cdd42
aaca7d4
 
 
 
 
 
 
 
 
 
 
 
37cdd42
aaca7d4
 
 
 
 
 
 
 
37cdd42
aaca7d4
 
 
 
 
37cdd42
 
aaca7d4
 
37cdd42
aaca7d4
 
 
37cdd42
aaca7d4
 
 
 
 
089ae5f
 
47fca0e
 
 
 
 
 
 
 
 
 
aaca7d4
37cdd42
aaca7d4
37cdd42
aaca7d4
 
 
37cdd42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
aaca7d4
 
 
 
 
 
 
 
 
37cdd42
aaca7d4
 
37cdd42
aaca7d4
 
 
 
 
 
 
37cdd42
aaca7d4
 
 
37cdd42
aaca7d4
 
 
37cdd42
 
 
aaca7d4
 
 
37cdd42
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
---

license: mit
task_categories:
  - other
tags:
  - blockchain
  - proof-of-useful-work
  - np-complete
  - computational-complexity
  - consensus
  - cryptography
  - decentralized
  - peer-to-peer
size_categories:
  - 1K<n<10K
---


# πŸ”¬ COINjecture NP Solutions Dataset v3

### Institutional-Grade Blockchain Research Data

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Data Version](https://img.shields.io/badge/Data%20Version-v3.1-blue.svg)]()
[![Update Frequency](https://img.shields.io/badge/Updates-Real--time-green.svg)]()
[![Genesis](https://img.shields.io/badge/Genesis-Dec%201%202025-purple.svg)]()

**A comprehensive, real-time dataset of NP-complete problem solutions generated through Proof-of-Useful-Work (PoUW) blockchain consensus**

[Overview](#-overview) β€’ [Data Schema](#-data-schema) β€’ [Metrics](#-metrics-categories) β€’ [Pipeline](#-data-pipeline-architecture) β€’ [Usage](#-usage) β€’ [Citation](#-citation)

---

## πŸ“‹ Overview

This dataset contains **institutional-grade metrics** from the COINjecture Network B blockchain, which implements a novel **Proof-of-Useful-Work (PoUW)** consensus mechanism. Unlike traditional Proof-of-Work systems that compute arbitrary hashes, COINjecture miners solve genuine NP-complete computational problems, producing verifiable solutions with real-world applicability.

### Key Characteristics

| Property | Value |
|----------|-------|
| **Network** | COINjecture Network B v3 |
| **Genesis Date** | December 1, 2025 |
| **Genesis Hash** | `4a80254b4a48e867` |
| **Chain ID** | `coinject-network-b-v2` |
| **Data Version** | v3.1 (Institutional Grade) |
| **Problem Types** | SAT, SubsetSum, TSP |
| **Update Frequency** | Every ~10 seconds |
| **Metrics Per Record** | 54+ fields |
| **Format** | JSON Lines (.jsonl) |
| **Consensus** | Multi-peer (51% threshold) |

### What's New in v3

| Feature | Description |
|---------|-------------|
| 🌱 **Fresh Genesis** | Clean chain start - December 1, 2025 |
| 🀝 **Multi-Peer Consensus** | 51% agreement threshold for mining |
| πŸ”— **Connection Stability** | TCP keepalive, yamux optimization |
| πŸ”„ **Better Sync** | Nodes sync regardless of height differences |
| πŸ“‘ **P2P Improvements** | Stable gossipsub mesh with peer tracking |

### Research Applications

- **Computational Complexity**: Empirical NP-complete problem analysis
- **Algorithm Performance**: Solve/verify time distributions
- **Distributed Systems**: Consensus and propagation metrics
- **Energy Research**: Computational efficiency studies
- **Cryptographic Analysis**: Hash function and difficulty research

---

## πŸ“Š Data Schema

Each record represents a mined block containing a solved NP-complete problem.

### Core Fields

| Field | Type | Description |
|-------|------|-------------|
| `block_height` | uint64 | Block number in canonical chain |
| `block_hash` | string | SHA-256 block header hash (hex) |
| `prev_block_hash` | string | Parent block hash |
| `timestamp` | string | ISO 8601 block creation time |
| `problem_type` | string | SAT, SubsetSum, or TSP |

### Problem Fields

| Field | Type | Description |
|-------|------|-------------|
| `problem_instance` | object | Serialized problem definition |
| `solution` | object | Verified solution |
| `problem_size` | uint32 | Complexity metric |
| `is_satisfiable` | boolean | SAT: satisfying assignment exists |

---

## πŸ“ˆ Metrics Categories

### ⏱️ Timing (Microsecond Precision)

| Field | Unit | Description |
|-------|------|-------------|
| `solve_time_us` | ΞΌs | Solution computation time |
| `verify_time_us` | ΞΌs | Verification time |
| `block_time_seconds` | s | Total block production |
| `mining_attempts` | count | Hash attempts |

### πŸ’Ύ Memory

| Field | Unit | Description |
|-------|------|-------------|
| `solve_memory_bytes` | bytes | Peak solve memory |
| `verify_memory_bytes` | bytes | Peak verify memory |
| `peak_memory_bytes` | bytes | Maximum allocation |

### 🌐 Network

| Field | Unit | Description |
|-------|------|-------------|
| `peer_count` | count | Connected peers |
| `propagation_time_ms` | ms | Block propagation latency |
| `sync_lag_blocks` | blocks | Distance from tip |

### ⛏️ Mining

| Field | Description |
|-------|-------------|
| `difficulty_target` | Current difficulty (hex) |
| `nonce` | Winning nonce |
| `hash_rate_estimate` | Network hash rate (H/s) |
| `mined_locally` | This node mined block |

### πŸ”— Chain

| Field | Description |
|-------|-------------|
| `chain_work` | Cumulative PoW score |
| `transaction_count` | Transactions in block |
| `block_size_bytes` | Serialized size |

### πŸ’° Economics (Ξ· = 1/√2)

| Field | Unit | Description |
|-------|------|-------------|
| `block_reward` | tokens | Mining reward |
| `total_fees` | tokens | Transaction fees |

### πŸ–₯️ Hardware

| Field | Description |
|-------|-------------|
| `cpu_model` | Processor identifier |
| `cpu_cores` | Physical cores |
| `cpu_threads` | Logical threads |
| `ram_total_bytes` | System RAM |
| `os_info` | Operating system |

### 🏷️ Provenance

| Field | Description |
|-------|-------------|
| `node_version` | Software version |
| `node_id` | Node identifier (anonymized) |
| `data_version` | Schema version (v3.1) |
| `measurement_confidence` | Quality score (0.0-1.0) |

---

## πŸ”¬ Problem Types

### SAT (Boolean Satisfiability)
```json

{

  "problem_type": "SAT",

  "problem_instance": {

    "num_variables": 50,

    "num_clauses": 215,

    "clauses": [[1, -3, 5], [-2, 4]]

  },

  "solution": {

    "satisfiable": true,

    "assignment": [true, false, true]

  }

}

```

### SubsetSum
```json

{

  "problem_type": "SubsetSum",

  "problem_instance": {

    "set": [3, 7, 1, 8, -2, 4],

    "target": 12

  },

  "solution": {

    "subset_indices": [1, 3, 5]

  }

}

```

### TSP (Traveling Salesman)
```json

{

  "problem_type": "TSP",

  "problem_instance": {

    "num_cities": 20,

    "distances": [[0, 10, 15], [10, 0, 20]]

  },

  "solution": {

    "tour": [0, 3, 1, 4, 2, 0],

    "total_distance": 97

  }

}

```

---

## πŸ“– Usage

### Load with HuggingFace
```python

from datasets import load_dataset

dataset = load_dataset("COINjecture/NP_Solutions_v3")



for record in dataset["train"]:

    print(f"Block {record['block_height']}: {record['problem_type']}")

```

### Load Raw JSONL
```python

import json

from pathlib import Path



records = []

for f in Path("data").glob("*.jsonl"):

    records.extend(json.loads(line) for line in open(f))

```

### Analysis Example
```python

import pandas as pd

df = pd.DataFrame(dataset["train"])

stats = df.groupby("problem_type")["solve_time_us"].describe()

print(stats)

```

---

## πŸ”„ Data Pipeline Architecture

![COINjecture Data Pipeline](https://mermaid.ink/img/Zmxvd2NoYXJ0IFRCCiAgICBzdWJncmFwaCBDT05TRU5TVVNbIkNPTlNFTlNVUyBMQVlFUiJdCiAgICAgICAgR1siR2VuZXNpcyBCbG9jayJdCiAgICAgICAgRyAtLT4gU0FUWyJTQVQiXQogICAgICAgIEcgLS0-IFNVTVsiU3Vic2V0U3VtIl0KICAgICAgICBHIC0tPiBUU1BbIlRTUCJdCiAgICAgICAgU0FUICYgU1VNICYgVFNQIC0tPiBNQ1siTXVsdGktUGVlciBDb25zZW5zdXMiXQogICAgZW5kCgogICAgc3ViZ3JhcGggUDJQWyJQMlAgTkVUV09SSyJdCiAgICAgICAgRDFbIkRyb3BsZXQgMSJdCiAgICAgICAgRDJbIkRyb3BsZXQgMiJdCiAgICAgICAgR0NFWyJHQ0UgTm9kZSJdCiAgICAgICAgRDEgPC0tPiBEMgogICAgICAgIEQyIDwtLT4gR0NFCiAgICAgICAgR0NFIDwtLT4gRDEKICAgIGVuZAoKICAgIHN1YmdyYXBoIE1FVFJJQ1NbIk1FVFJJQ1MgRU5HSU5FIl0KICAgICAgICBUWyJUaW1pbmciXQogICAgICAgIE1bIk1lbW9yeSJdCiAgICAgICAgSFsiSGFyZHdhcmUiXQogICAgICAgIE5bIk5ldHdvcmsiXQogICAgICAgIEVbIkVjb25vbWljcyJdCiAgICAgICAgVCAmIE0gJiBIICYgTiAmIEUgLS0-IENPTExFQ1RbIjU0KyBNZXRyaWNzL0Jsb2NrIl0KICAgIGVuZAoKICAgIHN1YmdyYXBoIE9VVFBVVFsiREFUQSBPVVRQVVQiXQogICAgICAgIEJVRlsiQnVmZmVyIDEwIGJsb2NrcyJdCiAgICAgICAgSEZbIkh1Z2dpbmdGYWNlIE5QX1NvbHV0aW9uc192MyJdCiAgICAgICAgQVBJWyJEYXRhc2V0cyBBUEkiXQogICAgICAgIEJVRiAtLT4gSEYgLS0-IEFQSQogICAgZW5kCgogICAgTUMgLS0-IFAyUAogICAgUDJQIC0tPiBNRVRSSUNTCiAgICBNRVRSSUNTIC0tPiBPVVRQVVQKCiAgICBzdHlsZSBHIGZpbGw6IzkwRUU5MAogICAgc3R5bGUgTUMgZmlsbDojOThGQjk4CiAgICBzdHlsZSBIRiBmaWxsOiNGRkQ3MDAKCg==)

### Pipeline Summary

| Layer | Components | Function |
|-------|------------|----------|
| **⛓️ Consensus** | Genesis β†’ SAT/SubsetSum/TSP β†’ Multi-Peer Validation | Problem solving & block creation |
| **🌐 P2P Network** | Droplet 1 ↔ Droplet 2 ↔ GCE Node | Gossipsub mesh for block propagation |
| **πŸ“ˆ Metrics** | Timing, Memory, Hardware, Network, Economics | 54+ measurements per block |
| **🎯 Output** | 10-block buffer β†’ HuggingFace upload | ~10 second update frequency |

---

## πŸ“Š Data Quality

| Standard | Description |
|----------|-------------|
| **Cryptographic Integrity** | Block hashes verified |
| **Solution Validity** | All solutions independently verified |
| **Timing Accuracy** | Microsecond precision (monotonic clocks) |
| **Hardware Attribution** | Full system context |
| **Chain Continuity** | Complete chain reconstruction |
| **Consensus Verification** | Multi-peer agreement |

### Version History

| Version | Date | Changes |
|---------|------|---------|
| **v3.1** | Dec 2025 | Fresh genesis, multi-peer consensus |
| v3.0 | Nov 2025 | 54+ fields, hardware context |
| v2.0 | Oct 2025 | Timing metrics, energy estimates |
| v1.0 | Sep 2025 | Initial release |

---

## πŸ“œ Citation

```bibtex

@dataset{coinjecture_np_solutions_v3,

  title={COINjecture NP Solutions Dataset v3},

  author={{COINjecture Network Contributors}},

  year={2025},

  publisher={Hugging Face},

  url={https://huggingface.co/datasets/COINjecture/NP_Solutions_v3},

  note={Proof-of-Useful-Work blockchain research data}

}

```

---

## πŸ“„ License

**MIT License** - Free to use, modify, and distribute for any purpose.

---

## πŸ”— Resources

| Resource | Link |
|----------|------|
| Previous Dataset | [NP_Solutions_v2](https://huggingface.co/datasets/COINjecture/NP_Solutions_v2) |
| Source Code | [GitHub](https://github.com/beanapologist/COINjecture-NetB-Updates) |
| Whitepaper | [COINjecture.com](https://coinjecture.com) |

---

**Built with πŸ’Ž by COINjecture Network** β€’ *Ξ· = Ξ» = 1/√2*