The hash of a transaction is computed by serializing it and then hashing that. How are transactions serialized?
Specifically, knowing that this is the data structure of a transaction, what fields are included in the serialized transaction, and in what order?