crystal-blockchain
Version, currently master branch1 version
- master branchlatestNov 13, 2018
github.com/bradford-hamilton/crystal-blockchain
No description declared in shard.yml.
21 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
crystal-blockchain:
github: bradford-hamilton/crystal-blockchain
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.24.2- License
- MIT
- Author
- Bradford Lamson-Scribner <brad.lamson@gmail.com>
- Target
crystal-blockchainfrom src/crystal-blockchain.cr
Dependencies
Runtime Dependencies
- kemal*github: kemalcr/kemal
README
# Write your own blockchain and PoW algorithm using Crystal Source code for a [tutorial on Medium](https://medium.com/@bradford_hamilton/write-your-own-blockchain-and-pow-algorithm-using-crystal-d53d5d9d0c52) I published. ## Installation Run `shards` to get the dependencies ## Run Locally - Run `crystal src/blockchain.cr` - Go to `http://localhost:3000` in your browser. ## Run with Docker - Run `docker build -t image_name_of_your_choosing:latest .` - Run `docker container run -d -p 3000:3000 image_name_of_your_choosing` - Go to `http://localhost:3000` in your browser. Clean up: - Run `docker container ls` - Copy the CONTAINER ID from your running process - Run `docker container rm -f <CONTAINER ID>` - Run `docker image rm image_name_of_your_choosing` ## Usage - GET full blockchain - POST new blocks to chain ## Contributing 1. Fork it ( https://github.com/bradford-hamilton/crystal-blockchain/fork ) 2. Create your feature branch (git checkout -b my-new-feature) 3. Commit your changes (git commit -am 'Add some feature') 4. Push to the branch (git push origin my-new-feature) 5. Create a new Pull Request ## Contributors - [Bradford-Hamilton](https://github.com/bradford-hamilton) Bradford Lamson-Scribner - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Nov 13, 2018
- Crystal
0.24.2- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/bradford-hamilton/crystal-blockchain
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 1