Bitcoin Forum
June 25, 2024, 05:23:05 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Development & Technical Discussion / Re: Cannot run bitcoin-cli on: October 27, 2017, 08:16:07 AM
Maybe you need to check debug.log and see what happened.


I renamed bitcoin.conf to bitcoin.conf1, reboot the system, and I still got the same error:

Quote
$ bitcoind --daemon
Bitcoin server starting
[The server started immediately]

$ bitcoin-cli getblockchaininfo
error: couldn't connect to server: unknown (code -1)
(make sure server is running and you are connecting to the correct RPC port)
2  Bitcoin / Development & Technical Discussion / Re: Cannot run bitcoin-cli on: October 27, 2017, 06:28:51 AM
You have setup a password for your RPC connection, that means you need provide the same username/password to run bitcoin-cli in command line. You just simply remove your bitcoin.conf or rename it then shutdown bitcoind and start it again.

[move bitcoin.conf to another name]
bitcoin-cli stop
bitcoind --daemon

[wait a while when the program warm up]
bitcoin-cli getblockchaininfo
3  Bitcoin / Development & Technical Discussion / Re: Is it totally safe and ok to show my deposit bitcoin address to the public? on: October 27, 2017, 05:20:25 AM
Yes, it is totally safe to show your address to other peoples.

You might need to understand three things behind your address.

1. Private key
Every address generated by bitcoin wallet, it generates a key pair: private key and public key. With some hash algorithm with your public key will get address. Anyone who owns private key means he is able to transferring your bitcoins to other peoples. Public key is very easy to be calculated by private key, so if you have private key and then you have all these three things.

2. Public key
After you transferred some bitcoins to other address, your public key is revealed with your transaction record to let other people/miner verify your signature to confirm your transaction is valid. To calculate a private key from public key is very very hard in current time, but it is possible. That's why an address is secure if it has no any out-coming transfer.

3. Address
It is easy to calculate (With hash algorithm of your public key) your address from public key, but it is impossible to get public key from an address only.


Private key --(easy)--> Public key --(easy)--> Address

Address --(impossible)--> Public key --(very very hard)--> Private key

Smiley
Have a nice day.

Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!