This section describes how to use the account command
An account is a locally encrypted file containing a private key. It is encrypted with a passphrase provided by the administration of the compute hosting the
Elldclient. To start, an
Elldclient, the administrator must specify an account that will be used to identity the node, sign blocks/transactions and more.
You can use the
Elldexecutable to create as many accounts as you want. Use the
createsub-command to create new accounts.
elld account create
After running the command above, you will be prompted to enter your passphrase which will be used to encrypt your account on disk.
Do not forget your passphrase to an account. It is impossible to unlock your account if you forget your passphrase.
After entering your passphrase and repeated the passphrase, your account will be created and your address displayed to you.
New account created, encrypted and stored
If you want to create an account and directly provide a passphrase without being forced to do so interactively, use
--pwdflag can take a passphrase or a path to a file that contains your passphrase.
To list all accounts that exists on the host running
Elld, use the
elld account list
This will output a list of address similar to this:
Address Date Created
 e449uo25WiXxwwbwYG41EMjCRAzAEVZKY6 1 month ago [default]
 eLRVae1i58mjHbcCQn3698DQsG3ec73aEv 2 weeks ago
 e2KBuPhZbVnKZ4Z7cNXRZ6wNjQqf1RGchg 2 weeks ago
The first account; The one with 0 index is always considered the default account. The 0-indexed account is also the oldest account.
If you already have an Ellcrys private key that you intend to import, the
importsub-command allows you to create an account from an existing private key.
First, you must store the private key in a file. Next you provide the path to the file as an argument to the
elld account import "private_key.txt"
After running the command above, an interactive prompt is started to collect your passphrase to be used to encrypt your imported account on disk. If you do not want to go through an interactive session to provide your passphrase, use
--pwdto directly specify a passphrase.
--pwdflag accepts a string for a passphrase or a path to a file containing your passphrase.
When you need to update the passphrase of an account, you can use
updatesub-command. The sub-command takes the address of the account whose password you wish to update.
elld account update "e449uo25WiXxwwbwYG41EMjCRAzAEVZKY6"
Upon execution of the command, an interactive session is started to collect the old passphrase which is used to unlock the account and the new passphrase which replaces the old one.
Do not forget your passphrase. It is impossible to unlock your account if you forget your passphrase.
You may need to copy a private key encrypted and associated with an account. When the need arises, use the
revealsub-command to display the content of an account.
elld account reveal e449uo25WiXxwwbwYG41EMjCRAzAEVZKY6
Similar to other sub-commands, you will be prompted to enter your passphrase before the private key is outputted.
Private Key: wKSAjVeUSRZZA3esRirDUzvA4vjV761bsMQY4rWL8gcbUgB1vXGiBS32dtLtoNY2djZ7Ugzvax8YYPVUCz5qRxGFt6GHz8
To create an address without creating an account, use the
elld address create
Public Key: 47wViJQE1k2MbwYfhPR4Vwpy3LK81B8kkZ8Wu32JUXFPJFZXfbX
Private Key: wT18i4RRrDHkmfverURQSHGPukEUv3QmhVZG5wQEVJQsyVx8s2icYXraUYW2poohwaqaHW7WtQdoEstjMU6ZX7YmF4jdYA
Peer ID: 12D3KooWBEUcKwxM55q3xgCqSnEP3GWjUXpWcusDHxgdeHptHPu8