Blockchain for Distributed Systems Security