0

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.

0

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

|improve this answer|||||

Your Answer

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

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