File size: 4,668 Bytes
c97f78f |
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 |
---
license: mit
task_categories:
- other
tags:
- blockchain
- commitments
- np-complete
- proof-of-work
- coinjecture
dataset_info:
features:
- name: commitment_id
dtype: string
description: Unique identifier for the commitment
- name: block_height
dtype: int64
description: Blockchain height where commitment was created
- name: commitment_hash
dtype: string
description: Hash of the commitment (H(problem_params || salt || H(solution)))
- name: problem_type
dtype: string
description: Type of NP-complete problem (SAT, TSP, SubsetSum, etc.)
- name: problem_params
dtype: string
description: JSON-encoded problem parameters
- name: salt
dtype: string
description: Random salt used in commitment
- name: solution_hash
dtype: string
description: Hash of the solution (H(solution))
- name: reveal_height
dtype: int64
description: Block height where solution was revealed (null if not yet revealed)
- name: solution_data
dtype: string
description: JSON-encoded solution data (null until reveal)
- name: work_score
dtype: float64
description: Computed work score for the commitment
- name: timestamp
dtype: int64
description: Unix timestamp when commitment was created
- name: miner_address
dtype: string
description: Address of the miner who created the commitment
- name: status
dtype: string
description: Status (Committed, Revealed, Expired)
splits:
- name: train
num_bytes: 0
num_examples: 0
---
# COINjecture Commitments Dataset
This dataset contains cryptographic commitments from COINjecture Network B blockchain mining operations.
## Overview
Commitments are created during the mining process where miners commit to NP-complete problem solutions without revealing them immediately. This enables:
- **Fair mining**: Prevents front-running and solution stealing
- **Verifiable work**: Solutions can be verified after commitment
- **Research data**: Provides structured data for NP-complete problem research
## Dataset Structure
Based on the baseline dataset `COINjecture/v5`, this dataset focuses specifically on commitment records.
### Commitment Lifecycle
1. **Commitment Phase**: Miner creates commitment hash = H(problem_params || salt || H(solution))
2. **Reveal Phase**: Miner reveals solution after block is mined
3. **Verification**: Network verifies commitment matches revealed solution
### Schema
Each record contains:
- `commitment_id`: Unique identifier
- `commitment_hash`: Cryptographic hash of the commitment
- `problem_type`: Type of NP-complete problem
- `problem_params`: Problem parameters (JSON)
- `salt`: Random salt for commitment
- `solution_hash`: Hash of solution (H(solution))
- `solution_data`: Actual solution (revealed later, null initially)
- `work_score`: Computed work score
- `status`: Current status (Committed, Revealed, Expired)
## Usage
### Loading the Dataset
```python
from datasets import load_dataset
# Load commitments dataset
dataset = load_dataset("COINjecture/commitments")
# Filter by status
committed = dataset.filter(lambda x: x["status"] == "Committed")
revealed = dataset.filter(lambda x: x["status"] == "Revealed")
# Filter by problem type
sat_commitments = dataset.filter(lambda x: x["problem_type"] == "SAT")
```
### Analyzing Commitments
```python
# Count commitments by status
status_counts = dataset["train"].to_pandas()["status"].value_counts()
# Average work scores by problem type
avg_scores = dataset["train"].to_pandas().groupby("problem_type")["work_score"].mean()
```
## Data Collection
Data is collected in real-time from COINjecture Network B blockchain nodes:
- Commitments are recorded when blocks are mined
- Solutions are revealed in subsequent blocks
- All data is verified against blockchain state
## Baseline Dataset
This dataset is based on `COINjecture/v5` which contains:
- Full problem solutions
- Energy measurements
- Mining metrics
- Block metadata
The commitments dataset focuses specifically on the commitment/reveal mechanism.
## License
MIT License - See LICENSE file for details.
## Citation
```bibtex
@dataset{coinjecture_commitments,
title={COINjecture Commitments Dataset},
author={COINjecture Network},
year={2025},
url={https://huggingface.co/datasets/COINjecture/commitments}
}
```
## Contact
For issues or questions, please open an issue on the [COINjecture GitHub repository](https://github.com/Quigles1337/COINjecture1337-NETB).
---
**Generated automatically by COINjecture Network B blockchain nodes**
|