For example, I have deployed an ink! contract via polkadot apps.

Is it possible to obtain the private key of the contract account and sign an arbitrary message?

  • 1
    I think contract accounts are randomly generated by the chain and therefore have no known private keys.
    – kianenigma
    Commented Feb 20, 2023 at 12:18
  • Added my comment to a follow up question
    – forgetso
    Commented Feb 22, 2023 at 8:59

1 Answer 1


It's impossible to obtain the private key of a contract account.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.