void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WritePropertyName("hex_bytes");
     writer.WriteStringValue(HexBytes);
     writer.WritePropertyName("curve_type");
     writer.WriteStringValue(CurveType.ToString());
     writer.WriteEndObject();
 }
Ejemplo n.º 2
0
        public PublicKey(string hexBytes, CurveType curveType)
        {
            if (hexBytes == null)
            {
                throw new ArgumentNullException(nameof(hexBytes));
            }

            HexBytes  = hexBytes;
            CurveType = curveType;
        }