filecoin-project / ec-gpu

OpenCL code generator for finite-field arithmetic over arbitrary prime fields

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use methods in "G1Affine" by the <G as PrimeCurveAffine>::Curve?

huapengcheng opened this issue · comments

I want to transform the result of the function "multiexp" in gpu from the form of "::Curve" to "&[u8]".I want to use function "to_uncompressed" and "from_uncompressed".But these methods are in "G1Projective" and I can not use them in a "::Curve" .
Please help me with this!
image

It seems like you'd need to create your own helper functions that transform a Curve into bytes.