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 would like to hash arbitrary byte strings to group scalars.
let msg = "Hello world!".as_bytes();let h = ark_bn254::Fr::hash(msg);
Problem Definition
This is relevant for some cryptographic schemes in order to expand the message space to arbitrary byte strings (e.g., Catalano-Fiore vector commitments, page 8, footnote 8).
Proposal
Introduce an API for hashing bytes to scalars / prime field elements as described above.
(If this is already implemented, I would be happy to get a pointer into the right direction.)
For Admin Use
Not duplicate issue
Appropriate labels applied
Appropriate contributors tagged
Contributor assigned/self-assigned
The text was updated successfully, but these errors were encountered:
Arkworks always provides try-n-increment, which always works but kinda sucks. You likely want #643 or at least its component 15fc1a5 I need to pull that PR into some smaller parts though.
Summary
I would like to hash arbitrary byte strings to group scalars.
Problem Definition
This is relevant for some cryptographic schemes in order to expand the message space to arbitrary byte strings (e.g., Catalano-Fiore vector commitments, page 8, footnote 8).
Proposal
Introduce an API for hashing bytes to scalars / prime field elements as described above.
(If this is already implemented, I would be happy to get a pointer into the right direction.)
For Admin Use
The text was updated successfully, but these errors were encountered: