draft outline of hash func

Signed-off-by: Edward O'Callaghan <victoredwardocallaghan@gmail.com>