To help with the crypto methods, you can use https://github.com/decentralisedkev/Poseidon-SDK You can see an implementation with it here: https://github.com/decentralisedkev/Poseidon---Client Currently refactoring the code on a cleanup branch.