Looks good to me.
You might want to keep track of the blocks as you create them, or you will find it hard to verify the integrity of a block.
(Do I know the hash of the previous block? Do I know about the next block, if it is not the last block?)
You might want to keep track of the blocks as you create them, or you will find it hard to verify the integrity of a block.
(Do I know the hash of the previous block? Do I know about the next block, if it is not the last block?)
the thing i really want to try making is take a sinatra/redis/crud app and rebuild the database as a distributed database on a blockchain. or at least i think thats what i want to do.