How Cryptographic Algorithms Strengthen Blockchain Security