1

What I am trying to do is deploy a contract on the behalf of the user, by getting them to sign the deployment remotely.

I have been informed that if I get a arbitrary signature on the setcode, I can then use that to do the deployment.

Only problem is I don't know what to do with the arbitrary signature to sign the contract deployment on my end.

Does anyone know how to use a signature like this:

SIG_K1_KWjDByvVTYCn5AXPqWhH5YGGugCvb6vnBXSvPH8uD5Lkpdnyaop4HAFuZhE7uooRTYBHVGgEMZ8BJ2TgHjEADu2EkPk4C2

To then sign a contract deployment, or to sign a regular action?

Like you would with cleos (cleos set contract dir wast wasm -p ACCOUNT)

  • 1
    how did you get them to sign the deployment remotely ? what data structure did you send to the user ? – Reason Lee Jan 22 at 2:58
  • Sent from a node.js server as a Buffer of the local wasm file. – DUDE139 Feb 22 at 9:47
  • You want to use setAbi and setCode in eosjs rather than arbitrary sig – DUDE139 Feb 22 at 9:48

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.