A guide to algorithms in blockchain, quantum cryptography, zero-knowledge protocols, and homomorphic encryption