Simple example of how to use Arkworks hash to curve functionality for BLS12-381 and Bandersnatch curves.
Note that creates.io patches are only needed for Bandersnatch as Arkworks with Elligator2 map has not been released to create.io as of writing this code.