Blockchain for Cybersecurity and Privacy:Architectures, Challenges, and Applications