Skip to content

Commit 14d20d5

Browse files
committed
fix: remove test that signature value R.X == 0
As we use compressed coordinates then X is computed from Y.
1 parent 44c64cd commit 14d20d5

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

internal/generator/edwards/eddsa/template/eddsa.test.go.tmpl

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -90,20 +90,6 @@ func TestNonMalleability(t *testing.T) {
9090
}
9191

9292
func TestNoZeros(t *testing.T) {
93-
t.Run("R.X=0", func(t *testing.T) {
94-
// R points are 0
95-
var sig Signature
96-
sig.R.X.SetInt64(0)
97-
sig.R.Y.SetInt64(1)
98-
s := big.NewInt(1)
99-
s.FillBytes(sig.S[:])
100-
bts := sig.Bytes()
101-
var newSig Signature
102-
_, err := newSig.SetBytes(bts)
103-
if err != ErrZero {
104-
t.Fatal("expected error for zero R.X")
105-
}
106-
})
10793
t.Run("R.Y=0", func(t *testing.T) {
10894
// R points are 0
10995
var sig Signature

0 commit comments

Comments
 (0)