#Who should be signing transactions?

11 messages · Page 1 of 1 (latest)

shrewd sonnet
unique wedge
#

Depends what do you update and authorization for each.

When you send a tx you need the signature from the account who pay the fee.

For update accounts it can be the owner of account if you use createSigned.

For smartcontract data update, if you define signature for permission, you need the private key of smartcontract

shrewd sonnet
#

right.
the first example in the link is for deploying, so I understand why the deployer private key is provided. but why is the app's private key provided?
the second example is an update, so I understand why the sender signs it,but I don't understand what the second signer key even is (what's the difference between basicTreeZkAppPrivateKey and zkAppPrivateKey?) or why it's needed.

deft finch
halcyon lake
#

i think because you’re both deploying the app and paying for the deployment with another key

shrewd sonnet
unique wedge
#

In one of my contract I use signature to store merkle proof

sick owl