|
|
(43 intermediate revisions by 7 users not shown) |
Line 1: |
Line 1: |
| ==Documentation of Electrum Bitcoin Client (Focus on the GUI)==
| | Electrum documentation is now hosted at http://docs.electrum.org |
| This page tries to document certain aspects of the [[Electrum|Electrum]] Bitcoin Client. The focus is on explaining certain aspects of its GUI, such that it gets easier for the user to understand its use.
| |
| | |
| More documentation, especially with regard to command line parameters, can be found at the parent page of this Wiki, i.e. [[Electrum|here]].
| |
| | |
| ==How to Read this Documentation==
| |
| * Text in curly brackets {like this} means that the authour(s) of this documentation are not really sure about this... --> other people are welcome to correct/clarify
| |
| | |
| ==What is a "Wallet" and a "Bitcoin Address"?==
| |
| * (General, not specific to Electrum)
| |
| | |
| Your wallet is a list of Bitcoin addresses (more precisely: a list of privat/public key pairs). Each address "contains" (or is associated with) a certain amount of Bitcoins at a given time.
| |
| | |
| Your wallet's balance is the sum of all Bitcoins of all your wallet's Bitcoin addresses.
| |
| | |
| Your wallet consists of both [[#Normal Addresses|normal addresses]] and [[#Change Addresses|change addresses]]. Although they are fully equivalent from the Bitcoin protocol's point of view, they are different in how they are used by Bitcoin clients like Electrum.
| |
| | |
| ===Normal Addresses===
| |
| * (More or less general, not too specific to Electrum)
| |
| ====How are New "Normal Addresses" Created for my Wallet?====
| |
| The Bitcoin client (e.g. Electrum) allows you to trigger manually the generation of a new Bitcoin address. You typically want to create a new address when you want to receive Bitcoins from somebody and do not want to use any of the wallet's present addresses that have already been used for earlier Bitcoin transfers, for privacy reasons (note that all transfers are publically visible in the blockchain).
| |
| | |
| ===Change Addresses===
| |
| * (More or less general, not too specific to Electrum)
| |
| ====What is a "Change Address", and why is it useful?====
| |
| The concept of change addresses is a feature not of the Bitcoin protocol, but of a Bitcoin client. It is implemented not only in Electrum but in most Bitcoin clients, including the original "Satoshi" Bitcoin client.
| |
| | |
| '''How it works:'''
| |
| | |
| Whenever your Bitcoin client (e.g. Electrum) sends Bitcoins from your wallet's address "A" to a foreing address "B", a new change address "C" is created by Electrum and added to your wallet.
| |
| | |
| Example: Address "A" has 20 BTC. Electrum sends 9 BTC from "A" to "B". The change (20-9 = 11 BTC) is sent to the "change address" "C". For this purpose, address "C" is created by Electrum at this moment and added to your wallet.
| |
| | |
| Exception: If all the Bitcoins of "A" are sent to "B", there is no need for creating a change address "C".
| |
| | |
| Actually, Bitcoin clients can also work without change addresses. In this case, the change would be sent back to "A" instead of the new address "C".
| |
| | |
| '''Why the concept of "change addresses" is useful:'''
| |
| | |
| * Using a new change address makes it more difficult for other people (by analyzing the blockchain) to track how many Bitcoins you have or where you're spending them.
| |
| * It also conceals which output is the "spend" and which is the "change".
| |
| | |
| ===Deterministic Wallet===
| |
| ====What is a "Deterministic Wallet" in Electrum?====
| |
| Traditionally, all new addresses (incl. the private keys of course) added to the wallet ([[#Normal Addresses|normal addresses]] or [[#Change Addresses|change addresses]]) are generated randomly. This is the case e.g. for the original "Satoshi Bitcoin Client" (at least as of today, version 0.6.2).
| |
| | |
| Contrary to that, a Bitcoin client with a "Deterministic Wallet" will generate all new addresses accoding to a pre-defined (i.e. "deterministic") algorithm as a function of a wallet-specific [[#Seed|seed]], which is a 128 bit number. This means, if the seed is known, all new addresses that Electrum will ever create for this wallet are known, because Electrum's algorithm is known (and open source).
| |
| This is a big advantage when it comes to making wallet backups:
| |
| * ''Traditionally'', a wallet backup just contains the bitcoin addresses (and private keys of course) that have been created by the client by the time the backup was made. If the user performs transactions after the backup, new addresses ([[#Normal Addresses|normal]] or [[#Change Addresses|change]] addresses) will be generated and added to the wallet. These are not included in the backup yet. If the wallet in use gets lost, all the Bitcoins that are associated with the new addresses will also be lost. To avoid the risk of a too high loss, regular wallet backups are important.
| |
| * ''With a Deterministic Wallet'' (like with Electrum), the wallet backup only needs to contain the seed, and all new addresses generated in the future are already secured by the initial backup. Hence, regular new backups are not required! {or is this not entirely true?? It is not really clear if the "[[#Gap Limit|Gap Limit]]" plays a role here...?!? Can anybody clarify?!?}
| |
| | |
| ===Seed===
| |
| ====What is the "Seed" of a Deterministic Wallet in Electrum?====
| |
| The Seed of a [[#Deterministic Wallet|deterministic wallet]] is a series of 128 random bits in Electrum.
| |
| For convenience, a seed can also be expressed by a sequence of 12 words in Electrum, and it also supports generation of a QR code to facilitate the backup of the seed.
| |
| | |
| So there are 2^128 possible seeds for a deterministic wallet in Electrum.
| |
| For comparison, the total number of Bitcoin addresses is 2^160, and the number of atoms on earth is 2^166.
| |
| So there exists one Bitcoin address per 1 Million atoms on earth, and there exists one seed of Electrum wallets per 4.3 Billion Bitcoin addresses.
| |
| (By the way: The number of atoms in the complete universe is estimated as 2^266).
| |
| | |
| {
| |
| | |
| Open Point: It is _not clear_ whether the algorithm of deterministic address generation is designed such that for any two seeds "S1" and "S2" (out of the 2^128 possible different seeds) the following condition holds true:
| |
| * If 4.3 Billion (2^32 to be exact) new addresses are calculated from each S1 and from S2, does the algorithm guarantee that there will be no collision between the set of 2^32 addresses from S1 and the set of 2^32 addresses from S2?
| |
| If this condition does not hold true, it needs to be clarified whether the use of deterministic wallets still bares an acceptably low probability of address collisions.
| |
| | |
| }
| |
| | |
| ===Gap Limit===
| |
| ====What is the "Gap Limit" in Electrum?====
| |
| | |
| The gap limit is the maximal number of contiguous unused addresses in your deterministic sequence of addresses.
| |
| It is the criterion used to decide when to stop the recovery from seed process.
| |
| | |
| ==More on the Electrum GUI==
| |
| ===What does it mean to "Prioritize" or "Freeze" Addresses in Electrum?===
| |
| When sending Bitcoins to a foreign address, Electrum will by default use a built-in method to select the address(es) of the wallet used for sending these Bitcoins.
| |
| | |
| * When you ''prioritize'' some of your wallet's addresses, these addresses will be used with preference. Other addresses will not be used until the prioritized addresses contain no more Bitcoins.
| |
| * When you ''freeze'' some of your wallet's addresses, these addresses will not be used for sending bitcoins. Instead, other addresses will be used. Sending Bitcoins is not possible if the non-frozen addresses of your wallet do not contain enough funds.
| |
| | |
| The user can (de)prioritize or (un)freeze both [[#Normal Addresses|normal]] and [[#Change Addresses|change]] addresses.
| |
| | |
| Note: Clearly, an address can not be "prioritized" and "frozen" at the same time.
| |
| | |
| ===Troubleshooting===
| |
| | |
| === 'transaction rejected by memorypool' errors ===
| |
| | |
| When you send a transaction, there is a delay before the Electrum client displays the transaction in its history.
| |
| This is because the server polls bitcoind's memorypool every 10 seconds.
| |
| | |
| If you create another transaction during this interval, during which the first tx is not displayed,
| |
| then your client will pick the same coins again, and the transaction will be rejected as a double spend.
| |
| | |
| ===What does the "Tx" column mean in Electrum?===
| |
| * Applies to "Receive" tab (own wallet's addresses) and "Contacts" tab (foreing addresses).
| |
| | |
| Tx stands for {... ?? "Transaction"? "Transmission" ?? ...}
| |
| | |
| The Tx column in Electrum displays a number for each Bitcoin address in the address list, both for own addresses ("Receive" tab) and for foreing addresses ("Contacts" tab).
| |
| | |
| '''In the "Receive" tab (own addresses):'''
| |
| | |
| The number in the Tx column indicates the total number of _incoming_ Bitcoin transactions that have ever been sent to this address.
| |
| | |
| {
| |
| The number of outgoing transactions is apparently not counted. It is unclear why the column is called "Tx" and not "Rx", because it indicates the number of times that Bitcoins have been sent to this address, i.e. how often this address has "received" Bitcoins.
| |
| Does this "Tx" come from blockchain/blockexplorer terminology? Or why is it called "Tx" ("transmit") and not "Rx" ("receive")? To be clarified.
| |
| }
| |
| | |
| '''In the "Contacts" tab (foreign addresses):'''
| |
| | |
| The number in the Tx column indicates the total number of Bitcoin transactions that have ever been received by this address
| |
| {from anyobody? or just from myself, i.e. from addresses in my wallet? - Probably the latter - to be confirmed...}.
| |
| | |
| ===What does the "Balance" column mean in Electrum?===
| |
| * Applies to "Receive" tab only (i.e. own wallet's addresses).
| |
| | |
| The balance column indicates the amount of Bitcoins belonging to the given address.
| |
| The individual balances add up to the total balance of your wallet.
| |
| | |
| ===What does the "Flag" column mean in Electrum?===
| |
| * Applies to "Receive" tab only (i.e. own wallet's addresses).
| |
| | |
| This column indicates certain properties of the different addresses:
| |
| * C = [[#Change Addresses|Change address]] (without a "C" it means it is a [[#Normal Addresses|normal address]])
| |
| * P = Prioritized address
| |
| * F = Frozen address
| |
| * I = Imported
| |
| | |
| Note: P and F flags can be applied to both [[#Normal Addresses|normal]] and [[#Change Addresses|change]] addresses.
| |
| | |
| ===What do colors mean?===
| |
| In the Receive tab:
| |
| *green = prioritized
| |
| *blue = frozen
| |
| In the Contacts tab:
| |
| *gray = alias
| |
| | |
| ==External Links==
| |
| * [http://ecdsa.org/electrum Electrum] project website
| |
| * [https://gitorious.org/electrum Electrum] project source (gitorius)
| |
| * [https://bitcointalk.org/index.php?topic=50936.msg950497#msg950497 Electrum Forum] - here this documentation was started
| |