Bitcoin Forum
November 25, 2026, 08:21:58 PM *
News: Latest Bitcoin Core release: 32.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: The smallest point on secp256k1  (Read 33 times)
jovica888 (OP)
Member
**
Offline

Activity: 71
Merit: 18


View Profile
Today at 08:48:37 AM
Last edit: Today at 02:00:24 PM by jovica888
Merited by stwenhao (1)
 #1

I was doing my research (for my master's work) and I found this work

The distribution of points on curves over finite fields in some small rectangles
https://arxiv.org/abs/1304.5272

So I wondered what will be the smalles point on secp256k1 if we start drawing squares starting from 1x1 2x2 3x3 4x4 on a coordinate system. When I say the smallest I do not think about X=1 and Y=4218f20ae6c646b363db68605822fb14264ca8d2587fdd6fbc750d587e76a7ee or Y=1 and X=146d3b65add9f54ccca28533c88e2cbc63f7443e1658783ab41f8ef97c2a10b5

So for p43 the smallest point is 7,7, so the square is 7x7
https://prnt.sc/ZxI_9paFGSLW

For p97 it is 13,19 so the square is 19x19
https://prnt.sc/Y0fGFbk6NsGM

For p967 it is 47,19 so the square is 47x47
https://prnt.sc/WeYpB42YuTDo

So my question is what will be the first point in a square for big curve... Claude is telling me that square with dimensions 2^128 x 2^128 is probably empty - no points...
Do you think this is something that we can calculate? I mean this is no ECDLP we are not looking for a private key of that first point

EDIT
Because of mod p on secp256k1 and that p is very big number fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f
There is no any possible points in this area
0<= X <= 2^85 and 0<= Y <= 2^128 - matematicaly impossible because of Y^2 = X^3 + 7
athanred
Full Member
***
Offline

Activity: 228
Merit: 455


View Profile
Today at 08:02:52 PM
 #2

Quote
what will be the first point in a square for big curve
It depends on the exact curve equation, because some of them have quite small coordinates, and others do not. For example: https://std.neuromancer.sk/secg/secp192k1

See? There is some 192-bit curve. Sounds quite big, right? And if you use the default generator, then you would expect at least 64 non-zero bits or more, right? Sage code running on: https://sagecell.sagemath.org/
Code:
p = 0xfffffffffffffffffffffffffffffffffffffffeffffee37
K = GF(p)
a = K(0x000000000000000000000000000000000000000000000000)
b = K(0x000000000000000000000000000000000000000000000003)
E = EllipticCurve(K, (a, b))
G = E(0xdb4ff10ec057e9ae26b07d0280b7f4341da5d1b1eae06c7d, 0x9b2f2f6d9c5628a7844163d015be86344082aa88d95e2f9d)
E.set_order(0xfffffffffffffffffffffffe26f2fc170f69466a74defd8d * 0x1)
d = 0x7fffffffffffffffffffffff13797e0b87b4a3353a6f7ec7
P = d * G
print(hex(P[0]),hex(P[1]))
Standard output:
Code:
0x554123b78ce563f89a0ed9414f5aa28ad0d96d6795f9c66 0x90755fc93ea4b13027fc6c8f337d92c6d00090fad0e8b2c6
However, it uses b=3, which means y^2=x^3+3. And then, you can easily notice, that x=1, y=2 meets that equation perfectly:
Code:
p = 0xfffffffffffffffffffffffffffffffffffffffeffffee37
K = GF(p)
a = K(0x000000000000000000000000000000000000000000000000)
b = K(0x000000000000000000000000000000000000000000000003)
E = EllipticCurve(K, (a, b))
G = E(0xfffffffffffffffffffffffffffffffffffffffeffffee2, 0x33ffffffffffffffffffffffffffffffffffffffcbfffc63)
E.set_order(0xfffffffffffffffffffffffe26f2fc170f69466a74defd8d * 0x1)
d = 0x7fffffffffffffffffffffff13797e0b87b4a3353a6f7ec7
P = d * G
print(hex(P[0]),hex(P[1]))
Standard output:
Code:
0x1 0x2
Also, a different example: you have secp256k1, which uses y^2=x^3+7. It is a huge, 256-bit curve. However, if you just slightly change your b-value, then you can easily get some small coordinates, even if p-value and n-value will stay identical. For example, when you have y^2=x^3+37, then x=3, y=8 matches that equation. See:
Code:
p = 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f
K = GF(p)
a = K(0x000000000000000000000000000000000000000000000000)
b = K(0x000000000000000000000000000000000000000000000025)
E = EllipticCurve(K, (a, b))
G = E(0x88ffffffffffffffffffffffffffffffffffffffffffffffffffffff76fffdf2, 0xc8cfffffffffffffffffffffffffffffffffffffffffffffffffffff372ffd04)
E.set_order(0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141 * 0x1)
d = 0x7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a1
P = d * G
print(hex(P[0]),hex(P[1]))
Standard output:
Code:
0x3 0x8
See? You have the same p-value and n-value. Only the generator and b-value is different. And on this huge, 256-bit curve, you still have a point with small coordinates, like (3,8), just because of the curve equation.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!