I read that i have to hash 3 things(previous block's header, nonce, current block contents) using the sha 256 algorithm to get a hash that has required number of zeros at the start, in order to add my block to the blockchain.
where are the specifications for combining to form a block?
I have a sha 256 program that can perform a hash. I need to know 1. where to get the latest block? 2. what parts of the latest block to use? 3. where to get the latest transactions? 4. what parts of the latest transactions are to be put in a block? etc
there must be specifications for these. can anyone please tell me where to find it?
Thanks much, ms