gdanezis / bplib

A bilinear pairing library for petlib
35 stars 13 forks source link

Why not exists method BpGroup.hashG2()? #9

Open alexkazancew opened 5 years ago

alexkazancew commented 5 years ago

Hello. I`am sorry for my probably stupid question. Why method BpGroup.hashG1 is exist for hashing message but method BpGroup.hashG2 not exist? What is reason for it? Thanks!

gdanezis commented 5 years ago

Because hashing to G1 is easy to implement, whereas I am not certain how to do this securely for G2 (or even if that is possible?). You are most welcome to contribute a patch, with a clear reference on why the implemented technique is secure.