13.06.2017 Views

Whitepaper - Ethereum Classic With Cover

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Using geth<br />

If you have a standalone installation of geth, importing your presale wallet is accomplished by executing the<br />

following command in a terminal:<br />

geth wallet import /path/to/my/presale-wallet.json<br />

You will be prompted to enter your password.<br />

1.3.5 Updating an account<br />

You are able to upgrade your keyfile to the latest keyfile format and/or upgrade your keyfile password.<br />

Using geth<br />

You can update an existing account on the command line with the update subcommand with the account address<br />

or index as parameter. Remember that the account index reflects the order of creation (lexicographic order of<br />

keyfile names containing the creation time).<br />

geth account update b0047c606f3af7392e073ed13253f8f4710b08b6<br />

or<br />

geth account update 2<br />

For example:<br />

$ geth account update a94f5374fce5edbc8e2a8697c15331677e6ebf0b<br />

Unlocking account a94f5374fce5edbc8e2a8697c15331677e6ebf0b | Attempt 1/3<br />

Passphrase:<br />

0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b<br />

account 'a94f5374fce5edbc8e2a8697c15331677e6ebf0b' unlocked.<br />

Please give a new password. Do not forget this password.<br />

Passphrase:<br />

Repeat Passphrase:<br />

0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b<br />

The account is saved in the newest version in encrypted format, you are prompted for a passphrase to unlock<br />

the account and another to save the updated file. This same command can be used to migrate an account of a<br />

deprecated format to the newest format or change the password for an account.<br />

For non-interactive use the passphrase can be specified with the --password flag:<br />

geth --password account update a94f5374fce5edbc8e2a8697c15331677e6ebf0bs<br />

Since only one password can be given, only format update can be performed, changing your password is only<br />

possible interactively.<br />

Note: account update has the side effect that the order of your accounts may change. After a successful update,<br />

all previous formats/versions of that same key will be removed!<br />

1.3.6 Backup and restore accounts<br />

Manual backup/restore<br />

You must have an account’s keyfile to be able to send any transaction from that account. Keyfiles are found in the<br />

keystore subdirectory of your <strong>Ethereum</strong> node’s data directory. The default data directory locations are platform<br />

specific:<br />

52 Chapter 1. Contents

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

Saved successfully!

Ooh no, something went wrong!