Blockchain works on a peer-to-peer network of consensus algorithm, which makes the transactions trustworthy and protects them from malicious activities of any third party.