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.
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.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2022-04-10 05:45:51 +0100
Seen: 975 times
Last updated: Apr 10 '22
Generate a list/table for cardinality of elliptic curve
Elliptic curve over binary field in Sage
How to correctly load and use a pari/gp script in sage notebook [closed]
computing order of elliptic curves over binary field
Elliptic curves over function fields
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.