[WIP] Fix ht interface

Resubmit from #105 onto master
By "known form" I mean something like SHA or so, checksum hashes.

I never said that it is not common for libraries to ask the user for a hash function!