ccl-pow
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
Repository
ccl-pow
Owner
Statistic
- 3
- 3
- 0
- 1
- 2
- over 4 years ago
- May 28, 2019
License
Mozilla Public License 2.0
Links
Synced at
Fri, 22 Nov 2024 04:30:32 GMT
Languages