removed cargo-cult check for input index in signature_hash_for_input