Points on elliptic curve [closed]

I am making a program using the library cryptopp using curve secp521, in which at the end of that program I get n*Point Because I am writing that program I know that what is the value of 'n'. So, I can verify it. Is there a way in which if some one else, third person when gets that result nP can find out that what number was multiplied with that point. And he knows curve and all other parameters of curve

Is there any function in cryptopp that can perform this task?

I can do this thing in small curve whose q is lets say 19.

In case of this curve like secp, I can't even find out their q i. e. Cyclic group. So how can I implement it in a program .

Or is it possible to implement it by taking a subgroup of some curve? If it is possible can you please guide me.

closed as unclear what you're asking by kelalaka, AleksanderRas, Squeamish Ossifrage, Maeher, yyyyyyySep 12 at 10:09

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• Possible duplicate of Summarize the mathematical problem at the heart of breaking a Curve25519 public key – kelalaka Aug 24 at 23:02
• The q is either the order of the curve or the prime (Q can even be the public point in some systems, depending on the definition). It seems it is the order in your question. However, the order is part of the domain parameters and should be considered public knowledge; there is certainly no reason to keep it secret. – Maarten Bodewes Aug 25 at 15:36

We most certainly hope that it is infeasible, given the points $$P$$ and $$nP$$, to recover the value $$n$$. This is the ECDLog problem, and essentially all of Elliptic Curve Cryptography is broken if this assumption is not true.