Update envelope normalization
The envelope normalization function ensures that every transaction has a signature, but not that every signature has a transaction. A signature does not need a transaction if it is already in the database, but ensuring there is one leads to less edge cases in the code.
So, update the normalization function to add a placeholder Remote transaction for any signatures that do not come with a transaction.