Skip to content

Commit

Permalink
Mark old scalar inverse methods obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
Coding-Enthusiast committed Dec 23, 2023
1 parent ebf114a commit 59e6ccf
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Src/Autarkysoft.Bitcoin/Cryptography/EllipticCurve/Scalar8x32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,11 @@ public Scalar8x32 InverseVar()
return r;
}


/// <summary>
/// Use Inverse() instead
/// </summary>
/// <returns></returns>
[Obsolete("Use Inverse() instead.")]
public Scalar8x32 Inverse_old()
{
/* First compute xN as x ^ (2^N - 1) for some values of N,
Expand Down Expand Up @@ -770,6 +774,11 @@ public Scalar8x32 Inverse_old()
return t.Multiply(x6); /* 111111 */
}

/// <summary>
/// Use InverseVar() instead.
/// </summary>
/// <returns></returns>
[Obsolete("Use InverseVar() instead.")]
public Scalar8x32 InverseVar_old()
{
Debug.Assert(GetOverflow(this) == 0);
Expand Down

0 comments on commit 59e6ccf

Please sign in to comment.