Skip to content

Commit

Permalink
fix: remove test that signature value R.X == 0
Browse files Browse the repository at this point in the history
As we use compressed coordinates then X is computed from Y.
  • Loading branch information
ivokub committed Sep 27, 2023
1 parent 44c64cd commit 14d20d5
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions internal/generator/edwards/eddsa/template/eddsa.test.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,6 @@ func TestNonMalleability(t *testing.T) {
}

func TestNoZeros(t *testing.T) {
t.Run("R.X=0", func(t *testing.T) {
// R points are 0
var sig Signature
sig.R.X.SetInt64(0)
sig.R.Y.SetInt64(1)
s := big.NewInt(1)
s.FillBytes(sig.S[:])
bts := sig.Bytes()
var newSig Signature
_, err := newSig.SetBytes(bts)
if err != ErrZero {
t.Fatal("expected error for zero R.X")
}
})
t.Run("R.Y=0", func(t *testing.T) {
// R points are 0
var sig Signature
Expand Down

0 comments on commit 14d20d5

Please sign in to comment.