static ECP2 transformFromProto ( Idemix . ECP2 w ) { byte [ ] valuexa = w . getXa ( ) . toByteArray ( ) ; byte [ ] valuexb = w . getXb ( ) . toByteArray ( ) ; byte [ ] valueya = w . getYa ( ) . toByteArray ( ) ; byte [ ] valueyb = w . getYb ( ) . toByteArray ( ) ; FP2 valuex = new FP2 ( BIG . fromBytes ( valuexa ) , BIG . fromBytes ( valuexb ) ) ; FP2 valuey = new FP2 ( BIG . fromBytes ( valueya ) , BIG . fromBytes ( valueyb ) ) ; return new ECP2 ( valuex , valuey ) ; }
Returns an amcl . BN256 . ECP2 on input of an ECP2 protobuf object .