How does Bitcoin Cash wallet work?

Avatar for Telesfor
3 years ago (Last updated: 2 years ago)
Topics: Bitcoin Cash


Many new Bitcoin Cash users are not sure, or do not know how a Bitcoin Cash wallet works.  Some even have a completely wrong idea about it.  They think that their Bitcoin Cash is stored in the wallet on their smartphone or PC.  But this is not correct.

Your Bitcoin Cash is not stored in the wallet, but in the blockchain and mempool on more than a thousand computers called nodes around the world. How to run such a node I described here

Blockchain is a list of all Bitcoin Cash transactions that are grouped into blocks and chained together.  Each newly created block is linked to the last created block.  Mempool is a waiting room for transactions that are not yet included in a block.  On average, 10 blocks are created per hour.

Why do I see my Bitcoin Cash in my wallet and can I spend it if it is not stored there?

To understand this, you must first know how a Bitcoin Cash transaction works.

On your wallet (whether it is an offline wallet like bitcoin.com or Trust Wallet or an online wallet like read.cash Wallet) is stored your Bitcoin Cash address and associated keys - private key and public key.  The public key can be calculated by any other wallet that knows your Bitcoin Cash address.  Your private key is only known by your wallet. 

When a person A sends 1 BCH to your Bitcoin Cash address, his wallet creates a transaction file using his private key, which belongs to his Bitcoin Cash address, and your public key belongs to your Bitcoin Cash address and sends it to a node. The node verifies the transaction (the node knows both Bitcoin Cash addresses and both public keys) and if the transaction file is correct, it writes it to a waiting room (called mempool) and sends the transaction to other nodes it is connected to. The other nodes do the same. The transaction in mempool is lightning fast on all nodes in the network. 

Your wallet is connected to one of these nodes. As soon as this node detects an incoming transaction for you, it immediately notifies you to receive 1 BCH from the address of the person A (some wallets do not inform if the transaction is in mempool, but only if it is in a block. In the case of BTC wallets it must be so, because a BTC transaction that is in the mempool is not always recorded in a block und you can't spend it. I suspect that these BCH wallets that do not show the mempool transactions are derived from BTC wallets). Now your wallet can issue your BCH by creating a new transaction.  It does this just like person A described above.

Your private key gives you access to your Bitcoin Cash. You should keep it secret and not give it to anyone. From your private key everyone can calculate your public key and your Bitcoin Cash address (it is not possible the other way round).

What does a private key look like?  Here you can see an example private key:

5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf

There is a website that lists all Bitcoin Cash private keys. You can see it there:

https://allkeys.cash

What? A list of all the private keys?  Aren't they secret?  If I know his private key, do I not have access to BCH of an address?  Yeah, you can try.  If you're lucky, you'll find a private key that derives a Bitcoin Cash address that has an amount of unspent coins.  But you must be damn lucky.

There are 1.461.501.637.330.902.918.203.684.832.716.283.019.655.932.542.976 Bitcoin Cash addresses. The most powerful computer in the world would have to take billions of years to find an address with an amount.

As you can see the private key is a bit complicated and not easy to remember. That's why they developers introduced  a seed. Seed that is a sequence of 12 words that is much easier to remember. From these words (and a derivation path), your wallet can create your private key again and again.  

You can import the same seed into different wallets and all of these wallets will have access to your Bitcoin Cash. I wrote here how to import your seed from read.cash into bitcoin.com wallet. 

Bitcoin Cash has a huge advantage compared to conventional currencies. You must either keep fiat currencies in a bank account or als banknotes in your wallet. Your bank can go bankrupt, the government can limit or freeze payments, your conventional wallet can be stolen or you can lose it. You cannot take large amounts of cash across the border in many countries.

If you want to have access to your BCH you just have to remember your seed. That's all. You can import it into a wallet and make transactions anytime and anywhere. Nobody can take your Bitcoin Cash away from you.

But if you do not know your seed or private key, your BCH does not belong to you, but to the person or company who knows (or store) it. This could be for example an exchange, which keeps your BCH for you. If the exchange goes bankrupt or is hacked, your BCH is lost.

Therefore when I buy BCH, I always transfer it to my wallet, for which I know my seed, derivation path and private key.To make the wallet more secure against hacks, it can be secured with hardware such as Trezor.io .

Remember your seed (and derivation path) well and don't give it to anyone.

If you want to know why you sometimes have to pay higher transaction fees than normal on the Bitcoin Cash network, read my another article.

How does Bitcoin Cash work you can read here.

105
$ 18.65
$ 17.26 from @TheRandomRewarder
$ 1.00 from @abraxas
$ 0.10 from @unitedstatian
+ 7
Avatar for Telesfor
3 years ago (Last updated: 2 years ago)
Topics: Bitcoin Cash
Enjoyed this article?  Earn Bitcoin Cash by sharing it! Explain
...and you will also help the author collect more tips.

Comments

This was a really informative article! Thanks for sending it my way over on Noise. Learned a lot from this post alone. Gonna read your post about the derivation paths next

$ 0.00
2 years ago

I'm glad you enjoyed it and thank you for the generous tip.

$ 0.00
2 years ago

Thanks I really learned some lessons day by day just by reading and understanding your articles about Bitcoin Cash and the whole blockchain.

$ 0.00
2 years ago

Thanks I really learned some lessons day by day just by reading and understanding your articles about Bitcoin Cash and the whole blockchain.

I am pleased

$ 0.00
2 years ago

Thanks for this sir, I have know little knowledge about Bitcoin cash. This is very informative to me. 😊

$ 0.01
3 years ago

Wow amazing article.I subscribe you please subscribe back.

$ 0.00
3 years ago

How interesting is this! But, what is most interesting to me is the plastic card for Bitcoins and other cryptocurrencies. I am looking for it for months and couldn't find anything.

$ 0.00
3 years ago

I'm new to cryptocurrency universe. I just acquainted with it last year. My first wallet was XRP. It has lower value compared to Bitcoin Cash BCH. I also have BAT token. I get it from Brave browser. At first I really Don't understand what is cryptocurrency and tokens that are associated to it. What I know is it is an online currency. What I don't understand is What commodities or goods backed Cryptocurrency. For example the Dollar is backed by Gold and Oil, Economy . While in my country Philippines our Peso is backed by Gold, Economy and regulated by Central Bank. My question Sir is what commodities backing up Cryptocurrency?

Until this August I was invited by a friend here in Read Cash. I enjoying staying and sharing here. Thanks Sir for sharing your knowledge about how Bitcoin Cash BCH transactions works. I learned a lot today. Thanks again Sir !

$ 0.00
3 years ago

You're wrong, dollars are not backed by gold or oil, that is a common misconception. I will write an article about it in a day's time and explain the differences between crypto currencies like Bitcoin Cash and fiat currencies like USD or PHP.

Update: here is the link to the article

https://read.cash/@Telesfor/what-is-the-difference-between-bitcoin-cash-and-fiat-currency-like-usd-or-php-3d9368ec

$ 0.01
3 years ago

I think it is a common knowledge Sir that Fiat Currency around the world was backed by gold. You cant print bills/banknotes if it has no corresponding gold. I will wait for that article of yours Sir. I want to learn more about this topic and cryptocurrency.

$ 0.00
3 years ago

Dollar and PHP are fiat money

"Fiat money is a currency (a medium of exchange) established as money, often by government regulation, but that does not have intrinsic value (value independent of the nominal value, such as a precious metal might have). Fiat money does not have use value"

https://en.m.wikipedia.org/wiki/Fiat_money

$ 0.00
3 years ago

But the currency value also depends on the economy of a certain country. For example the American Dollar has greater value than Hongkong or Singaporean Dollar.

$ 0.00
3 years ago

The value of a currency doesn't matter. Any country can determine it as it wants. For example, a Jordanian dinar is worth 1.4 USD. Does that mean the Jordanian economy is stronger than the US economy?

$ 0.00
3 years ago

If any country can determine the value of its currency then it is possible that the Philippine Government can adjust the value of Peso to P1=$1 as they want to? Sir

$ 0.00
3 years ago

Yes, they can, but they won't, because everyone would immediately exchange PHP for USD and buy goods from abroad. All Filipino goods would suddenly be very expensive and nobody would buy them. All Filipino companies would go bankrupt immediately.

But they can do it differently. They can issue a new peso and peg the new peso to dollars. A new peso would then e.g. 48.5 PHP cost. You would have to exchange old pesos for new pesos in the bank. Then the new peso would be worth 1 USD. All goods would then cost less new peso, but of course people would then earn much less new peso. Many countries have already done this or similar. Most of the time they only cross out a few zeros in the new currency, so e.g. 1 new peso = 100 old peso This process is called denomination.

$ 0.00
3 years ago

Wow you are really an expert I think. How about Currency manipulation in which China was accused by USA.?

$ 0.00
3 years ago

Wow you are really an expert I think.

I read a lot and that's why I believe in Bitcoin Cash.

$ 0.00
3 years ago

USA accuses China of doing it the other way around. You have to imagine it that way. The government of the Philippines sets the exchange rate at 1: 100. If a Filipino company sells PHP 500 worth of goods in the US today, the goods costs $ 10 today. If the government sets the exchange rate to 1: 100, the goods will only cost $ 5. The competing same US product still costs $ 10. Which goods is the customer buying?

$ 0.00
3 years ago

Oh I see. Economics is really hard you know. Hahaha. So money is like a commodity or goods too. Buying the Dollar using the Peso.

$ 0.00
3 years ago

Yes, money is also a commodity because you can buy and sell it. But it is a commodity with no intrinsic value.

$ 0.00
3 years ago

What do you mean by intrinsic? It is like Gold,Silver has intrinsic value but money don't have.?

$ 0.00
3 years ago

Here is the definition. But it is getting very financial.

https://en.m.wikipedia.org/wiki/Intrinsic_value_(finance)

Very, very simply one can say that currency like PHP has no intrinsic value because the government can declare it worthless by law. For example, if you have a car, the car always has intrinsic value. It can be taken away from you, but then that doesn't change the value of the car. The invalidate money is immediately worthless. This has happened many times in history.

$ 0.00
3 years ago

Very interesting. Philippine Congress can change the currency from Peso into Dollar or Yen and declare peso as worthless. Hmmm. But car has depreciation value too depending on the years it was used. Hahaha. Were now discussing Finances and Accounting.

$ 0.00
3 years ago

Yes it is. That is why many people buy houses, gold and other things like Cryptocurrencies, because they are afraid that the money will one day be worth nothing.

$ 0.00
3 years ago

Why the value of Bitcoin Cash or other cryptocurrency changes. What factors affects its value?

$ 0.00
3 years ago