-
Java Bouncycastle has a function to normalise a projective coord.
Is there a way to do that with this lib too? I need to convert this Java code to JS: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Point.fromAffine(point.toAffine()) |
Beta Was this translation helpful? Give feedback.
If you have byte array (or hex) in
sharedSecret
, simply doingPoint.fromHex()
would create normalizedz=1
point.If you have actual Point instance, then yes, your code.