Example #1
0
 public string signBlock(string blockHashToSign)
 {
     return(Convert.ToBase64String(DigitalSignature.SignData(Convert.FromBase64String(blockHashToSign))));
 }
Example #2
0
 public bool verifyBlock(string blockHashToSign, string signature)
 {
     return(DigitalSignature.VerifySignature(Convert.FromBase64String(blockHashToSign), Convert.FromBase64String(signature)));
 }
Example #3
0
 public KeyStore(byte[] authenticatedHashKey)
 {
     AuthenticatedHashKey = authenticatedHashKey;
     DigitalSignature     = new DigitalSignature();
     DigitalSignature.AssignNewKey();
 }