Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Using of the methods personal_unlockAccount or parity_unlockAccount #6412

Closed
nodermann2 opened this issue Aug 29, 2017 · 5 comments
Closed
Labels
Z1-question 🙋‍♀️ Issue is a question. Closer should answer.

Comments

@nodermann2
Copy link

I'm running:

  • Parity version: Parity//v1.7.0-beta-5f2cabd-20170727/x86_64-linux-gnu/rustc1.18.0
  • Operating system: Linux ubuntu 16.04
  • And installed: bash <(curl https://get.parity.io -kL)

Long story short

I need unlock my account in the kovan testnet using personal_unlockAccount or parity_unlockAccount
I don't want to use a geth but I have no choice. Please enable it as before.

Actual behaviour

personal_unlockAccount
curl --data '{"method":"personal_unlockAccount","params":>
["0x...","password",null],"id":1,"jsonrpc":"2.0"}' -H > "Content-Type: application/json" -X POST localhost:8545
{"jsonrpc":"2.0","error":{"code":-32601,"message":"Method not found"},"id":1}
parity_unlockAccount
curl --data '{"method":"parity_unlockAccount","params":>
["0x...","password",null],"id":1,"jsonrpc":"2.0"}' -H > "Content-Type: application/json" -X POST localhost:8545
{"jsonrpc":"2.0","error":{"code":-32601,"message":"Method not found"},"id":1}

About

I found a 261250311 that you believe the use of these methods not secure, but the solution with the launch of the looks as a crutch, I mean something like:

parity --testnet --unlock 0x... --password passwords.txt

Is not a solution, because it is very inconvenient to use, also, I can't access the web interface when I point the path to the password, it starts the console, but does not start the web server.

I am a skilled developer, but I can't find a solution without direct code changes.

relevant urls:
#3485
https://github.com/paritytech/parity/blob/master/rpc/src/v1/traits/personal.rs#L25
https://github.com/paritytech/parity/blob/master/rpc/src/v1/traits/parity_accounts.rs#L26


Besides, you need to change the documentation, because it is not true, if you want to develop the best client, you need to cooperate with the community or there is someone who will do it better than you, I think the idea of parity is very competitive. Thank you!

@5chdn 5chdn added the Z1-question 🙋‍♀️ Issue is a question. Closer should answer. label Aug 29, 2017
@5chdn
Copy link
Contributor

5chdn commented Aug 29, 2017

What flags are you running Parity with? Do you use any config file?

Did you enable the JSONRPC APIs for parity_accounts or personal?

I am a skilled developer, but I can't find a solution without direct code changes.

Feel free to contribute a pull request.

Besides, you need to change the documentation, because it is not true, if you want to develop the best client, you need to cooperate with the community or there is someone who will do it better than you, I think the idea of parity is very competitive. Thank you!

Feel free to draft updates to the documentation or point me to the docs that failed you and I can look into that.

Thanks!

@nodermann2
Copy link
Author

What flags are you running Parity with?

$ parity --testnet

Do you use any config file?

No

Did you enable the JSONRPC APIs for parity_accounts or personal?

I use parity_accounts, I created the accounts using parity. I didn't enable JSONRPC because it is enabled by default, for example the method eth_sendTransaction working fine via jsonrpc.

Thanks!

@rphmeier
Copy link
Contributor

Certain groups of RPC APIs are not enabled for HTTP transport by default because they are considered sensitive. You can manually override this by supplying parity_accounts to the --jsonrpc-apis flag: by default, the list of APIs allowed for http is web3,eth,pubsub,net,parity,parity_pubsub,traces,rpc,secretstore,shh,shh_pubsub

@nodermann2
Copy link
Author

nodermann2 commented Aug 29, 2017

BTW If I use
$ parity --testnet --unlock 0x... --password passwords.txt

The parity ui http://127.0.0.1:8180/#/accounts doesn't work, however jsonrpc continues to work, I check it with this command:
{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}

{'jsonrpc': '2.0', 'result': '0x3502af', 'id': 1} // 3474095

@rphmeier
Copy link
Contributor

UI is disabled when you use --unlock, but you can force it with the --force-ui flag.

@5chdn 5chdn closed this as completed Aug 29, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Z1-question 🙋‍♀️ Issue is a question. Closer should answer.
Projects
None yet
Development

No branches or pull requests

3 participants