raiseCallException("Unexpected response to transaction")
# Send each operation to the device.
# The response to the last message should be a StellarSignedTx
foropinparsed["operations"]:
resp=self.call(op)
# Signing loop works as follows:
#
# 1. Start with tx (header information for the transaction) and operations (an array of operation protobuf messagess)
# 2. Send the tx header to the device
# 3. Receive a StellarTxOpRequest message
# 4. Send operations one by one until all operations have been sent. If there are more operations to sign, the device will send a StellarTxOpRequest message
# 5. The final message received will be StellarSignedTx which is returned from this method