Skip to content

Commit 1328df9

Browse files
Add some UInt256_10x26 tests
1 parent da3197b commit 1328df9

File tree

2 files changed

+570
-1
lines changed

2 files changed

+570
-1
lines changed

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

+6
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,11 @@ public static UInt256_8x32 CMov(in UInt256_8x32 r, in UInt256_8x32 a, uint flag)
8787
(r.b6 & mask0) | (a.b6 & mask1),
8888
(r.b7 & mask0) | (a.b7 & mask1));
8989
}
90+
91+
public bool Equals(in UInt256_8x32 right)
92+
{
93+
return ((b0 ^ right.b0) | (b1 ^ right.b1) | (b2 ^ right.b2) | (b3 ^ right.b3) |
94+
(b4 ^ right.b4) | (b5 ^ right.b5) | (b6 ^ right.b6) | (b7 ^ right.b7)) == 0;
95+
}
9096
}
9197
}

0 commit comments

Comments
 (0)