Skip to content

Commit 8dce0e9

Browse files
Fix comparison order
1 parent d04e28b commit 8dce0e9

File tree

1 file changed

+1
-1
lines changed
  • Src/Autarkysoft.Bitcoin/Cryptography/EllipticCurve

1 file changed

+1
-1
lines changed

Src/Autarkysoft.Bitcoin/Cryptography/EllipticCurve/Point.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ public bool IsValidVar()
455455
// y^2 = x^3 + 7
456456
UInt256_10x26 left = y.Sqr();
457457
UInt256_10x26 right = (x.Sqr() * x) + CurveB;
458-
return right.Equals(left);
458+
return left.Equals(right);
459459
}
460460

461461

0 commit comments

Comments
 (0)