You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to make that something whose struct is "::Curve" can be transmitted between differernt processes.But now I just be able to transmitted some "double" things.It may be able to transmit some "u64" things.So I want to get all "u64" in "::Curve".And then I can use them to form a "G1Projective" and transform it to get a "::Curve".Why I choose "G1Projective" is that I printf some "::Curve" and get following results:
The text was updated successfully, but these errors were encountered:
The internal representation of a Group or Curve implementation is not something that gets exposed by the group traits. If you need to move an arbitrary generic type that implements Curve between processes, you should encode it to bytes with the GroupEncoding implementation, pass that encoding between processes, and then parse it back into the type. If you need to pass a point over in a different encoding, you will need to be aware of the concrete type of that point, which means you would be using APIs provided by the concrete implementation, not the group crate.
Side-note: if you know that you are dealing with specifically elliptic curve points, then the APIs we are thinking about for #30 may be an alternative. But there you would still only get generic field elements that you'd then encode to bytes, so you're generally better off just encoding the points directly with GroupEncoding.
I want to make that something whose struct is "::Curve" can be transmitted between differernt processes.But now I just be able to transmitted some "double" things.It may be able to transmit some "u64" things.So I want to get all "u64" in "::Curve".And then I can use them to form a "G1Projective" and transform it to get a "::Curve".Why I choose "G1Projective" is that I printf some "::Curve" and get following results:

The text was updated successfully, but these errors were encountered: