Validates that the preimage is correct for the given hash and public key hash. The public key hash must be a signatory of the transaction.