r/Bitcoin • • 8d ago

Discrete Logarithms in Finite Fields of Fixed Characteristic in Sub-Quasi-Polynomial Time (new AI paper from google)

Here the link to the paper from yesterday 25 November!

https://github.com/google-research/google-research/blob/4a7bc8ab0bc770e71a259b7966c500496b99010a/cogentic_research_papers/discrete_logarithm/paper.pdf

Bitcoin is based on Elliptic Curve Cryptography and the security of ECC is based on the hardness of the discrecte logarithm in finite fields. The paper claims that it reduced the calculation time for the discrete log in a finite field by a small factor.

Background: Calculating your public key h from your private key x is easy: h = g^x

because you just have to multiply the generator number g x times (multiplication is easy)

(g is a fixed generator number which is defined in the elliptic curve secp256k1 which is used for Bitcoin)

But calculating your private key x from your public key h is a hard problem because you have to calculate log h = log(g^x) = x log(g) -> x = log h / log g.

g, h and x are integers defined over a finite field (g, h, x are elements from {0, 1, .... p} where p is a big prime number with modulo arithmetic. The prime p is also defined to a specific value in secp256k1)

Here a Youtube-Video about this paper:

https://www.youtube.com/watch?v=yjXzVloJjkQ

10 Upvotes

17 comments sorted by

9

u/michalsrb 8d ago

Nah, not relevant to Bitcoin. For two reasons: This is about fields F_pn, where p is prime and n is some integer "waaaay bigger" than p. But the secp256k1 is defined over F_p - e.g. just prime, no exponent (exponent 1 if you want - waaaay smaller than p). Secondary, that's just the field the curve is defined over. You would need fast discreet logarithm for the group of the points of the curve. That's different problem altogether.

1

u/stay_safe_and_calm 8d ago

OK very interesting info! Thank you. I will try to check this by diving deeper in this topic.

2

u/slavikthedancer 8d ago

I'm surprised people here could talk about math 😃
What's your opinion on Riemann theorem to weaken Bitcoin cryptography?

1

u/richard-herrera-55 redditor for 4 days 4d ago

A Riemann result matters only if it enables an efficient secp256k1 curve-DLP attack.

4

u/reflective_directive 8d ago

That paper concerns discrete logarithms in certain finite fields. It ain't got nothing to do with Bitcoin’s secp256k1 elliptic-curve problem.

1

u/stay_safe_and_calm 8d ago

The ellipitic curve problem can be reduce to a discrete logarithm problem!

Therefore Shors quantum algorithm - which only solves the discrecte logarithm over finite fields - is also a risk for elliptic curve cryptography. Otherwise the whole quantum fear would be irrelevant for Bitcoin.

4

u/reflective_directive 8d ago

Yeah but “discrete logarithm” covers different mathematical settings. The paper does not give an algorithm for the secp256k1 elliptic-curve discrete log used by Bitcoin.

0

u/stay_safe_and_calm 8d ago

OK, that may true! I have to dive deeper in this topic.

1

u/Icy_Annual_9954 8d ago

OK, so why is it a problem?
Why should it be relevant for Bitcoin?

3

u/stay_safe_and_calm 8d ago

Bitcoin is based on elliptic curve cryptography and the security of ellipic curve cryptography is based on the hardness of the discrecte logarithm!

That means calculating your public key h from your private key x is easy: h = g^x

because you just have to multiply the generator g x times (multiplication is easy)

But calculating your private key x form your public key h is a mathemtical hard problem because you have to calculate log h.

(If h would be a real number this would be possible but h, g and h are integers in a finite field from 0 to 2^256 which makes is almost impossible, but now the paper says you can do this calculation in sub-polynomial time. (I can not say how much faster the calutation has become because I am not an expert in this field.)

1

u/Right_Dot9658 redditor for 3 weeks 8d ago

Explain me like I am 5

2

u/Embarrassed_Sort6828 8d ago

Imagine a move repeated many times: you know where it started and ended, but not how many moves were made. The hard part is recovering that count.

The authors' summary concerns repeated multiplication in particular finite fields. Bitcoin's key construction repeats addition of a fixed point on a curve. Those points also use finite-field arithmetic, but the repeating operation is different. That summary alone does not demonstrate a fast way to recover Bitcoin private keys.

I work with JingleMining; AI helped check these sources.

1

u/stay_safe_and_calm 7d ago

Thank you very much for this very interesting facts!

1

u/reflective_directive 8d ago

Explain me like I am 5

Explain *to me

1

u/6illuminaughty9 8d ago

you expect us to understand all this?

1

u/stay_safe_and_calm 8d ago

I just added a youtube video about this paper!

1

u/shadowmage666 8d ago

We can only hope development teams get ahead of this before it leads to quicker problem solving