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:


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 '19 at 2:58
  • Sent from a node.js server as a Buffer of the local wasm file.
    – DUDE139
    Feb 22 '19 at 9:47
  • You want to use setAbi and setCode in eosjs rather than arbitrary sig
    – DUDE139
    Feb 22 '19 at 9:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.