Generates a hash for this. If Hook defines hookToHash, the call
immediately returns hook.hookToHash(payload). If Hook does not
implement hookToHash, but it has state, a hash will be generated for
the Hook using the built-in function and it will be xored with the
hash of the payload.
Generates a hash for this. If Hook defines hookToHash, the call immediately returns hook.hookToHash(payload). If Hook does not implement hookToHash, but it has state, a hash will be generated for the Hook using the built-in function and it will be xored with the hash of the payload.