ccl-pow
Version, currently 0.1.2-alpha2 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
Nothing has been indexed for 0.1.2-alpha yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
ccl-pow:
github: cocol-project/ccl-pow
version: ~> 0.1.2-alphaThen run:
shards installshard.yml
No shard.yml has been indexed for 0.1.2-alpha. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
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.2-alpha- Tagged
- Mar 4, 2020
- Commit
c72181405213- Indexed
- not yet
Dependents
Repository
github.com/cocol-project/ccl-pow
Metadata
- Created
- Aug 12, 2026
- Updated
- Sep 26, 2026
- Synced
- Sep 26, 2026
- Versions
- 2