static Idemix . ECP transformToProto ( ECP w ) { byte [ ] valueX = new byte [ IdemixUtils . FIELD_BYTES ] ; byte [ ] valueY = new byte [ IdemixUtils . FIELD_BYTES ] ; w . getX ( ) . toBytes ( valueX ) ; w . getY ( ) . toBytes ( valueY ) ; return Idemix . ECP . newBuilder ( ) . setX ( ByteString . copyFrom ( valueX ) ) . setY ( ByteString . copyFrom ( valueY ) ) . build ( ) ; }
Converts an amcl . BN256 . ECP into an ECP protobuf object .