calculate-mining-difficulty
Installation
SKILL.md
Calculate Mining Difficulty
Calculate and analyze BSV mining difficulty from targets, bits, and network data.
When to Use
- Get current network difficulty from WhatsOnChain
- Convert between target and difficulty
- Decode compact bits representation
- Understand expected hash calculations for mining
Usage
# Get current network difficulty
bun run skills/calculate-mining-difficulty/scripts/difficulty.ts --current
# Calculate from compact bits (e.g., genesis block)
bun run skills/calculate-mining-difficulty/scripts/difficulty.ts --bits 0x1d00ffff