hashcash
Version, currently 1.0.23 versions
- 1.0.2latestSep 12, 2022
- 1.0.1not indexedSep 12, 2022
- 1.0.0not indexedSep 12, 2022
github.com/place-labs/hashcash
Crystal Lang implementation of Hashcash proof-of-work systems. Generates and verifies Hashcash strings.
1 stars
1 dependent
License: MIT
Installation
# Add this to your shard.yml
dependencies:
hashcash:
github: place-labs/hashcash
version: ~> 1.0.2Then run:
shards installshard.yml
- Crystal
>= 1.0.0- License
- MIT
- Authors
- Gab Fitzgerald, Caspian Baska, Mia Bennett
Dependencies
This version declares no dependencies.
README
hashcash
Crystal Lang implemenation of Hashcash proof-of-work system.
Installation
-
Add the dependency to your
shard.yml:dependencies: hashcash: github: place-labs/hashcash -
Run
shards install
Usage
require "hashcash"
To generate a hashcash string:
Hashcash.generate("resource")
# => "1:20:201206222555:resource::pOWgc88+uDuefr/o:MTMxNzg2MA=="
To verify a hashcash string:
Hashcash.valid?("1:20:201206222555:resource::pOWgc88+uDuefr/o:MTMxNzg2MA==", "resource")
# => true
Hashcash.valid!("1:20:201206222555:resource::pOWgc88+uDuefr/o:MTMxNzg2MA==", "resource")
# => "1:20:201206222555:resource::pOWgc88+uDuefr/o:MTMxNzg2MA=="
# (or raises an exception if invalid)
Contributing
- Fork it (https://github.com/your-github-user/hashcash/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
- Gab Fitzgerald - creator
- Caspian Baska - maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.0.2- Tagged
- Sep 12, 2022
- Commit
ee0fc6576b10- Crystal
>= 1.0.0- Indexed
- yes
Dependents
Repository
github.com/place-labs/hashcash
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 17, 2026
- Synced
- Aug 17, 2026
- Versions
- 3