Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: sandoche on August 16, 2018, 08:35:18 AM



Title: A tutorial for building a Proof of Stake cryptocurrency
Post by: sandoche on August 16, 2018, 08:35:18 AM
Hello,

Based on the Naivecoin tutorial to build a Proof of Work cryptocurrency with NodeJS / Typescript, I made a Proof of Stake tutorial.
It's not perfect, and not for production, it was just for my personal learning, because I didn't find any other tutorial about Proof of Stake.

Keep in mind that there are different implementation of Proof of Stake, I made mine based on this article from Vitalik: https://blog.ethereum.org/2014/07/05/stake/

Proof of Work tutorial (original work): https://lhartikk.github.io
Proof of Stake tutorial (my fork): https://naivecoinstake.learn.uno

Feel free to improve it, everything is open source!


Title: Re: A tutorial for building a Proof of Stake cryptocurrency
Post by: butka on August 16, 2018, 10:15:33 AM
It looks very interesting. I might give it a try.

Based on the Naivecoin tutorial to build a Proof of Work cryptocurrency with NodeJS / Typescript, I made a Proof of Stake tutorial.
So the code is written in javascript, right? What about Ruby, where is it needed? On the github page, you mention Ruby and Gems as part of the requirements. I've never worked with the Ruby platform before and it could be trickier to install, at least for me.


Title: Re: A tutorial for building a Proof of Stake cryptocurrency
Post by: sandoche on August 21, 2018, 12:03:49 PM
Hi butka,

The Ruby is only in the website, the code of the naivecoinstake is is Typescript (basically javascript with type, and transpiled to javascript). Also there is a UI made with VueJS, here are the links of the correct repositories:
- https://github.com/sandoche/NaivecoinStake-Proof-of-Stake-Core
- https://github.com/sandoche/NaivecoinStake-Proof-of-Stake-UI


Title: Re: A tutorial for building a Proof of Stake cryptocurrency
Post by: butka on August 22, 2018, 11:18:22 AM
Thanks @sandoche. OK, that probably means that one can mange without Ruby, with a website made in any other language. Your tutorial is on my to-do-list, hopefully I can find some time to try it soon.