Blockchain Technology: Methodology, Application and Security Issues