diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..65246ec --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + { + "associatedIndex": 1 +} + + + + + + + + + + + + + + + true + + \ No newline at end of file diff --git a/edwards25519.go b/edwards25519.go index a744da2..b9513a8 100644 --- a/edwards25519.go +++ b/edwards25519.go @@ -46,6 +46,13 @@ func checkInitialized(points ...*Point) { } } +func (v *Point) CheckInitialized() bool { + if v.x == (field.Element{}) && v.y == (field.Element{}) { + return false + } + return true +} + type projCached struct { YplusX, YminusX, Z, T2d field.Element }