Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Prepare transaction offline with seed, send prepared tx to node without needing to invoke seed #228

Open
@jo7399

Description

@jo7399

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:

  1. The buyer needs to invoke an API to prepare_transfer which I want to avoid.
  2. 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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions