So I got bored... and wrote a simple blockchain implementation in BASH. (Influenced by SHASM, for those who can remember, a BASH Assembly "compiler" a few years back)
What's included:
1. Create a genesis block
2. Use above the chain blocks
3. "Mine" new blocks
4. Output all of this in a small array
5. Difficulty setting is added
What's probably missing:
1. Actual PoW implementation (the implementation I have is basic at best and probably very untidy)
2. Validation of previous blocks
3. Ability to scale
4. A whole bunch more...
If anyone wants to use this opportunity to learn, expand, play and in general just mess around a bit, please feel free to add/comment/PR etc.
Code can be found here:
https://github.com/elemantalcode/bash-scripts/blob/master/bashCoin.bashEdited: fixed some typos