bitmask-core icon indicating copy to clipboard operation
bitmask-core copied to clipboard

Transfer to self

Open cryptoquick opened this issue 1 year ago • 2 comments

Right now, it's not possible to create a transfer back to yourself, because the receive UTXO is the same as the spend UTXO. However, if we can detect that the transfer is being made back to your spend UTXO, the wallet should select the change UTXO instead.

This is something I'm pretty sure at least some of our users will try doing, just to test RGB out, and it would also be useful in testing, especially if asset import isn't working.

cryptoquick avatar Jul 11 '23 15:07 cryptoquick

Right now, it's not possible to create a transfer back to yourself, because the receive UTXO is the same as the spend UTXO. However, if we can detect that the transfer is being made back to your spend UTXO, the wallet should select the change UTXO instead.

This is something I'm pretty sure at least some of our users will try doing, just to test RGB out, and it would also be useful in testing, especially if asset import isn't working.

This is simple check, right?

crisdut avatar Nov 02 '23 20:11 crisdut

This actually needs to be updated if we've switched to using the witness method of transfers. It should be much easier to transfer to a new UTXO made in the same transaction as the transfer, so it won't matter if it's being sent to yourself or someone else. It might just need a test to verify that it works.

cryptoquick avatar Nov 02 '23 20:11 cryptoquick