upvote
It's actually increase. The cryptography works because make_publickey(privatekey1+privatekey2) == make_publickey(privatekey1)+make_publickey(privatekey2) (for a weird definition of +) (make_publickey henceforth abbreviated to mpk)

ECC math is pretty much just numbers, but the numbers are jumbled up so all you can do is add (and subtract, I think), you can't multiply or divide. (You can multiply a jumbled number by an actual number like 10, because that's just adding 10 times, but you can't multiply two jumbled numbers) The private keys are actual numbers so you can do whatever you want, the public keys are the equivalent jumbled numbers.

You work out mpk(1000),mpk(2000),mpk(3000),... in advance. You start with someones public key and add mpk(1) repeatedly 1000 times and if it ever matches any of the ones you just computed, then you know the private key. For example if their_publickey+mpk(234) == mpk(2000) then their_publickey == mpk(1766) and since their_publickey==make_publickey(their_privatekey), obviously their_privatekey==1766.

reply
that means you can do the attempts by an an increment of 10. (reduce applies to the number of "attempts before you get in")

phrased in a different way: you can do the steps by [10] instead of one by one (if you keep a list of what the key could be for 0 to 9)

the algorithm works by decomposing the [unknown private key] that we want to find into a "remainder" (which you get after dividing by the "giant step" number, in the example 10, but it can be 100, or square root of the number of elements in the cyclic group used for a given key exchange) and a multiplier of how many times the "giant step" number divides the key.

https://en.wikipedia.org/wiki/Baby-step_giant-step

reply
I don't follow either. If we don't reduce, then we multiply by ten (giant steps), right? But which baby step we multiply first and how do we know to stop trying that step and change to something else? It seems that we still guess, just not sequentially, but total number of steps to guarantee solution is still the same.
reply
The baby steps are stored in a hash table (F(x), x), then for each giant step the remainder S - F(n) is looked up in the hash table. An elliptic curve allows you to add and subtract points. If S - F(n) is found in the hash table, the private key is n + x. If S - F(n) is not found, n is incremented by the giant step. Instead of 2^256 operations, baby-step giant-step does 2^128 hash table lookups at the cost of space for 2^128 hash table entries. If available memory is smaller than 2^128, for example 2^80, then baby-step giant-step would do 2^176 hash table lookups on a hash table of size 2^80 entries. But the speedup is limited to sqrt(2^256) = 2^128 because it takes at least 2^128 operations to fill the hash table.

An analogy is the O(n) algorithm for Two Sum. Instead of iterating over n^2 pairs (= O(n^2) time) and using O(1) space, a precomputed hash table replaces the inner loop iteration with a hash table lookup, changing the algorithm to O(n) time and O(n) space.

reply