Prepare transaction offline with seed, send prepared tx to node without needing to invoke seed #228
Description
Currently working on a demo where i have a buyer and seller side. They communicate with http requests and whilst the buyer transfers to the sender the thought is that the buyer shouldn't need to make use of API calls whilst holding the seed for the funds he whishes to transfer. In Pyota I thought of creating a transaction with prepare_transfer on the buyer side, which is sent to the seller who then invokes send_trytes. But I have encountered the following issues:
- The buyer needs to invoke an API to prepare_transfer which I want to avoid.
- The seller needs to buyer's seed to attach the transaction to the tangle (i.e. to send_trytes, because for a value transaction the api needs the seed as an input) which is obvisouly undesireable. I guess one faces the same problem when using different functions/combinations of different functions.
Ideally I would like the buyer to propose/prepare a transfer with his/her seed and then the transfer is sent to the seller who sends the transaction to a node without requiring access to the buyers seed. From what I understand this would be possible in js: https://docs.iota.org/docs/getting-started/0.1/tutorials/send-iota-tokens
Any ideas how I can do this in python?
Thanks for anyone's help in advance. I'm very new to IOTA so I may well have overlooked something very basic