From my understanding, the hash that is encrypted in the Signature by the private key, should match the hash of the payload. I have written a small node program to test out that