新手问答 Error 3030002: signatures do not satisfy declared authorizations

Surou · 2018年04月27日 · 最后由 lome 回复于 2018年04月28日 · 7324 次阅读

问题与此相同
https://github.com/EOSIO/eos/issues/1877

操作如下

root@surou-C-H110M-K-Pro:/home/surou/eos# cleos create key
Private key: 5J3aYsnzc5QzbeGxtAkxKmTXBhyXiuKBc4xrLhaUAPU7fsJthbt
Public key: EOS7DERs9oxSzx9oz2Hni6J6ssHExodF28SSa1TLgWDb7at5dCF11
root@surou-C-H110M-K-Pro:/home/surou/eos# cleos create key
Private key: 5JQHWRvbmncJ5p42dCkH1efW7aziJbhoB6AoC5PFP19ZXwZfTM7
Public key: EOS7UaQKtm73kcAPQSfDLgMNxpK1GjcR7NcoUWBjSDpRpLWLwNg2y
root@surou-C-H110M-K-Pro:/home/surou/eos# cleos wallet import 5J3aYsnzc5QzbeGxtAkxKmTXBhyXiuKBc4xrLhaUAPU7fsJthbt
imported private key for: EOS7DERs9oxSzx9oz2Hni6J6ssHExodF28SSa1TLgWDb7at5dCF11
root@surou-C-H110M-K-Pro:/home/surou/eos# cleos wallet import 5JQHWRvbmncJ5p42dCkH1efW7aziJbhoB6AoC5PFP19ZXwZfTM7
imported private key for: EOS7UaQKtm73kcAPQSfDLgMNxpK1GjcR7NcoUWBjSDpRpLWLwNg2y
root@surou-C-H110M-K-Pro:/home/surou/eos# cleos create account eosio dos EOS7DERs9oxSzx9oz2Hni6J6ssHExodF28SSa1TLgWDb7at5dCF11 EOS7UaQKtm73kcAPQSfDLgMNxpK1GjcR7NcoUWBjSDpRpLWLwNg2y
Error 3030002: signatures do not satisfy declared authorizations
Ensure that you have the related private keys inside your wallet and your wallet is unlocked.
Error Details:
transaction declares authority '{"actor":"eosio","permission":"active"}', but does not have signatures for it.

root@surou-C-H110M-K-Pro:/home/surou/eos# cleos wallet list
Wallets:
[
  "default *"
]
root@surou-C-H110M-K-Pro:/home/surou/eos# cleos get account currency
{
  "account_name": "currency",
  "permissions": [{
      "perm_name": "active",
      "parent": "owner",
      "required_auth": {
        "threshold": 1,
        "keys": [{
            "key": "EOS6ePVMSdSkGn4wDMqcCSTSN3GnRgEPxDPEioQQXUkfYxT8jrudg",
            "weight": 1
          }
        ],
        "accounts": []
      }
    },{
      "perm_name": "owner",
      "parent": "",
      "required_auth": {
        "threshold": 1,
        "keys": [{
            "key": "EOS6ePVMSdSkGn4wDMqcCSTSN3GnRgEPxDPEioQQXUkfYxT8jrudg",
            "weight": 1
          }
        ],
        "accounts": []
      }
    }
  ]
}

共收到 8 条回复

这是你本地的网路?

lome 回复

嗯 本地的

Surou 回复

你需要先发布eosio.bios合约

Surou 回复

Ensure that you have the related private keys inside your wallet and your wallet is unlocked,很明显,你的钱包里没有你你所在网络的eosio的私匙。

lome 回复

看了下 https://eosfans.io/topics/265 还是没明白 eosio,他是个帐号?还是eos 预设的?我尝试把 config.ini 中的 private-key 导进钱包了,还是提示此错误

Surou 回复

你如果连接到了我们的测试网络,就没有eosio的权限,因为这个账号是创世账号,有许多的权限,可能会导致有人胡乱更改测试网络状态,所以我们不会开放密匙。如果是本地节点,那你想怎么操作都可以。

lome 回复

我本地连接的你们的测试网络,那我还能发自己的代币吗? 我需要测试 eos 转账功能。

Surou 回复

你可以用你的账号转账进行所有操作。

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册