Private semi-private and public blockchains