Author

Topic: BashCoin - blockchain PoC written in BASH (Read 95 times)

newbie
Activity: 3
Merit: 0
February 23, 2018, 11:59:49 AM
#5
Thank you!

Feel free to suggest any tweaks you'd think it would benefit from. I'm busy working on chain validation currently, but any other comments suggestions would be appreciated.
member
Activity: 364
Merit: 13
February 23, 2018, 11:39:04 AM
#4
wow. it's so uncommon now in this section. actually great post. i would merit this post if i could.
newbie
Activity: 3
Merit: 0
February 23, 2018, 11:26:58 AM
#3
Thank you!

 Smiley
sr. member
Activity: 392
Merit: 253
Open and Transparent Science Powered By Blockchain
February 23, 2018, 11:25:59 AM
#2
Out of so many price manipulation and altcoins shilling threads, your thread is one of the few high-quality original post out there. Thank you for sharing your code.
newbie
Activity: 3
Merit: 0
February 23, 2018, 11:18:50 AM
#1
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.bash

Edited: fixed some typos
Jump to: