Blockchain security and applications: A comprehensive analysis from hash functions to consensus algorithms | Synapse