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/secp192k1See? 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/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:
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:
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:
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:
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:
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.