Closed CluEleSsUK closed 3 months ago
H2CPoint is just an interface to which projectivepoint conforms. there is no separate H2CPoint class. so what you’re doing in this code is converting projective point to projective point.
If a simple solution doesn’t work, perhaps there is a type error somewhere. You can use “as unknown as any” as workaround and see if that works (if using typescript)
I was wondering if there's a convenient way to turn an
H2CPoint
into aProjectivePoint
for pairing?The following works but requires a transition to affine in between: