13.06.2017 Views

Whitepaper - Ethereum Classic With Cover

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Ethereum</strong> <strong>Classic</strong> Documentation, Release 0.1<br />

Warning: Using the --password flag is meant to be used only for testing or automation in trusted environments.<br />

It is a bad idea to save your password to file or expose it in any other way. If you do use the<br />

--password flag with a password file, make sure the file is not readable or even listable for anyone but you.<br />

You can achieve this in Mac/Linux systems with:<br />

touch /path/to/password<br />

chmod 600 /path/to/password<br />

cat > /path/to/password<br />

>I type my pass<br />

To list all the accounts with keyfiles currently in you’re keystore folder use the list subcommand of the<br />

geth account command:<br />

$ geth account list<br />

account #0: {a94f5374fce5edbc8e2a8697c15331677e6ebf0b}<br />

account #1: {c385233b188811c9f355d4caec14df86d6248235}<br />

account #2: {7f444580bfef4b9bc7e14eb7fb2a029336b07c9d}<br />

The filenames of keyfiles has the format UTC---. The<br />

order of accounts when listing, is lexicographic, but as a consequence of the timestamp format, it is actually order<br />

of creation.<br />

Using geth console<br />

In order to create a new account using geth, we must first start geth in console mode (or you can use geth<br />

attach to attach a console to an already running instance):<br />

> geth console 2>> file_to_log_output<br />

instance: Geth/v1.4.0-unstable/linux/go1.5.1<br />

coinbase: coinbase: [object Object]<br />

at block: 865174 (Mon, 18 Jan 2016 02:58:53 GMT)<br />

datadir: /home/USERNAME/.ethereum<br />

The console allows you to interact with your local node by issuing commands. For example, try the command to<br />

list your accounts:<br />

> eth.accounts<br />

{<br />

code: -32000,<br />

message: "no keys in store"<br />

}<br />

This shows that you have no accounts. You can also create an account from the console:<br />

> personal.newAccount()<br />

Passphrase:<br />

Repeat passphrase:<br />

"0xb2f69ddf70297958e582a0cc98bce43294f1007d"<br />

Note: Remember to use a strong and randomly generated password.<br />

We just created our first account. If we try to list our accounts again we can see our new account:<br />

> eth.accounts<br />

["0xb2f69ddf70297958e582a0cc98bce43294f1007d"]<br />

46 Chapter 1. Contents

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!