3

If I send multiple zero value transactions from address A, containing several messages to broker a deal, is it safe to (re)use that address later on for a payment (to settle the deal)?

mike
  • 251
  • 1
  • 7
  • In my opinion it should be, since the the zero value transaction don't get signed. – mike Sep 11 '18 at 13:11
  • 1
    zero value transactions do not have a from – mihi Sep 11 '18 at 19:58
  • @mihi They don't need a from. But at least in devnet it's posible to set a from address. The application I'm developing kind of relies on the fact that the entity messaging is also the one paying later on. – mike Sep 12 '18 at 08:22
  • 1
    it depends on what libs you are using. When you are using devnet, can you post a transaction hash or link to devnet.thetangle.org? I'm curious where your library is hiding the "from" address and "to" address in a transaction that only has one address field :) – mihi Sep 12 '18 at 18:52
  • Oh, there is only one address!? Maybe I'm misusing the to address as from address. Here's a transaction. – mike Sep 12 '18 at 19:04
  • 1
    The corresponding bundle shows it as an output address :) – mihi Sep 12 '18 at 20:08
  • Okay, I've been using it wrong then. But I have no need for a to address, since I use tags for message relaying. So I guess, I can leave it like that :D Thank you! – mike Sep 12 '18 at 20:14

1 Answers1

2

Zero value transactions don't need to be signed but you can sign them, either by mistake or by using a buggy library and in this case: it is unsafe to re-use the same address.

I can't find the reference right now, but I think that a bug like that was once reported with js library. (it was probably with the old js library)

ben75
  • 5,344
  • 11
  • 32