CoolFace
Datasetpublic

COINjecture/NP_Solutions_v2

๐Ÿ”ฌ COINjecture NP Solutions Dataset v2 Institutional-Grade Blockchain Research Data A comprehensive, real-time dataset of NP-complete problem solutions generated through Proof-of-Useful-Work (PoUW) blockchain consensus Overview โ€ข Data Schema โ€ข Metrics Categories โ€ข Usage โ€ข Citation ๐Ÿ“‹ Overview This dataset contains institutional-grade metrics from the COINjecture Network B blockchain, which implements a novel Proof-of-Useful-Work (PoUW)โ€ฆ See the full description on the dataset page: https://huggingface.co/datasets/COINjecture/NP_Solutions_v2.

sourceHugging Facemitupdated 10mo agoView on Hugging Face
0likes211downloads
Dataset Card

<div align="center">

๐Ÿ”ฌ COINjecture NP Solutions Dataset v2

Institutional-Grade Blockchain Research Data

![License: MIT](https://opensource.org/licenses/MIT) ![Data Version](#data-versioning) ![Update Frequency](#update-frequency)

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

Overview โ€ข Data Schema โ€ข Metrics Categories โ€ข Usage โ€ข Citation

</div>


๐Ÿ“‹ 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

PropertyValue
NetworkCOINjecture Network B (Fresh Genesis)
Genesis Hash4a80254b4a48e867b57399469b0a1fbaba8848e8ac738587b55ebf6e6b8c4b23
Data Versionv3.0 (Institutional Grade)
Problem TypesSAT, SubsetSum, TSP
Update FrequencyEvery ~10 blocks (~10 seconds)
Metrics Per Record54+ fields
FormatJSON Lines (.jsonl)

Research Applications

  • โ€”Computational Complexity: Empirical analysis of NP-complete problem hardness
  • โ€”Algorithm Performance: Solve/verify time distributions across problem types
  • โ€”Distributed Systems: Consensus metrics and network propagation analysis
  • โ€”Energy Research: Computational efficiency and resource utilization studies
  • โ€”Cryptographic Analysis: Hash function behavior and difficulty adjustment

๐Ÿ“Š Data Schema

Each record represents a block in the COINjecture blockchain containing a solved NP-complete problem instance.

Core Fields

FieldTypeDescription
block_heightuint64Sequential block number in the canonical chain
block_hashstringSHA-256 hash of the block header (hex-encoded)
prev_block_hashstringHash of the parent block (enables chain traversal)
timestampstringISO 8601 timestamp of block creation
problem_typestringNP-complete problem class: SAT, SubsetSum, or TSP

Problem Instance Fields

FieldTypeDescription
problem_instanceobjectSerialized problem definition (varies by type)
solutionobjectVerified solution to the problem instance
problem_sizeuint32Instance complexity metric (variables, nodes, etc.)
is_satisfiablebooleanFor SAT: whether a satisfying assignment exists

๐Ÿ“ˆ Metrics Categories

โฑ๏ธ Timing Metrics (Microsecond Precision)

High-resolution timing data for performance analysis:

FieldTypeUnitDescription
solve_time_usuint64ฮผsTime to find the solution
verify_time_usuint64ฮผsTime to verify solution correctness
block_time_secondsfloat64sTotal block production time
mining_attemptsuint64countHash attempts before valid block found

๐Ÿ’พ Memory Metrics

Resource utilization during computation:

FieldTypeUnitDescription
solve_memory_bytesuint64bytesPeak memory during solve phase
verify_memory_bytesuint64bytesPeak memory during verification
peak_memory_bytesuint64bytesMaximum memory allocation

๐ŸŒ Network Metrics

Distributed system behavior:

FieldTypeUnitDescription
peer_countuint32countConnected peers at block time
propagation_time_msuint64msBlock propagation latency
sync_lag_blocksint64blocksDistance from network tip

โ›๏ธ Mining Metrics

Consensus and difficulty data:

FieldTypeDescription
difficulty_targetstringCurrent difficulty target (hex)
nonceuint64Winning nonce value
hash_rate_estimatefloat64Estimated network hash rate (H/s)
mined_locallybooleanWhether this node mined the block

๐Ÿ”— Chain Metrics

Blockchain state information:

FieldTypeDescription
chain_workstringCumulative proof-of-work score
transaction_countuint32Transactions in block
block_size_bytesuint64Serialized block size

๐Ÿ’ฐ Economic Metrics

Token economics data:

FieldTypeUnitDescription
block_rewarduint64tokensMining reward for this block
total_feesuint64tokensTransaction fees collected

๐Ÿ–ฅ๏ธ Hardware Context

Node environment information for reproducibility:

FieldTypeDescription
cpu_modelstringProcessor model identifier
cpu_coresuint32Physical CPU cores
cpu_threadsuint32Logical CPU threads
ram_total_bytesuint64Total system RAM
os_infostringOperating system details

๐Ÿท๏ธ Provenance Metadata

Data lineage and quality indicators:

FieldTypeDescription
node_versionstringSoftware version that produced this record
node_idstringUnique node identifier (anonymized)
data_versionstringSchema version (currently v3.0)
measurement_confidencefloat64Data quality score (0.0-1.0)

๐Ÿ”ฌ Problem Types

SAT (Boolean Satisfiability)

The canonical NP-complete problem. Given a Boolean formula in CNF, find a satisfying assignment or prove none exists.

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

Given a set of integers and a target sum, find a subset that sums to the target.

json
{
  "problem_type": "SubsetSum",
  "problem_instance": {
    "set": [3, 7, 1, 8, -2, 4],
    "target": 12
  },
  "solution": {
    "subset_indices": [1, 3, 5]
  }
}

TSP (Traveling Salesman Problem)

Find the shortest Hamiltonian cycle through all vertices in a weighted graph.

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

Loading with Hugging Face Datasets

python
from datasets import load_dataset

# Load the complete dataset
dataset = load_dataset("COINjecture/NP_Solutions_v2")

# Access records
for record in dataset["train"]:
    print(f"Block {record['block_height']}: {record['problem_type']}")
    print(f"  Solve time: {record['solve_time_us']}ฮผs")
    print(f"  CPU: {record['cpu_model']}")

Loading Raw JSONL

python
import json
from pathlib import Path

records = []
for jsonl_file in Path("data").glob("*.jsonl"):
    with open(jsonl_file) as f:
        for line in f:
            records.append(json.loads(line))

print(f"Loaded {len(records)} records")

Filtering by Problem Type

python
sat_problems = dataset["train"].filter(
    lambda x: x["problem_type"] == "SAT"
)
print(f"SAT problems: {len(sat_problems)}")

Performance Analysis Example

python
import pandas as pd

# Convert to DataFrame for analysis
df = pd.DataFrame(dataset["train"])

# Analyze solve times by problem type
stats = df.groupby("problem_type")["solve_time_us"].agg(["mean", "std", "min", "max"])
print(stats)

# Hardware comparison
hardware_stats = df.groupby("cpu_model")["solve_time_us"].mean()
print(hardware_stats)

๐Ÿ“Š Data Quality

Verification Standards

All data in this dataset meets the following quality criteria:

StandardDescription
Cryptographic IntegrityEvery block hash is verified against the chain
Solution ValidityAll NP-complete solutions are independently verified
Timing AccuracyMicrosecond-precision timestamps from monotonic clocks
Hardware AttributionFull system context for reproducibility
Chain Continuityprev_block_hash enables complete chain reconstruction

Data Versioning

VersionReleaseChanges
v3.0Nov 2024Institutional-grade: 54+ fields, hardware context, chain linkage
v2.0Oct 2024Added timing metrics, energy estimates
v1.0Sep 2024Initial release: basic problem/solution data

๐Ÿ”„ Update Frequency

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.

Data Pipeline Architecture

<table> <tr> <td>

โ›“๏ธ CONSENSUS LAYER

     ๐ŸŒฑ Genesis (Block 0)
            โ”‚
    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
    โ–ผ       โ–ผ       โ–ผ
  ๐ŸงฎSAT   ๐Ÿ“ŠSum   ๐Ÿ—บ๏ธTSP
    โ”‚       โ”‚       โ”‚
    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
            โ”‚
            โ–ผ

</td> <td>

๐ŸŒ P2P NETWORK

  ๐Ÿ“ก Node 1 โ—„โ”€โ”€โ”€โ”€โ–บ ๐Ÿ“ก Node 2
     โ”‚                 โ”‚
     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
              โ–ผ
       ๐Ÿ’ฌ Gossipsub
              โ”‚
              โ–ผ

</td> </tr> <tr> <td>

๐Ÿ“ˆ METRICS ENGINE

  โฑ๏ธTiming  ๐Ÿ’พMemory  ๐Ÿ–ฅ๏ธHardware  ๐ŸŒNetwork
      โ”‚         โ”‚          โ”‚          โ”‚
      โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                     โ”‚
            54+ metrics/block
                     โ”‚
                     โ–ผ

</td> <td>

๐ŸŽฏ DATA OUTPUT

         ๐Ÿ“ฆ Buffer (10 blocks)
                โ”‚
         every ~10 seconds
                โ”‚
                โ–ผ
         ๐Ÿค— HuggingFace v2
                โ”‚
                โ–ผ
         ๐Ÿ”Œ Datasets API

</td> </tr> </table>

<div align="center">

๐Ÿ”ฌ RESEARCH APPLICATIONS

๐Ÿค– Machine Learning๐Ÿ“Š Performance Analysis๐Ÿ” Cryptography Research
Training dataSolve time analysisHash function studies
BenchmarkingHardware comparisonsDifficulty research

Data flows from NP-complete problem solving โ†’ metrics collection โ†’ real-time research availability

</div>


๐Ÿ“œ Citation

If you use this dataset in your research, please cite:

bibtex
@dataset{coinjecture_np_solutions_v2,
  title={COINjecture NP Solutions Dataset v2},
  author={{COINjecture Network Contributors}},
  year={2024},
  publisher={Hugging Face},
  url={https://huggingface.co/datasets/COINjecture/NP_Solutions_v2},
  note={Institutional-grade blockchain research data from Proof-of-Useful-Work consensus}
}

๐Ÿ“„ License

This dataset is released under the MIT License. You are free to use, modify, and distribute this data for any purpose, including commercial applications.


๐Ÿ”— Related Resources

ResourceLink
Legacy DatasetCOINjecture/NP_Solutions
Source CodeGitHub
Network ExplorerComing Soon
Technical WhitepaperComing Soon

๐Ÿค Contributing

We welcome contributions to improve data quality and documentation. Please open an issue or pull request on our GitHub repository.


<div align="center">

Built with ๐Ÿ’Ž by the COINjecture Network

Transforming computational waste into useful work

</div>