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
Hello, blst exposes blst_map_to_g1 and blst_map_to_g2. These APIs are useful in the case when a user of this library wants to do hash-to-curve using different XMD and XOF based hashing of the messages. It would be nice if wrapper of these APIs are added in blstrs.
Below is the link for an implementation where I have copied hash-to-curve generic traits from zkcrypto/bls12_381 and implemented the wrappers under a feature flag. I have used zkcrypto/bls12_381's test cases too(test vectors are from hash_to_curve spec draft 10) and the tests pass.
Hello,
blst
exposesblst_map_to_g1
andblst_map_to_g2
. These APIs are useful in the case when a user of this library wants to do hash-to-curve using different XMD and XOF based hashing of the messages. It would be nice if wrapper of these APIs are added inblstrs
.Below is the link for an implementation where I have copied hash-to-curve generic traits from
zkcrypto/bls12_381
and implemented the wrappers under a feature flag. I have usedzkcrypto/bls12_381
's test cases too(test vectors are from hash_to_curve spec draft 10) and the tests pass.Implementation: master...dev0x1:blstrs:gaurav/h2c
To test,
cargo test --features h2c_generic_hash --features alloc
Thanks,
The text was updated successfully, but these errors were encountered: