I wonder if anyone experienced a similar problem and managed to resolve it.
I'm testing the "dice" contract on my local tesnet. I've setup up all necessary contracts and could deposit assets to the "dice" contract, but when I try to withdraw funds, that is, invoke "withdraw" action, I get the following error:
Error 3090003: provided keys, permissions, and delays do not satisfy declared authorizations
Ensure that you have the related private keys inside your wallet and your wallet is unlocked.
And here are messages from nodeos:
2757860ms thread-0 http_plugin.cpp:405 handle_exception ] FC Exception encountered while processing chain.push_transaction
2757860ms thread-0 http_plugin.cpp:406 handle_exception ] Exception Details: 3090003 unsatisfied_authorization: provided keys, permissions, and delays do not satisfy declared authorizations
transaction declares authority '{"actor":"dice","permission":"active"}', but does not have signatures for it under a provided delay of 0 ms, provided permissions [{"actor":"dice","permission":"eosio.code"}], and provided keys []
{"auth":{"actor":"dice","permission":"active"},"provided_delay":0,"provided_permissions":[{"actor":"dice","permission":"eosio.code"}],"provided_keys":[],"delay_max_limit_ms":3888000000}
thread-0 authorization_manager.cpp:409 check_authorization
{"_pending_console_output.str()":""}
thread-0 apply_context.cpp:62 exec_one
setup_dice.txt - script to setup "dice" contract (all keys are uploaded to the wallet and it is unlocked) I'm testing this on the EOS v1.0.5, but the same was for v1.0.2
I'm not sure if this is an EOS core problem, or "dice" contract has incorrect implementation or its description here is outdated.
There is also issue #4166 I opened on the GitHub describing this problem.
UPDATE: This problem was solved according to this answer on GitHub