Cryptocurrency Mining For Dummies. Peter Kent

Читать онлайн книгу.

Cryptocurrency Mining For Dummies - Peter  Kent


Скачать книгу
tied to those transactions via AML (anti-money laundering) and KYC (know your customer) data collection procedures required by law in the United States (and other countries). They’ll have the address that the exchange used to store those Bitcoin, right? Well, now they can trace the transactions from that address through the blockchain using a blockchain explorer. And different addresses can be associated with each other in certain ways, so it would be possible for someone with the information — a tax authority, for example, or police agency — from a single starting point, to create a picture of a person’s Bitcoin transactions. So, Bitcoin as it is commonly used today is not fully anonymous. Other currencies, such as Monero or Zcash, claim to get much closer to true anonymity. However, improvements to Bitcoin, such as conjoin and Layer 2, are likely to make Bitcoin more anonymous in the future.

      The following sections take a look at how the basic components of cryptocurrency fit together.

      What’s in a wallet?

      The wallet is where everything begins as far as your cryptocurrency is concerned. When you create a wallet file, the wallet software will create a private key. That private key is used to create a public key, and the public key is used to create an address. The address has never before existed in the blockchain and still doesn’t exist in the blockchain yet.

      A wallet program is a messaging program that stores your keys and addresses in a wallet file. The wallet program does these primary things:

       It retrieves data from the blockchain about your transactions and balance.

       It sends messages to the blockchain transferring your crypto from your addresses to other addresses, such as when you make a purchase using your cryptocurrency.

       It creates addresses you can give to other people when they need to send cryptocurrency to you.

      Private keys create public keys

      The private key in your wallet is used to create the public key that is used to unencrypt your messages sent to the blockchain. Private keys must be kept private; anyone with access to the private key has access to your money in the blockchain.

      Public keys create blockchain addresses

      Public keys are also used to create addresses. The first time an address is used, someone’s wallet software sends a message to the blockchain saying “Send x amount of cryptocurrency to address x from address y.” Until this point, the address did not exist in the blockchain. After the wallet software has sent the message, though, the address is in the blockchain, and money is associated with it.

      The private key controls the address

Illustration depicting how cryptocurrency is associated with an address in the blockchain; the address is derived from the public key, associated with a private key, which is kept safe in a wallet.

      FIGURE 1-4: The cryptocurrency is associated with an address in the blockchain; the address is derived from the public key, which is associated with a private key … which is kept safe in a wallet.

      “FORKING” CRYPTOCURRENCIES

      So where does cryptocurrency come from? Cryptocurrency can be mined – the least common form, though the one you’re evidently most interested in based on your interest in this book — or it can be pre-mined.

      To say that a cryptocurrency has been pre-mined, or is nonmineable, simply means that the cryptocurrency already exists. The blockchain is a ledger containing information about transactions. When the blockchain was first created, the ledger already contained a record of all the cryptocurrency that the founders planned for. No more will be added; it’s all there in the blockchain already.

      In fact, although we hear a lot about cryptocurrency mining, the majority of cryptocurrencies (at the time of writing, more than 2,000 different flavors) are pre-mined: 74 or so of the top 100 cryptocurrencies are nonmineable, and overall, around 70 percent of all cryptocurrencies cannot be mined.

      When the Ripple blockchain was created, 100 billion XRP were already recorded in the blockchain, although most had not been distributed. The founders of Ripple held 20 percent, and even now almost 60 percent of the currency is not in circulation.

      Another example is Stellar, a payment network originally funded by the Stripe payment service, which at the time of writing was the fourth largest cryptocurrency. Stellar has a total supply of more than 100 billion lumens, 2 percent of which were assigned to Stripe for its investment.

      So, no, not all cryptocurrencies can be mined (in fact, most can’t). But that’s not why you’re reading this book, now, is it?

      The good news, though, is that you can mine around 600 cryptocurrencies (though you’ll never want to mine the vast majority). To decide which ones to mine, see Chapter 8.

      Understanding Cryptocurrency Mining

      IN THIS CHAPTER

      

Making money with mining: transaction fees and block subsidies

      

Understanding how mining builds trust

       Скачать книгу