Function to generate hashed list from token list
Merge https://github.com/animan123/watson