added ECDSA Sign and Verify signature

This commit is contained in:
arnaucode
2018-07-29 21:07:55 +02:00
parent d4e05e49c3
commit 0266c94332
4 changed files with 133 additions and 2 deletions

View File

@@ -44,11 +44,11 @@ func TestAdd(t *testing.T) {
}
// check that q exists on the elliptic curve
pt, pt_, err := ec.At(q.X)
pt, pti, err := ec.At(q.X)
if err != nil {
t.Errorf(err.Error())
}
if !q.Equal(pt) && !q.Equal(pt_) {
if !q.Equal(pt) && !q.Equal(pti) {
t.Errorf("q not exist on the elliptic curve")
}