How to find modulo(%) of secp256k1 publick key ?
How to find modulo(%) of secp256k1 publick key ? Or modulo of publick key belong to enother curve ?
Any methods are welcome.
Best Regards.
I'm not completely sure what is "modulo(%)" of a public key, but my best guess is that you ask about the order of the points on the elliptic curve. It is returned by the method .order(). For secp256k1 it can be obtained as
p = ZZ('0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F')
E = EllipticCurve( GF(p), [0, 7] )
n = E.order()
print('decimal representation:', n)
print('hexadecimal representation:', n.hex())
This matches the curve parameters given on page 9 in Standards for an efficient cryptography.
Asked: 2022-04-10 05:45:51 +0100
Seen: 1,058 times
Last updated: Apr 10 '22
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.