Open arik-so opened 4 years ago
I don't think this actually simplifies things. The loop starts from 1 as we've unrolled the first iteration to live outside the main loop. The variable re-name doesn't seem correct either, as it is the running cached blinding factor. I'd recommend reading the comments again, and possibly going back in the commit history to check out what the loop looked like when we had to re-compute the blinding factor for a hop from scratch each time.
The loop can be started from 0 rather than from 1, and the cached blinding factor was actually the cached ephemeral private key, so I renamed the variable.