There was a problem with the hash function. Fixed it for now. Planning to use Contor pairing function now.