I have json blocks with transaction details and added them as blocks from command line using ipfs-api.
1). How can I link these blocks together to create a blockchain?
2). Is there any way to find the last block of the blockchain created?
Thanks for the detailed explanation!
However, I’m trying to understand how blockchain is implemented in IPFS and I’m missing the links.
Firstly, my use case is storing transactions of property registration in a public blockchain. I’m trying to create a blockchain with n transactions in a block and use an algorithm to traverse back the chain to find a particular transaction, i.e., Searching of a blockchain. I have stored each transaction in a dictionary file along with the hash of the previous block. (I mean IPFS blocks, are they not same as a blockchain block?)
Now, If the rules and consensus mechanism can be incorporated in my python code, can this be implemented in IPFS or do I have to use any other blockchains like Ethereum, IOTA for this purpose. If so why do we need to use any other blockchain if I can create my own in a private network.