Hello,
I want to use LogicSig to make an atomic swap between Alice and any other person which gets the LogicSig of Alice, and I want the LogicSig to be used at most once.
Let’s call the other person Bob, the process would look like so :
- Alice creates the LogicSig whose logic enforces the transactions she wants in the group
- Bob happens to get the LogicSig (Alice does not know Bob) and he agrees with the atomic swap that Alice wants
- Bob creates the 2 transactions from Alice to Bob and from Bob to Alice and set the group id
- Bob creates the LogicSigTransaction with the transaction from Alice to Bob
- Bob sends the transactions to the network
My question is : is there a way to make the LogicSig usable at most once ?
If not, is there a trick in my specific case described here that could make the LogicSig to be used in at most one atomic swap (without using a statefull contract) ?
