summaryrefslogtreecommitdiff
path: root/ec2n.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ec2n.cpp')
-rw-r--r--ec2n.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/ec2n.cpp b/ec2n.cpp
index d668c4f..946a955 100644
--- a/ec2n.cpp
+++ b/ec2n.cpp
@@ -171,8 +171,7 @@ bool EC2N::Equal(const Point &P, const Point &Q) const
const EC2N::Point& EC2N::Identity() const
{
- static const Point zero;
- return zero;
+ return Singleton<Point>().Ref();
}
const EC2N::Point& EC2N::Inverse(const Point &P) const