Is it meanwhile possible to check the public key of an account name on contract level? (Not with Cleos)

Example: The contract contains some public keys (not the account names). If a user performs a function in the contract, the contract should check if the user name belongs to one of the keys.

1 Answer 1


The only way is by using recover_key(), assert_recover_key() or assert_recover_key2() while passing an additional signature and digest to the action, as described here:

recover_key in contract

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.