-
Is it possible to get the parameters of the montgomery curve through the |
Beta Was this translation helpful? Give feedback.
Answered by
paulmillr
Nov 1, 2024
Replies: 2 comments 5 replies
-
Not currently. Which params do you need and why? |
Beta Was this translation helpful? Give feedback.
4 replies
-
Also possibly off topic, but how do I take a negative number to degree 2 (over x448 prime field)? In sage i got: p = 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffffffffffffffffffffffffffffffffffffffffffffffffffff
K = GF(p)
a = K(0x01)
print(-a^2)
# 726838724295606890549323807888004534353641360687318060281490199180612328166730772686396383698676545930088884461843637361053498018365438 in noble: const f = Field(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffedn)
const a = f.create(0x01)
console.log(f.pow(-a, 2n));
// 1n |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We only have two montgomery curves for now. Just hardcode the params. We won't have any generic methods for the near future, because there is no point to implement them. For example, there are no specs, no real-world usage, etc.