Generic library to produce networks based on a blockchain