Windows Sample SHA256 - 2 Quickie BLOCK CHAIN!

in cryptocurrency •  2 months ago 

I just made a sample block chain of 3 blocks using a Dave Nash sample program. It was old from 2017, and a CLION Linux c++11

Here's the hashes of the block chain.

17296451031725720237625570668586.jpg
This hash was set to difficulty 6 level and took an hour to compute the three hashes.

I upgraded the program to Visual Studio 2022 C/C++ 20/17.

17296453080632483704442013350721.jpg
Block1.h

17296453945095095548527435324764.jpg
Blockchain1.h

17296454764882595668333450397215.jpg
Block1.cpp

17296455389039106724372643564363.jpg
Blockchain1.cpp

17296456168705696114433500615557.jpg
Main.cpp

I started with an Windows C/C++ empty console app

Set Difficulty to 1 for debugging. It takes a few seconds.

17296458042465759425899329495755.jpg
I used Zending SHA256 2 ON GITHUB FOR
SHA256

17296459093034465447048942950362.jpg

17296459523356577742698293354997.jpg

17296460528743818089368282954491.jpg
SHA256.CPP Are these three photos.

Have a great one

Dave Nash also has this program at github
https://davenash.com/2017/10/build-a-blockchain-with-c/ tutorial

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!