Skip to content

Commit

Permalink
Native: mark NamedCurve enum as deprecated
Browse files Browse the repository at this point in the history
It will be replaced by NamedCurveHash in the next commit.

A part of neo-project/neo#3209.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
  • Loading branch information
AnnaShaleva committed May 10, 2024
1 parent 160e8b7 commit c0944e9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Neo.SmartContract.Framework/Native/NamedCurve.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,24 @@
// Redistribution and use in source and binary forms with or without
// modifications are permitted.

using System;

namespace Neo.SmartContract.Framework.Native
{
/// <summary>
/// RFC 4492
/// Represents the named curve (RFC 4492) used in ECDSA. This enum is obsolete
/// and will be removed in future versions. Please, use an extended compatible
/// <see cref="NamedCurveHash"/> instead.
/// </summary>
/// <remarks>
/// https://tools.ietf.org/html/rfc4492#section-5.1.1
/// </remarks>
[Obsolete("NamedCurve enum is obsolete and will be removed in future versions. Please, use an extended compatible NamedCurveHash instead.")]
public enum NamedCurve : byte
{
[Obsolete("secp256k1 value is obsolete and will be removed in future versions. Please, use NamedCurveHash.secp256k1SHA256 for compatible behaviour.")]
secp256k1 = 22,
[Obsolete("secp256r1 value is obsolete and will be removed in future versions. Please, use NamedCurveHash.secp256r1SHA256 for compatible behaviour.")]
secp256r1 = 23
}
}

0 comments on commit c0944e9

Please sign in to comment.