Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Provided keys, permissions, and delays do not satisfy declared authorizations #5541

Closed
niutaifan opened this issue Sep 5, 2018 · 2 comments

Comments

@niutaifan
Copy link

Here's my wallet, and the key inside
[root@localhost eos]# cleos wallet list
Wallets:
[
"default *"
]
[root@localhost eos]# cleos wallet keys
[
"EOS5qUB3vjRiUSy5oaE6xAsFrpN9u9GkfRnGFrky36Ka1rtgW59Uh",
"EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV",
"EOS6arYbaSBys9KT9ruxWi4ZuCvbcVCVb1nwo9xFFbj9nSdmMhsMP",
"EOS6x68FuVAk9khoHv995KEm7Xz9xeKA9pQzwxAa8t7789wTLNaLA",
"EOS8AcH6tJpyykGENJyjDwJrQdmFPvrs1Uo35whLVGP7Q5MT2rpBe"
]

This is the parameter I requested at http://192.168.1.204:8900/v1/wallet/sign_transaction
[
{
"ref_block_prefix": "1655714388",
"scope": [
"baoeoswallet",
"eosio"
],
"messages": [
{
"authorization": [
{
"permission": "active",
"account": "baoeoswallet"
}
],
"code": "eosio.token",
"data": "90558c8663aaa8390000000000ea3055e80300000000000004454f53000000000568656c6c6f",
"type": "transfer"
}
],
"expiration": "2018-09-05T09:34:47",
"ref_block_num": "14832523",
"signatures": [

],
"read_scope": [
  
]

},
[
"EOS5qUB3vjRiUSy5oaE6xAsFrpN9u9GkfRnGFrky36Ka1rtgW59Uh"
],
""
]

This is the parameter I requested at http://192.168.1.204:8888/v1/chain/push_transaction
{
"packed_trx": "94a38f5b9052bd553242000000000100a6823403ea3055000000572d3ccdcd0190558c8663aaa83900000000a8ed32322690558c8663aaa8390000000000ea3055e80300000000000004454f53000000000568656c6c6f000000",
"packed_context_free_data": "0",
"compression": "none",
"signatures": [
"SIG_K1_Kh9pQ6K8Ng3cW1YNrqTm8f1nVznGfHhxk1pxE2QgCWKXTjETofL1n2125PZyTRg7kfqC3EFNAYHSaL4YNq8ZgKvauPfRR9"
]
}

But I got an exception
2018-09-05T09:37:33.554 thread-0 http_plugin.cpp:474 handle_exception ] Exception Details: 3090003 unsatisfied_authorization: Provided keys, permissions, and delays do not satisfy declared authorizations
transaction declares authority '{"actor":"baoeoswallet","permission":"active"}', but does not have signatures for it under a provided delay of 0 ms, provided permissions [], and provided keys ["EOS6G42UQcCjR4p5SqZXoV29WDR1AE9bB7LJitFgawQrnRSgZFVJa"]
{"auth":{"actor":"baoeoswallet","permission":"active"},"provided_delay":0,"provided_permissions":[],"provided_keys":["EOS6G42UQcCjR4p5SqZXoV29WDR1AE9bB7LJitFgawQrnRSgZFVJa"],"delay_max_limit_ms":3888000000}
thread-0 authorization_manager.cpp:411 check_authorization

I confirm that the private key of my account and eosio has been imported, the wallet has been unlocked, and the public key of my account has been used to sign. I also loaded the BIOS contract, but I still got the exception. I don't know how to fix it. Want help.

@niutaifan
Copy link
Author

image

@taokayan
Copy link
Contributor

taokayan commented Sep 6, 2018

This was fixed in #5461, please checkout the latest version from release/1.2.x

@taokayan taokayan closed this as completed Sep 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants