Bls12-381 precompiles, where is hash_to_curve

Using the new precompiles for bls12-381 one thing missing is when a DST is used following the eth2 specced hash_to_curve function. Is anyone aware of a solidity implementation of this or how to go about verifying a signature produced?

You can use the solady library’s BLS module. For a working example, you can check out this repo, especially the tests. The convert.py file can be used to convert a signature into its upper and lower limbs that can be used directly in Solidity.

1 Like