Private, public and consortium blockchains