I am making a blockchain based messaging application. How it works is like this: there is a server side program and a client side program. The clients are the nodes which have a Public and Private Key Pair associated with each of them. When a node has to send a message to someone, it creates a block with message encrypted with the receiver's public key and add that block to the chain. This updated chain gets broadcasted to all the nodes and only one node can decrypt the message with his own private key. Can someone tell me how can I add mining to this application?

P.S. I know it's bit of a vague project and the use of blockchain is kinda forced. But I have to make it due to some reason so any help would be appreciated.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.