EspressoSystems / jellyfish

A Rust Implementation of the PLONK ZKP System and Extensions
https://jellyfish.docs.espressosys.com
MIT License
405 stars 105 forks source link

implement hash to group function #19

Closed zhenfeizhang closed 1 year ago

zhenfeizhang commented 2 years ago

We have not encountered a case where hash to group is necessary. So this is a low priority for now.

We may consider implement

alxiong commented 2 years ago

now arkworks already have HashToCurve implementation, correct? should we close this? @zhenfeizhang

tessico commented 1 year ago

Should be closed as soon as arkworks v0.4 migration: https://github.com/EspressoSystems/jellyfish/issues/45 is completed.

mrain commented 1 year ago

Shall we close this ticket and create a new one for constant time hash to bn254 curve? cc @alxiong @chancharles92

chancharles92 commented 1 year ago

@alxiong mentioned that arkworks v0.4 already has a hashtogroup implementation. Is it a naive one or something we can reuse?

alxiong commented 1 year ago

Yes, arkwork defined the trait HashToCurve here, and implement it here with flexibility for different hashing and mapping (from field to group) strategies.

I think we can close it for now.

(ofc, if we want constant time in a separate issue/PR, consider building on top of subtle or subtle-ng)