CREDITSCOM / node

Credits Node is the main module that provide an opportunity to run a node and participate in CREDITS blockchain network.
https://developers.credits.com/
GNU Affero General Public License v3.0
151 stars 16 forks source link

Node Encryption explanations #21

Closed Toki1975 closed 5 years ago

Toki1975 commented 5 years ago

When we start a node (Linux or windows, we have the possibility to encrypt the key. ( Option 1 recommended)

I have 2 questions related to the encryption ( see print screen below)

  1. How can we use the Phrase on 24 words generated in case losing both public and private key.
  2. How can we use the the option "to use file file press F"

A word of explanations is really needed to allow us to update the vps/linux/installation guide.

Best regards,

Toki1975

2019-06-07_112222 v2-how-to-run-a-credits-node-on-a-pc-or-on-a-linux-vps.pdf

ghost commented 5 years ago

Hello. This is cscrypto manual. https://github.com/CREDITSCOM/node/wiki/Deterministic-key-generation-cscrypto Sorry to keep you waiting

Toki1975 commented 5 years ago

Hi Dimitry,

No worries. I know Team have a lot to do. I have read your documentation but there is still one question. What contain the file /home/user/test.*** ?

From your documentation: To use password for encryption/decryption press "p", to use file press "f": f Enter path to file (will be used as cipher key):home/user/test.***

For the rest it is clearly explained and will help a lot.

Regards.

CryptoDZ commented 5 years ago

issu Hello DmitriyYashenko thank you for sharing the documentation, it is appreciable. it seems to me that my procedure is correct, it generates an error code that I tested with several types of files

ghost commented 5 years ago

functionality has been fixed https://github.com/CREDITSCOM/node/commit/b6b9ddd22025d3d92ffd85711478c1700e81a17d, please git pull and rebuild the client

Toki1975 commented 5 years ago

Hi Dimitry, Client has been rebuilt. What should we write in the file (for example) : test.txt Enter path to file (will be used as cipher key):home/user/test.***

Best regards.

ghost commented 5 years ago

anything, it can be at least a video file, at least music, whatever you want

Toki1975 commented 5 years ago

Hi Dimitri, I have tested and it works. When you start your node for the first time you choose option "f" and you give the path to whatever file you have ( it can be even a txt file with a few character or any other file you want).

Each time you will start the node you have to pint to the previous file selected the first time. also command " ./client --dumpkeys my Node1.json" allow you to recover you private key.

I think i will not use to use this way of encryption because there is no password protection to run the node but more to create the json file to recover the private key. You are going to tell me that a person with bad intention should know where the file you use to run the node is located and i will agree but i prefer to enter a strong password to run my node and mostly to recover my private key with the dumpkey command. Thanks a lot for your help and explanations.

Best regards.

CryptoDZ commented 5 years ago

anything, it can be at least a video file, at least music, whatever you want

F system is very ingenious

ghost commented 5 years ago

You cannot change the password or encryption file until you enter the password or specify the path to the file. Only after entering and restoring the keys will you be asked to dare to encrypt. The command ./client --dumpkeys my Node1.json also trusts the password or the encryption file that you can store, say, on a flash drive or remote storage. Thus, an attacker needs to know your password or have an encryption file to access your keys. A little later, I will try today, we will publish a detailed description of file encryption.

ghost commented 5 years ago

Detailed description of the file encryption algorithm at the end of the document https://github.com/CREDITSCOM/node/wiki/Deterministic-key-generation-cscrypto