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