0

I'm trying to create new account through a smart contract and i need to provide a public key to the inline action. How can i generate a public key dynamically through my smart contract? Is there any function to do this?

  • This does not make sense. If you generate a public key in the contract how do you want to manage the private key? – friedger Nov 5 '18 at 14:21
  • Probably you are right. But i want a UI event to trigger a smart contract which will declare an account, that only the smart contract can manage. But maybe my logic have some flaws. – stan Nov 6 '18 at 15:25
  • The contract is public and so will be a newly created account. Could you please explain your use case? – friedger Nov 7 '18 at 13:58

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.