function proto changed to fetch hmac from node