Exemple #1
0
        public String GenerateSHA256()
        {
            var stringBlock = JsonConvert.SerializeObject(this.Data) + this.CreatedAt + this.Difficulty + this.Nonce;
            var bytes       = new SHA256Managed().ComputeHash(Encoding.ASCII.GetBytes(stringBlock));

            return(bytes.ToBase64());
        }