public static bool IsValidPublicKey(string hex) { byte[] pubKeyBytes = Util.HexStringToBytes(hex); PublicKey pk = new PublicKey(); string result = pk.constructFromBytes(pubKeyBytes); return(result == null); }
public static bool IsValidPublicKey(string hex) { byte[] pubKeyBytes = Util.HexStringToBytes(hex); PublicKey pk = new PublicKey(); string result = pk.constructFromBytes(pubKeyBytes); return (result == null); }