mirror of
https://github.com/arnaucube/cryptofun.git
synced 2026-02-28 05:16:46 +01:00
added ECDSA Sign and Verify signature
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user