ccl-pow
Version, currently 0.1.32 versions
- 0.1.3latestMar 4, 2020
- 0.1.2-alphanot indexedMar 4, 2020
github.com/cocol-project/ccl-pow
Bitcoin style Proof of Work library in Crystal
3 stars
1 dependent
License: MPL-2.0
Installation
# Add this to your shard.yml
dependencies:
ccl-pow:
github: cocol-project/ccl-pow
version: ~> 0.1.3Then run:
shards installshard.yml
- Crystal
0.33.0- License
- MPL-2.0
- Author
- Cristian Șerb
- Target
powfrom src/ccl-pow.cr
Dependencies
Development Dependencies
README
Cocol Proof of Work
Bitcoin style Proof of Work lib written in Crystal
Docs: https://cocol-project.github.io/ccl-pow
Installation
- Add the dependency to your
shard.yml:
dependencies:
btcpow:
github: cocol-project/ccl-pow
- Run
shards install
Usage
require "ccl-pow"
Mining
CCL::Pow.mine(difficulty: "1d00ffff", for: "my_block_data")
Calculate target based on difficulty bits
CCL::Pow::Utils.calculate_target(from: "1d00ffff")
Contributing
- Fork it (https://github.com/cocol-project/ccl-pow/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Cristian Șerb - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.3- Tagged
- Mar 4, 2020
- Commit
665c47fcfea2- Crystal
0.33.0- Indexed
- yes
Dependents
Repository
github.com/cocol-project/ccl-pow
Metadata
- Created
- Aug 12, 2026
- Updated
- Sep 26, 2026
- Synced
- Sep 26, 2026
- Versions
- 2