Proof of stake in c++:

NaivecoinStake