What is Mining?

Glossary: How does cryptocurrency mining work? / Miners keep the network secure / What is PoW? / What is a mining pool?

Cryptocurrency mining is the process in which transactions between users are verified and added to the blockchain public ledger. The mining process is the result of introducing new coins into the circulating supply and is the key element that allows for cryptocurrencies to work as a peer-to-peer decentralized network, without the need for a centralized third-party controlling it.

A miner is a node in the network that collects transactions and organizes them into blocks. Whenever transactions are made, all network nodes receive them and verify their validity. Then, miner nodes gather these transactions from the memory pool and begin assembling them into a block.

 


peer to peerSo how does cryptocurrency mining work?

The first step of mining a block is to individually hash (which is an algorithm that turns an arbitrarily-large amount of data into a fixed-length hash) each transaction taken from the memory pool, but before starting the process, the miner node adds a transaction where they send themselves the mining reward (block reward).

After every transaction is hashed, the hashes are then organized into something called a Merkle Tree (or a hash tree) – which is formed by organizing the various transaction hashes into pairs and then hashing them. The outputs are then organized into pairs and hashed once again, and the process is repeated until “the top of the tree” is reached.

The root hash along with the hash of the previous block and a random number called nonce (which is a 32-bit field whose value is adjusted by miners so that the hash of the block will be less than or equal to the current target of the network) is then placed into the block’s header.

The block header is then hashed producing an output based on those elements (root hash, previous block’s hash, and nonce) plus a few other parameters. The resulting output is the block hash and will serve as the identifier of the newly generated block.

In order to be considered valid, the output (block hash) must be less than a certain target value that is determined by the protocol. In other words, the block hash must start with a certain number of zeros. The target value, also known as the hashing difficulty, is regularly adjusted by the protocol, ensuring that the rate at which new blocks are created remains constant and proportional to the amount of hashing power devoted to the network.

Therefore, every time new miners join the network and competition increases, the hashing difficulty will raise, preventing the average block time from decreasing. In contrast, if miners decide to leave the network, the hashing difficulty will go down, keeping the block time constant even though there is less computational power dedicated to the network.

 


bitcoin minersMiners keep the network secure

Miners secure the Bitcoin network by making it difficult to attack, alter or stop. The more miners that mine, the more the secure the network. The only way to reverse Bitcoin transactions is to have more than 51% of the network hash power. Distributed hash power spread among many different miners keeps Bitcoin secure and safe.

To successfully attack the Bitcoin network by creating blocks with a falsified transaction record, a dishonest miner would require the majority of mining power so as to maintain the longest chain. This is known as a 51% attack and it allows an attacker to spend the same coins multiple times and to blockade the transactions of other users at will.

In order to do this, an attacker needs to own more mining hardware than all other honest miners. This imposes a high monetary cost on any such attack. At this stage of Bitcoin’s development, it’s unlikely that such an attack will occur as it’s unclear what benefit a bad actor would gain from degrading or destroying Bitcoin.

The network has been designed to be protected by the work that cryptocurrency miners conduct and therefore given the opportunity of receiving a reward for mining the block.

While the block reward is granted to the miner who discovers the valid hash first, the probability of finding the hash is equal to the portion of the total mining power on the network. Miners with a small percentage of the mining power stand a very small chance of discovering the next block on their own.

 


What is PoW?

A proof of work is a piece of data which was difficult (costly, time-consuming) to produce so as to satisfy certain requirements. It must be trivial to check whether data satisfies said requirements.

Producing proof of work can be a random process with a low probability, meaning that a large sum of trial and error is needed on average before a reliable proof of work is generated. One implementation of this concept is to use hashcash as a means to avoid email spam, allowing proof of work on the contents of the email (including to the address) on each post.what is pow

Legitimate emails will be able to do the work to generate the proof easily (not much work is required for a single email), but mass spam emailers will have difficulty generating the required proofs (which would require huge computational resources).

Hashcash proofs of work are used in Bitcoin for block generation. Proofs of work that are tied to the data of each block are required for the blocks to be accepted. The [difficulty of this work](/what-is-bitcoin-mining-difficulty/) is adjusted so as to limit the rate at which new blocks can be generated by the network to one every 10 minutes.

Due to the very low probability of successful generation, this makes it unpredictable which worker computer in the network will be able to generate the next block.

For a block to be valid it must hash to a value less than the current target; this means that each block indicates that work has been done generating it. Each block contains the hash of the preceding block, thus each block has a chain of blocks that together contain a large amount of work.

Changing a block (which can only be done by making a new block containing the same predecessor) requires regenerating all successors and redoing the work they contain. This protects the block chain from tampering.

The most widely used proof-of-work scheme is SHA-256, which was introduced by Bitcoin. Some other hashing algorithms that are used for proof-of-work include scrypt, Blake-256, CryptoNight, HEFTY1, Quark, SHA-3, scrypt-jane, scrypt-n and combinations.

 


What is a mining pool?

Mining pools are created to solve this problem. It means pooling of resources by miners, who share their processing power over a network, to split the reward equally among everyone in the pool, according to the amount of work they contribute to the probability of finding a block.

bitcoin mining poolPoolin.com allows you to connect with other miners who more or less can share their knowledge about the mining process. Memberships also provide you the chance to seek new opportunities by connecting with members in the Poolin community.

At its core, mining is the process by which computational power (hash power) is used in an attempt to unlock a block in a blockchain. Each block unlocked provides a reward. The more attempts (hashes) you can perform per second, the higher the probability that you will obtain the reward. Because miners by themselves typically don’t have enough hashing power to frequently find blocks, they join a pool that combines the hash power of multiple miners to hash blocks.

With greater collective hashing power, it is easier to find blocks with decreased variance. The reward is split among the miners relative to the proportion of hash power that they contributed to the pool.

 


 

Bitcoin WhitePaper 

 

Comments 57

  1. g our says:

    WOW just what I was searching for. Came here by searching for g first

  2. g they says:

    I’ve been browsing on-line greater than 3 hours nowadays, but I
    by no means discovered any fascinating article like yours.

    It’s lovely value sufficient for me. Personally, if all web owners and bloggers made excellent content material as you did, the net will be much more useful than ever
    before.

  3. in g says:

    Hey very nice web site!! Guy .. Excellent .. Wonderful ..
    I will bookmark your web site and take the feeds also?
    I am satisfied to search out so many helpful information here within the put up, we’d like work out more techniques
    in this regard, thanks for sharing. . . . . .

  4. I like the helpful info you provide in your articles.
    I will bookmark your blog and check again here regularly.
    I am quite certain I will learn many new stuff right here!
    Good luck for the next!

  5. Does your site have a contact page? I’m having problems locating it but, I’d
    like to send you an e-mail. I’ve got some recommendations for your blog you might be interested
    in hearing. Either way, great website and I look forward to seeing it
    expand over time.

  6. It is perfect time to make some plans for the future and it’s time to be happy.
    I’ve read this post and if I could I wish to
    suggest you some interesting things or suggestions. Perhaps you can write next articles referring to this article.
    I wish to read even more things about it!

  7. Pretty! This has been an extremely wonderful article.

    Thanks for supplying this information.

  8. My relatives every time say that I am killing my time here at net, except I know I am getting familiarity daily by reading thes pleasant posts.

  9. We are a group of volunteers and opening a new scheme in our community.
    Your website offered us with valuable information to work on. You have done a formidable job and our entire community will
    be grateful to you.

  10. It’s nearly impossible to find knowledgeable people in this particular subject, however, you sound like you know what
    you’re talking about! Thanks

  11. Greetings from Carolina! I’m bored to tears at work so I decided to check
    out your site on my iphone during lunch break.
    I enjoy the info you provide here and can’t wait to take
    a look when I get home. I’m shocked at how quick your blog loaded on my
    phone .. I’m not even using WIFI, just 3G .. Anyways, good site!

  12. Hey are using WordPress for your site platform?
    I’m new to the blog world but I’m trying to get started and set up my own. Do you
    need any html coding knowledge to make your own blog? Any help would be really appreciated!

  13. I’m not sure where you’re getting your info, but good topic.
    I needs to spend some time learning much more or understanding more.
    Thanks for wonderful information I was looking for this info
    for my mission.

  14. Hiya very nice web site!! Guy .. Excellent ..
    Superb .. I will bookmark your website and take the feeds
    additionally? I’m glad to find numerous useful information here within the submit, we
    need develop more techniques in this regard, thank you for sharing.
    . . . . .

  15. Very energetic blog, I liked that a lot. Will there be a part 2?

  16. You are so awesome! I don’t believe I’ve read through something like that before.

    So wonderful to discover another person with unique
    thoughts on this topic. Really.. thanks for starting this up.
    This site is something that’s needed on the internet, someone
    with a little originality!

  17. This is my first time pay a visit at here and i am actually happy to read all at single place.

  18. Thanks , I’ve just been searching for info about this subject for a long time and
    yours is the best I have discovered till now.
    However, what in regards to the conclusion? Are you positive in regards
    to the supply?

  19. It is appropriate time to make some plans for the future and it’s time to
    be happy. I have read this post and if I could I wish to suggest you few interesting things or tips.
    Maybe you could write next articles referring to this article.
    I wish to read even more things about it! adreamoftrains web hosting company

  20. I’m amazed, I have to admit. Rarely do I encounter a
    blog that’s both educative and amusing, and without a doubt, you have hit the nail on the
    head. The problem is something which not enough men and women are speaking intelligently about.
    I’m very happy I came across this during my search for
    something relating to this.

  21. Why visitors still make use of to read news papers when in this technological world everything is
    presented on web?

  22. If some one wants to be updated with most up-to-date technologies afterward he must be pay
    a quick visit this web page and be up to date everyday.

  23. August says:

    I’m not sure where you are getting your information, however good topic.

    I must spend some time finding out more or figuring out more.
    Thanks for great information I was in search of this info for my
    mission.

  24. Just wish to say your article is as surprising.
    The clarity in your post is just excellent and that i
    could suppose you’re an expert in this subject. Well along with your permission allow me to grasp your feed to stay up to date with impending post.
    Thanks one million and please continue the enjoyable work.

  25. Useful info. Fortunate me I found your website accidentally, and I’m surprised why this coincidence didn’t happened earlier!

    I bookmarked it.

  26. Fantastic beat ! I wish to apprentice while you amend your site, how could i subscribe for a blog site?
    The account helped me a acceptable deal. I had been tiny bit acquainted of this your broadcast offered bright clear
    concept

  27. Thank you, I’ve recently been looking for info about this subject for a while
    and yours is the greatest I’ve came upon till now.
    But, what in regards to the conclusion? Are you sure concerning the supply?

  28. What i do not realize is in truth how you are
    not actually much more neatly-appreciated than you
    might be now. You’re so intelligent. You know thus significantly in relation to this subject, made me in my opinion consider it from a lot of numerous angles.
    Its like women and men don’t seem to be involved
    until it is something to accomplish with Girl gaga! Your personal stuffs outstanding.

    At all times take care of it up!

  29. Lousie says:

    I am sure this paragraph has touched all the internet visitors, its really really nice piece of writing on building up new weblog.|

  30. Have you ever thought about writing an e-book or guest authoring on other blogs?
    I have a blog based on the same topics you discuss and would love to have you
    share some stories/information. I know my viewers would appreciate your work.
    If you are even remotely interested, feel free to shoot me an e-mail.

  31. You’re so awesome! I do not suppose I have read through
    a single thing like that before. So wonderful to discover another person with a few
    genuine thoughts on this subject. Seriously.. thank you for
    starting this up. This site is something that’s needed on the
    web, someone with a little originality!

  32. Lee says:

    I love what you guys tend to be up too. This sort of clever work and reporting!

    Keep up the awesome works guys I’ve incorporated you guys to
    my blogroll.

  33. This post offers clear idea in favor of the new users of blogging,
    that really how to do blogging and site-building.

  34. Excellent way of explaining, and nice piece of writing
    to get facts regarding my presentation subject,
    which i am going to deliver in institution of higher education.

  35. Thanks for sharing your thoughts. I really
    appreciate your efforts and I will be waiting for your
    next write ups thank you once again.

  36. Hello would you mind letting me know which webhost you’re working with?
    I’ve loaded your blog in 3 completely different internet browsers and I must say this blog loads a lot quicker then most.
    Can you recommend a good hosting provider at a fair
    price? Kudos, I appreciate it!

  37. website host says:

    Hello there, just became aware of your blog through Google,
    and found that it is truly informative. I’m going to watch out for brussels.
    I will be grateful if you continue this in future. A lot of people will be benefited from your
    writing. Cheers!

  38. Hi there to every body, it’s my first pay a visit of this webpage; this web site
    contains awesome and really good data in favor of readers.

  39. Gloria says:

    I loved as much as you will receive carried out right here.
    The sketch is attractive, your authored material stylish.
    nonetheless, you command get bought an edginess over that you wish
    be delivering the following. unwell unquestionably come further formerly again since exactly
    the same nearly very often inside case you shield this increase.

  40. Hmm it looks like your site ate my first comment (it was extremely long) so
    I guess I’ll just sum it up what I had written and say, I’m thoroughly
    enjoying your blog. I as well am an aspiring blog blogger but I’m still new to everything.
    Do you have any tips for inexperienced blog writers?
    I’d certainly appreciate it.

  41. Zac says:

    For most up-to-date news you have to pay a visit internet and on web I found this web page as a most excellent site for most
    recent updates.

  42. Dorie says:

    Very nice post. I just stumbled upon your weblog and wanted to say that I’ve truly enjoyed
    browsing your blog posts. After all I will be subscribing to your rss feed and I hope you write again very soon!

  43. Darla says:

    Someone necessarily assist to make significantly posts I might state.
    This is the very first time I frequented your website page
    and to this point? I surprised with the research you made to create this actual publish extraordinary.
    Wonderful process!

  44. Rayford says:

    After I originally commented I seem to have clicked the
    -Notify me when new comments are added- checkbox and from now on every
    time a comment is added I receive 4 emails with the same
    comment. Perhaps there is a means you are able to remove me from
    that service? Thanks!

  45. This page certainly has all the information I
    wanted concerning this subject and didn’t know who to ask.

  46. live chat says:

    Its not my first time to pay a quick visit this site, i am visiting this web site dailly and obtain fastidious data from here daily.

  47. 真空阀门 says:

    Greate article. Keep writing such kind of information on your site.
    Im really impressed by your blog.
    Hey there, You’ve done a fantastic job.

    I will definitely digg it and for my part recommend to my friends.
    I’m confident they will be benefited from this website.

  48. Adell says:

    Hi excellent blog! Does running a blog similar to
    this take a lot of work? I’ve very little knowledge of coding however I had
    been hoping to start my own blog soon. Anyhow,
    should you have any recommendations or techniques for new blog owners please share.

    I understand this is off topic however I just wanted to ask.
    Thanks a lot!

  49. web design says:

    Pretty nice post. I just stumbled upon your weblog and wanted
    to say that I have truly enjoyed surfing around your blog posts.

    In any case I will be subscribing to your feed and I
    hope you write again soon!

  50. Ashley says:

    Keep on working, great job!

  51. Candra says:

    Hello, every time i used to check weblog posts here early in the daylight, because i like to learn more and more.

  52. Daryl says:

    This paragraph provides clear idea designed for the new people of blogging, that actually
    how to do blogging and site-building.

  53. Richard says:

    I am regular visitor, how are you everybody? This post posted at
    this web page is truly good.

  54. Wow that was odd. I just wrote an extremely long comment but after
    I clicked submit my comment didn’t show up.
    Grrrr… well I’m not writing all that over again.
    Anyhow, just wanted to say fantastic blog!

  55. USPS says:

    Thank you for sharing your thoughts. I really appreciate your efforts and I will be waiting for
    your next post thank you once again.

  56. 真空烘箱 says:

    Valuable information. Lucky me I found your web site by chance, and
    I am stunned why this accident did not came about earlier!
    I bookmarked it.

  57. My brother suggested I might like this website.
    He used to be entirely right. This submit actually made my
    day. You can not believe simply how a lot time I had spent for this information! Thank you!

Leave a Reply

Your email address will not be published.