#this.sender vs this.source

2 messages · Page 1 of 1 (latest)

silver stratus
#

Is it possible to implement a source instead of just a sender?

Basically we would need to access two different things:

  • who sent the original transaction (source)
  • who invoked the last method in the 'transaction chain' (sender)

Is this even possible / enforcable / provable with how account updates are composed?

#

basically i'm trying to verify 'who' is calling the token holder, and trying to limit that only the real zkapp (not just the holder under the same address) can call the holder's methods.

This probably sounds like a use case for manager/approval like with the tokens themselves, but unsure yet how that would work with multiple managers - probably wouldnt?