Cryptographic Primitives in Blockchain Technology : A mathematical introduction