public JObject ToJson() { JObject json = new JObject(); json["hex_bytes"] = HexBytes; json["curve_type"] = CurveType.AsString(); return(json); }