Example #1
0
 public static bool IsSignatureValid(DataEntity dataEntity, Signature signature, byte[] signPublicKey)
 {
     return(IsSignatureValid(BitConverter.GetBytes(dataEntity.GetHashCode()), signature.Value, signPublicKey));
 }
Example #2
0
 public static Signature Sign(DataEntity dataEntity, byte[] signKeyPair)
 {
     return(new Signature(Sign(BitConverter.GetBytes(dataEntity.GetHashCode()), signKeyPair)));
 }