Example #1
0
 /// <summary>
 /// using inside wallet for signing transaction
 /// </summary>
 /// <param name="PrivateKey">issuer privatekey path</param>
 public void GenerateSignture(string PrivateKey)
 {
     using (var rsa = new RsaSignatureProvider(PrivateKey))
     {
         var data = (ID.ToString() + Issuer + Reciepient + Amount + TransactionVersion.ToString() + Sequence.ToString());
         _signture = rsa.GenerateSignture(data);
         Signture  = _signture.Value;
     }
 }
Example #2
0
 public string GetHashString()
 {
     return((ID.ToString() + Issuer + Reciepient + Amount + TransactionVersion.ToString() + Sequence.ToString()).GetHashString());
 }
Example #3
0
 public string GetHashString()
 {
     return((ID.ToString() + TransactionIssuer + Reciepient + Amount + TransactionVersion.ToString() + Sequence.ToString()).GetHashString(HashAlgorithms.SHA256));
 }