filecoin-project / ec-gpu

OpenCL code generator for finite-field arithmetic over arbitrary prime fields
Other
91 stars 61 forks source link

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

Closed huapengcheng closed 1 year ago

huapengcheng commented 2 years ago

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

vmx commented 2 years ago

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