To save on us building a hash map with which to check the inputs, instead I just ensure that the order of the inputs is the same as it is in the serialized transaction.