We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67c1cb4 commit 5cda523Copy full SHA for 5cda523
1 file changed
src/Nethermind/Nethermind.Evm/Precompiles/Bls/PairingCheckPrecompile.cs
@@ -46,7 +46,6 @@ private PairingCheckPrecompile() { }
46
var acc = GT.One(buf.AsSpan());
47
GT p = new(buf.AsSpan()[GT.Sz..]);
48
49
- bool hasInf = false;
50
for (int i = 0; i < inputData.Length / PairSize; i++)
51
{
52
int offset = i * PairSize;
@@ -62,17 +61,15 @@ private PairingCheckPrecompile() { }
62
61
// x == inf || y == inf -> e(x, y) = 1
63
if (x.IsInf() || y.IsInf())
64
65
- hasInf = true;
66
continue;
67
}
68
69
p.MillerLoop(y, x);
70
acc.Mul(p);
71
72
73
- bool verified = hasInf || acc.FinalExp().IsOne();
74
byte[] res = new byte[32];
75
- if (verified)
+ if (acc.FinalExp().IsOne())
76
77
res[31] = 1;
78
0 commit comments