Expose the getHash function

It is sometimes useful for the application to check the current hash. The getHash function is simple enough to replicate it in application code, but since it is already there, why not reuse it?