I need the ability to exchange assets between two addresses that are in wallets on different nodes in an automatic way, how can this be done?
i.e: I can issue preparelockunspent, and createrawexchange which outputs some hexdata on one node, but then that data needs to be available to the appropriate nodes, and there is no way of knowing the node that an address belongs to. Additionally, nodes may not have the public keys of addresses on other nodes to do any form of encryption.
Question 1: When I create an exchange can I specify the partner address(es)? so that ONLY the addresses specified can sign and complete the transactions without creating a multisig address?
Question 2: Is it secure to store this hexdata on a stream? perhaps using a key of the destination address
Question 3: if the hexdata is on a stream securely, and each node can find pending exchanges for addresses in their wallet... then how would I go about marking that exchange as 'invalid' after completing the exchange so that it does not need to be read from the stream again?