[cli_wallet] Signing with an account authority is currently not supported
3335364ms wallet.cpp:648 operator() ] Tried to access authority for account tst-foreign-auth.
3335364ms wallet.cpp:649 operator() ] Is it possible you are using an account authority? Signing with an account authority is currently not supported.
This bug lack of feature is with us for quite some time, it's especially painful when using tinman powered testnet (every account has extra account authority added) but also in mainnet use case scenario such as having a posting authority from other apps makes it impossible to vote for post using cli_wallet.
Steps for testing / reproducing that might be useful for beginners working on this issue:
- In your testnet, use
cli_wallet
to create test account:tst-alice
withkey1
:
create_account_with_keys initminer tst-alice "" TST7kvu8tJdFPxRXBr9bhGXu8cgbLZRyLJXoUbJyYLGUBTPim1NdG TST7kvu8tJdFPxRXBr9bhGXu8cgbLZRyLJXoUbJyYLGUBTPim1NdG TST7kvu8tJdFPxRXBr9bhGXu8cgbLZRyLJXoUbJyYLGUBTPim1NdG TST7kvu8tJdFPxRXBr9bhGXu8cgbLZRyLJXoUbJyYLGUBTPim1NdG true
- Make sure that account has some funds and enough RC:
transfer initminer tst-alice "1.000 TESTS" "test transfer" true
transfer_to_vesting initminer tst-alice "1.000 TESTS" true
- Create account
tst-foreign-auth
withkey2
:
create_account_with_keys initminer tst-foreign-auth "" TST5israys4kt6RTE6xB5wfYLVB38ujB5bBZ8CiaCTo3F8idFGexu TST5israys4kt6RTE6xB5wfYLVB38ujB5bBZ8CiaCTo3F8idFGexu TST5israys4kt6RTE6xB5wfYLVB38ujB5bBZ8CiaCTo3F8idFGexu TST5israys4kt6RTE6xB5wfYLVB38ujB5bBZ8CiaCTo3F8idFGexu true
- Import
key1
:
import_key 5JmitAWXUSh5VjXq2xCmiBexRyZUfBkb1ZTui9DofAzF6pTc8Bc
- Confirm, that
tst-alice
is able to transfer:
transfer tst-alice initminer "0.001 TESTS" "this will work" true
- Add
tst-foreign-auth
as active authority fortst-alice
:
update_account_auth_account tst-alice active tst-foreign-auth 1 true
- Import
key2
(fortst-foreign-auth
):
import_key 5KDWAtFq4k5eFw6fs4wM5zq11HqrnsQpZi5xdBG1VmzD6PSfyZp
- You can still transfer:
transfer tst-alice initminer "0.001 TESTS" "this will work" true
but there's a failed atttempt
3335364ms wallet.cpp:648 operator() ] Tried to access authority for account tst-foreign-auth.
3335364ms wallet.cpp:649 operator() ] Is it possible you are using an account authority? Signing with an account authority is currently not supported.
-
Exit wallet, and start with a new, empty one (
-w testwallet-new
) -
Import
key2
(fortst-foreign-auth
):
import_key 5KDWAtFq4k5eFw6fs4wM5zq11HqrnsQpZi5xdBG1VmzD6PSfyZp
- Try again:
transfer tst-alice initminer "0.001 TESTS" "this will fail" true
3322994ms wallet.cpp:788 sign_and_broadcast_t ] Caught exception while broadcasting tx 6f047333e75e323974c44b7e50c9bfb0699f0330: 0 exception: unspecified
missing required active authority:Missing Active Authority tst-alice
{"error":"missing required active authority:Missing Active Authority tst-alice","data":{"id":6,"error":{"code":-32000,"message":"missing required active authority:Missing Active Authority tst-alice","data":{"code":3010000,"name":"tx_missing_active_auth","message":"missing required active authority","stack":[{"context":{"level":"error","file":"transaction_util.hpp","line":88,"method":"verify_authority","hostname":"","timestamp":"2021-05-03T09:55:22"},"format":"Missing Active Authority ${id}","data":{"id":"tst-alice","auth":{"weight_threshold":1,"account_auths":[["tst-foreign-auth",1]],"key_auths":[["TST7QG6iCzaxMX5qxxXUM21cTLuA43bTafLULgFNqvpY6ZnrpC4c8",1]]},"owner":{"weight_threshold":1,"account_auths":[],"key_auths":[["TST7QG6iCzaxMX5qxxXUM21cTLuA43bTafLULgFNqvpY6ZnrpC4c8",1]]}}},{"context":{"level":"warn","file":"transaction_util.hpp","line":103,"method":"verify_authority","hostname":"","timestamp":"2021-05-03T09:55:22"},"format":"","data":{"auth_containers":[{"type":"transfer_operation","value":{"from":"tst-alice","to":"initminer","amount":{"amount":"1","precision":3,"nai":"@@000000021"},"memo":"this will fail"}}],"sigs":[]}},{"context":{"level":"warn","file":"transaction.cpp","line":232,"method":"verify_authority","hostname":"","timestamp":"2021-05-03T09:55:22"},"format":"","data":{"*this":{"ref_block_num":49906,"ref_block_prefix":2456313276,"expiration":"2021-05-03T09:55:51","operations":[{"type":"transfer_operation","value":{"from":"tst-alice","to":"initminer","amount":{"amount":"1","precision":3,"nai":"@@000000021"},"memo":"this will fail"}}],"extensions":[],"signatures":[]}}},{"context":{"level":"warn","file":"database.cpp","line":4343,"method":"_apply_transaction","hostname":"","timestamp":"2021-05-03T09:55:22"},"format":"","data":{"trx":{"ref_block_num":49906,"ref_block_prefix":2456313276,"expiration":"2021-05-03T09:55:51","operations":[{"type":"transfer_operation","value":{"from":"tst-alice","to":"initminer","amount":{"amount":"1","precision":3,"nai":"@@000000021"},"memo":"this will fail"}}],"extensions":[],"signatures":[]}}},{"context":{"level":"warn","file":"database.cpp","line":1162,"method":"push_transaction","hostname":"","timestamp":"2021-05-03T09:55:22"},"format":"","data":{"trx":{"ref_block_num":49906,"ref_block_prefix":2456313276,"expiration":"2021-05-03T09:55:51","operations":[{"type":"transfer_operation","value":{"from":"tst-alice","to":"initminer","amount":{"amount":"1","precision":3,"nai":"@@000000021"},"memo":"this will fail"}}],"extensions":[],"signatures":[]}}}]}}}}
state.cpp:38 handle_reply