Upload README.md with huggingface_hub
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158---license: mittask_categories:- othertags:- blockchain- commitments- np-complete- proof-of-work- coinjecturedataset_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 mined3. **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
```pythonfrom datasets import load_dataset
# Load commitments datasetdataset = load_dataset("COINjecture/commitments")
# Filter by statuscommitted = dataset.filter(lambda x: x["status"] == "Committed")revealed = dataset.filter(lambda x: x["status"] == "Revealed")
# Filter by problem typesat_commitments = dataset.filter(lambda x: x["problem_type"] == "SAT")```
### Analyzing Commitments
```python# Count commitments by statusstatus_counts = dataset["train"].to_pandas()["status"].value_counts()
# Average work scores by problem typeavg_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**README.mdAdded+158