Revert "Made EdPoint public"

This reverts commit 61ef96db99.
This commit is contained in:
Thorsten Sommer 2020-01-06 22:18:03 +01:00
parent 61ef96db99
commit 42c8afcf39

View File

@ -5,7 +5,7 @@ using System.Text;
namespace Ed25519
{
public struct EdPoint
internal struct EdPoint
{
public BigInteger X { get; set; }
@ -67,7 +67,7 @@ namespace Ed25519
};
}
var q = this.ScalarMul(BigInteger.Divide(e / Constants.TWO);
var q = this.ScalarMul(e / Constants.TWO);
q = q.EdwardsSquare();
return e.IsEven ? q : q.Edwards(this);
@ -97,10 +97,5 @@ namespace Ed25519
return (yy - xx - dxxyy - 1).Mod(Constants.Q).Equals(BigInteger.Zero);
}
public override string ToString()
{
return $"Point(x={this.X}; y={this.Y})";
}
}
}