Closed drskalman closed 1 year ago
A while ago I've tried to produce the test vectors for bls12-377 using the script (with adapted parameters) that was used for generation of bls12-381 test vectors. Since there's no other standard I know of, we might as well stick to these scripts for choosing the WB parameters too (e.g. the zeta, the choice of which is left open as per algorithm). From these preliminary tests I ran, it looks like the zeta generated is different than in this PR. Perhaps it makes more sense to split out the PR for bls12-377 (to be potentially adapted) and bls12-381 (which we can merge directly)? That way we don't have to introduce breaking changes to the parameters of bls12-377 later. I can try to prepare the corresponding parameters next week.
For reference, this code is being used to generate test vectors. I'd probably maintain a fork with bls12-377 scripts.
@drskalman, @mmagician, @Pratyush, could you add my hash function to arkworks ? It is faster than Wahby-Boneh, especially for BLS12-377.
@mmagician
We can add that script either to this repo, or to a separate h2c repo in arkworks.
@dishport I think that would be the focus of a separate PR, as it requires support first in arkworks-rs/algebra
@dishport as @Pratyush said, I think the first step is address this issue https://github.com/zhenfeizhang/indifferentiable-hashing/issues/3 and then we can do a PR to algebra.
I manually checked that the h2c
tests are executed:
...
test curves::tests::g1_h2c::test_h2c ... ok
...
@dishport as @Pratyush said, I think the first step is address this issue zhenfeizhang/indifferentiable-hashing#3 and then we can do a PR to algebra.
@drskalman, @Pratyush, this issue was succesfully addressed. Could you now add the new hash function to arkworks ?
Description
closes https://github.com/arkworks-rs/curves/issues/18
Implementation Wahby - Bonneh Hash to curve for BLS12-377 and BLS12-381. The implementation of BLS12-381 is the same as the one found in the algebra/test-curves. The PR has been reviewed previously by @Pratyush @mmagician here
Pending
section inCHANGELOG.md
Files changed
in the Github PR explorer