MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / IsZero

Method IsZero

src/crypto/equihash.cpp:272–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270
271template<size_t WIDTH>
272bool StepRow<WIDTH>::IsZero(size_t len)
273{
274 // This doesn't need to be constant time.
275 for (size_t i = 0; i < len; i++) {
276 if (hash[i] != 0)
277 return false;
278 }
279 return true;
280}
281
282template<size_t WIDTH>
283std::vector<unsigned char> FullStepRow<WIDTH>::GetIndices(size_t len, size_t lenIndices,

Callers 2

OptimisedSolveMethod · 0.80
IsValidSolutionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected