-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about curve parameters #3
Comments
Hello, Bitcoin use the Secp256k1 curve. # Elliptic curve parameters (secp256k1)
P = 2**256 - 2**32 - 977
N = 115792089237316195423570985008687907852837564279074904382605163141518161494337
A = 0
B = 7
Gx = 55066263022277343669578718895168534326250603453777594175500187360389116729240
Gy = 32670510020758816978083085130507043184471273380659243275938904335757337482424
G = (Gx, Gy) |
Added secp256k1 parameters and decreased "N" to lower one to test it but it is only searching can't find any result.
|
@mertgonul N should be the order of the curve in Z_P. It means that you have to reduce P first (with P a prime number) and then you should calculate N such that N is the order of the curve (i.e. G x P = G). |
Hi,
I try to learn and I have to make some connections.
You have in the code below values:
P = 10177
A = 1
B = P-1
G = (1,1)
N = 10331
What should be the values in case of btc when I know the public key, K = (x,y) so I know x and y?
P=115792089237316195423570985008687907853269984665640564039457584007908834671663 ???
A = ???
B = P-1
G = (??,??)
N = ??
Thank you!
The text was updated successfully, but these errors were encountered: