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: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- other
|
| 5 |
+
tags:
|
| 6 |
+
- blockchain
|
| 7 |
+
- commitments
|
| 8 |
+
- np-complete
|
| 9 |
+
- proof-of-work
|
| 10 |
+
- coinjecture
|
| 11 |
+
dataset_info:
|
| 12 |
+
features:
|
| 13 |
+
- name: commitment_id
|
| 14 |
+
dtype: string
|
| 15 |
+
description: Unique identifier for the commitment
|
| 16 |
+
- name: block_height
|
| 17 |
+
dtype: int64
|
| 18 |
+
description: Blockchain height where commitment was created
|
| 19 |
+
- name: commitment_hash
|
| 20 |
+
dtype: string
|
| 21 |
+
description: Hash of the commitment (H(problem_params || salt || H(solution)))
|
| 22 |
+
- name: problem_type
|
| 23 |
+
dtype: string
|
| 24 |
+
description: Type of NP-complete problem (SAT, TSP, SubsetSum, etc.)
|
| 25 |
+
- name: problem_params
|
| 26 |
+
dtype: string
|
| 27 |
+
description: JSON-encoded problem parameters
|
| 28 |
+
- name: salt
|
| 29 |
+
dtype: string
|
| 30 |
+
description: Random salt used in commitment
|
| 31 |
+
- name: solution_hash
|
| 32 |
+
dtype: string
|
| 33 |
+
description: Hash of the solution (H(solution))
|
| 34 |
+
- name: reveal_height
|
| 35 |
+
dtype: int64
|
| 36 |
+
description: Block height where solution was revealed (null if not yet revealed)
|
| 37 |
+
- name: solution_data
|
| 38 |
+
dtype: string
|
| 39 |
+
description: JSON-encoded solution data (null until reveal)
|
| 40 |
+
- name: work_score
|
| 41 |
+
dtype: float64
|
| 42 |
+
description: Computed work score for the commitment
|
| 43 |
+
- name: timestamp
|
| 44 |
+
dtype: int64
|
| 45 |
+
description: Unix timestamp when commitment was created
|
| 46 |
+
- name: miner_address
|
| 47 |
+
dtype: string
|
| 48 |
+
description: Address of the miner who created the commitment
|
| 49 |
+
- name: status
|
| 50 |
+
dtype: string
|
| 51 |
+
description: Status (Committed, Revealed, Expired)
|
| 52 |
+
splits:
|
| 53 |
+
- name: train
|
| 54 |
+
num_bytes: 0
|
| 55 |
+
num_examples: 0
|
| 56 |
+
---
|
| 57 |
+
|
| 58 |
+
# COINjecture Commitments Dataset
|
| 59 |
+
|
| 60 |
+
This dataset contains cryptographic commitments from COINjecture Network B blockchain mining operations.
|
| 61 |
+
|
| 62 |
+
## Overview
|
| 63 |
+
|
| 64 |
+
Commitments are created during the mining process where miners commit to NP-complete problem solutions without revealing them immediately. This enables:
|
| 65 |
+
- **Fair mining**: Prevents front-running and solution stealing
|
| 66 |
+
- **Verifiable work**: Solutions can be verified after commitment
|
| 67 |
+
- **Research data**: Provides structured data for NP-complete problem research
|
| 68 |
+
|
| 69 |
+
## Dataset Structure
|
| 70 |
+
|
| 71 |
+
Based on the baseline dataset `COINjecture/v5`, this dataset focuses specifically on commitment records.
|
| 72 |
+
|
| 73 |
+
### Commitment Lifecycle
|
| 74 |
+
|
| 75 |
+
1. **Commitment Phase**: Miner creates commitment hash = H(problem_params || salt || H(solution))
|
| 76 |
+
2. **Reveal Phase**: Miner reveals solution after block is mined
|
| 77 |
+
3. **Verification**: Network verifies commitment matches revealed solution
|
| 78 |
+
|
| 79 |
+
### Schema
|
| 80 |
+
|
| 81 |
+
Each record contains:
|
| 82 |
+
- `commitment_id`: Unique identifier
|
| 83 |
+
- `commitment_hash`: Cryptographic hash of the commitment
|
| 84 |
+
- `problem_type`: Type of NP-complete problem
|
| 85 |
+
- `problem_params`: Problem parameters (JSON)
|
| 86 |
+
- `salt`: Random salt for commitment
|
| 87 |
+
- `solution_hash`: Hash of solution (H(solution))
|
| 88 |
+
- `solution_data`: Actual solution (revealed later, null initially)
|
| 89 |
+
- `work_score`: Computed work score
|
| 90 |
+
- `status`: Current status (Committed, Revealed, Expired)
|
| 91 |
+
|
| 92 |
+
## Usage
|
| 93 |
+
|
| 94 |
+
### Loading the Dataset
|
| 95 |
+
|
| 96 |
+
```python
|
| 97 |
+
from datasets import load_dataset
|
| 98 |
+
|
| 99 |
+
# Load commitments dataset
|
| 100 |
+
dataset = load_dataset("COINjecture/commitments")
|
| 101 |
+
|
| 102 |
+
# Filter by status
|
| 103 |
+
committed = dataset.filter(lambda x: x["status"] == "Committed")
|
| 104 |
+
revealed = dataset.filter(lambda x: x["status"] == "Revealed")
|
| 105 |
+
|
| 106 |
+
# Filter by problem type
|
| 107 |
+
sat_commitments = dataset.filter(lambda x: x["problem_type"] == "SAT")
|
| 108 |
+
```
|
| 109 |
+
|
| 110 |
+
### Analyzing Commitments
|
| 111 |
+
|
| 112 |
+
```python
|
| 113 |
+
# Count commitments by status
|
| 114 |
+
status_counts = dataset["train"].to_pandas()["status"].value_counts()
|
| 115 |
+
|
| 116 |
+
# Average work scores by problem type
|
| 117 |
+
avg_scores = dataset["train"].to_pandas().groupby("problem_type")["work_score"].mean()
|
| 118 |
+
```
|
| 119 |
+
|
| 120 |
+
## Data Collection
|
| 121 |
+
|
| 122 |
+
Data is collected in real-time from COINjecture Network B blockchain nodes:
|
| 123 |
+
- Commitments are recorded when blocks are mined
|
| 124 |
+
- Solutions are revealed in subsequent blocks
|
| 125 |
+
- All data is verified against blockchain state
|
| 126 |
+
|
| 127 |
+
## Baseline Dataset
|
| 128 |
+
|
| 129 |
+
This dataset is based on `COINjecture/v5` which contains:
|
| 130 |
+
- Full problem solutions
|
| 131 |
+
- Energy measurements
|
| 132 |
+
- Mining metrics
|
| 133 |
+
- Block metadata
|
| 134 |
+
|
| 135 |
+
The commitments dataset focuses specifically on the commitment/reveal mechanism.
|
| 136 |
+
|
| 137 |
+
## License
|
| 138 |
+
|
| 139 |
+
MIT License - See LICENSE file for details.
|
| 140 |
+
|
| 141 |
+
## Citation
|
| 142 |
+
|
| 143 |
+
```bibtex
|
| 144 |
+
@dataset{coinjecture_commitments,
|
| 145 |
+
title={COINjecture Commitments Dataset},
|
| 146 |
+
author={COINjecture Network},
|
| 147 |
+
year={2025},
|
| 148 |
+
url={https://huggingface.co/datasets/COINjecture/commitments}
|
| 149 |
+
}
|
| 150 |
+
```
|
| 151 |
+
|
| 152 |
+
## Contact
|
| 153 |
+
|
| 154 |
+
For issues or questions, please open an issue on the [COINjecture GitHub repository](https://github.com/Quigles1337/COINjecture1337-NETB).
|
| 155 |
+
|
| 156 |
+
---
|
| 157 |
+
|
| 158 |
+
**Generated automatically by COINjecture Network B blockchain nodes**
|