hashcash
Version, currently 1.0.03 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.
Nothing has been indexed for 1.0.0 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:
hashcash:
github: place-labs/hashcash
version: ~> 1.0.0Then run:
shards installshard.yml
No shard.yml has been indexed for 1.0.0. 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.
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.0- Tagged
- Sep 12, 2022
- Commit
8151bd0c8f58- Indexed
- not yet
Dependents
Repository
github.com/place-labs/hashcash
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 17, 2026
- Synced
- Aug 17, 2026
- Versions
- 3