I created a simple "blockchain" on Java.
Blockchain class is an ArrayList<> of Blocks. The blocks are made by: hashcode, previous hashcode and nonse counter. When a block is created, it is added to the blockchain but, until the algorithm (SHA256) is resolved, it is not possible to allocate others. If the hashcode is unique, it is added successfully or the block is removed.
What I would like to do now is to share the blockchain on a network, so the SHA256 algorithm will not be resolved by the local machine, but by a user on the network (for exaple, bitcoin mining).
So my question is: how can I share the same object on different machines in a network?
You can download the code from Git:
Blockchain code