Private blockchain system with external gateway