Sharing technical posts, make money online, ...

Showing posts with label blockchain. Show all posts
Showing posts with label blockchain. Show all posts

Friday, July 27, 2018

In simplest terms, blockchain uses a combination of cryptography and a public ledger to create trust between parties while maintaining privacy             

Understanding the mechanics of how this works is a little bit more difficult, but in order to fully appreciate the genius behind blockchain technology we’ll need to dive into the technical details.

While blockchains can include many more features, the fundamentals of a blockchain are in the technology’s name:

●    The block - A block is a list of transactions from a certain time period. It contains all the information processed on the network within the past few minutes.
●    The chain - Each block is timestamped, placed in chronological order, and linked to the block before it using cryptographic algorithms. These algorithms are difficult for computers to calculate and often take several minutes for the fastest computers in the world to solve. Once solved, the cryptographic chain locks the block into place, making it difficult to change. (We’ll look at this in greater depth in just a minute).

The chain grows longer over time. Once a new block is created, the computers on the network work together to verify the transactions in the block and secure that block’s place in the chain.

In this chapter, we’ll take a look at what’s inside of a block and how one gets created. We’ll then turn to the chain and examine the different ways today’s blockchains are secured. We’ll try to avoid computer code and complicated explanations. The important thing here is getting a basic understanding of how the parts of a blockchain work together.

Distributed Ledgers

The most fundamental part of the blockchain is the ledger. It’s where information about the accounts on the network is stored. The ledger inside the blockchain is what replaces the ledger at a bank or other institution. For a cryptocurrency, this ledger usually consists of account numbers, transactions, and balances. When you submit a transaction to the blockchain, you’re adding information to the ledger about where currency is coming from and going to.

As we’ve already seen, a blockchain ledger is distributed across the network. Every node on the network keeps its own copy of the ledger and updates it when someone submits a new transaction. This “distributed ledger” is how blockchain intends to replace banks and other institutions. Instead of having the bank keep one official copy of the ledger, we’ll have everyone keep their own copy of the ledger and then we’ll verify transactions by consensus.

Each blockchain technology has its own ledger, and the various ledgers work very differently (as we’ll see). However the Bitcoin ledger, the first blockchain ledger, requires three pieces of information to list a transaction:

●    An input - If Amy wants to send Ben a Bitcoin, she needs to tell the network where she got that Bitcoin in the first place. Maybe Amy received the Bitcoin yesterday from Sarah, so the first part of the ledger entry says so
●    An amount - This is how much Amy wants to send to Ben;
●    An output - This is Ben’s Bitcoin address where the Bitcoin should be deposited

Now comes a difficult-to-grasp concept: there is no such thing as a Bitcoin. Of course, there are no physical Bitcoins. You probably already knew that. However, there are also no Bitcoins on a hard drive somewhere.

You can’t point to a physical object, digital file, or piece of code and say, “this is a Bitcoin.” Instead, the entire Bitcoin network is only a series of transaction records. Every transaction in the history of Bitcoin lives in the Bitcoin blockchain’s distributed ledger. If you want to prove that you have 20 Bitcoins, the only way you can do it is by pointing to the transactions where you received those 20 Bitcoins.

Almost all blockchains have this characteristic in common. The transaction history is the currency, there’s no difference between the two. Some new cryptocurrencies are altering the way the ledger is written in order to provide greater anonymity and privacy in transactions. They use certain identity masking techniques to hide the sender and receiver of the transaction while still maintaining a functional distributed ledger. (We’ll look at this in greater depth in the chapters on Dash, Zcash, and Monero.)

The “Double Spend” Problem

Of course, since there is no such thing as a physical cryptocurrency or even a digital file you can point to, we run into a few technical challenges implementing a digital currency. The biggest of these challenges is the double spend problem, where an attacker could send you a token and then send someone else the same token a moment later. Double spend means that tokens could be spent multiple times, increasing inflation and devaluing the cryptocurrency.

When you send a transaction on the Bitcoin blockchain, for instance, you’re merely forwarding a transaction you received from someone else. The double spend problem comes when an attacker tries to send a transaction twice, so it works like this:

✓ The attacker receives Bitcoin from Alice
✓ The attacker’s wallet looks like this: [Alice -> 1BTC -> Attacker] & [Bob -> 1 BTC -> Attacker]
✓ The attacker then spends the money by forwarding a past transaction. For instance, [Alice > Attacker > You]
✓ The double spend problem comes when the attacker simultaneously spends the coin twice. For example: [Alice > Attacker > You, 1 BTC] AND [Alice > Attacker > Someone Else, 1 BTC] right after each other.

When you use a bank, the bank would catch this error and invalidate one of the transactions. However, Bitcoin doesn’t have a central authority. Instead, Bitcoin uses cryptography to make it statistically very difficult to create false transactions.

​First, the attacker could not double spend at the same instant. If he sent two conflicting transactions at the same time, everyone on the network would be able to see both those transactions in the same block. The network would invalidate one.

​The attacker could try double spending one right after the other. However, the network would also reject a transaction that references an already-spent coin.

​The attacker’s only chance is to convince part of the network to accept one of his transactions and convince the other part of the network to accept the other transaction. This splits the network into two streams, called “forks.” Multiple forks of the blockchain can exist on Bitcoin.

The creators of Bitcoin solved this forking challenge, and double spend problem, by making the link between blocks difficult to compute. Since it takes so long to cryptographically create and validate a new block, it’s unlikely two blocks will be created at the same time. Even if two blocks are created simultaneously, the Bitcoin protocol directs participants in the network to follow the longest chain. As soon as a new block is created the network will revert back to a single version of the ledger.

Since multiple forks are theoretically possible, it’s wise to wait for multiple blocks to go by before considering a transaction “confirmed.” Once confirmed, however, that transaction is immutable. It’s nearly impossible to create a fraudulent blockchain fast enough to replace the honest blockchain. Let’s dive into how it works.

The Ultimate Beginner’s Guide about Blockchain Wallet, Mining, Bitcoin, Ethereum, Litecoin, Zcash, Monero, Ripple, Dash, IOTA and Smart Contracts

By Alan T. Norman

Monday, November 6, 2017



What is Bitcoin Mining?

Simply put; Bitcoin mining is the process whereby new Bitcoins are generated. When fiat coins are minted, metal sheets are fed through a machine that presses out blank coins. Those coins are then impressed with a design that designates their value. Because Bitcoin does not exist as cash, new Bitcoins must be created through a different process. That process is mining. Bitcoin mining serves an additional purpose, as well: it is the process whereby transactions are verified and added to the public ledger.

The first Bitcoin block — the Genesis block — was mined by Satoshi Nakamoto on January 3, 2009. Since then, thousands upon thousands of blocks have been mined, leading to millions of Bitcoins being in circulation. There is an upper limit to how many Bitcoins can be in circulation; only 21 million can be produced, and that cap is expected to be reached in about the year 2140.

How Bitcoin Mining Works

To work properly, the Bitcoin network needs a lot of people. If only a handful of people were operating the network, those few people could collude together to manipulate all of the data in the blockchain and make themselves rich. Bitcoin would quickly become an oligarchy rather than a peer-to-peer currency.

Additionally, it would functionally revert back to the client-server model that is prone to hacking and security breaches, the very thing that blockchain was created to prevent.

The diagram below illustrates the difference between the traditional client-server model and the peer-to-peer network that Bitcoin uses.

In the first picture, you see that all of the computers must connect to a central server to receive their information. What happens if the server is somehow corrupted (say that it contains a virus or has been hacked so that all of the information in it is being siphoned off to someone)? Well, all of the computers connected to that server will fall prey, in some way, to whatever has occurred within the server.

Blockchains such as Bitcoin operate as a peer-to-peer network, as seen in the second picture. This means that instead of connecting to a central server, the users connect to each other. While there may certainly be some unscrupulous individuals on the network who are trying to find weaknesses to exploit, their missions will fail unless they can convince every single other person on the network to join in on their shenanigans. It would take every single user on the network to override the verification process and retroactively manipulate any of the information contained in the blockchain’s digital ledger.

Enter the process of mining, a built-in fail-safe mechanism that enhances the verification process. Users all over the globe connect their computers to the Bitcoin network, thereby actually contributing their computer’s power and resources to upholding the blockchain. These computers store the entire blockchain on special software for the purpose of validating new transactions. The entire network must agree on new transactions that have occurred to prevent a problem known as double-spending. Double-spending is what happens when someone attempts to spend the same value twice. For example, imagine that Bob has $10 in his bank account, and he owes both Jim and Joe $10 each. Bob thinks of an easy solution: simultaneously write two checks, each for $10, and the bank will refuse to cash the one that is brought last.

With Bitcoin, there is no central bank to refuse the second check (or transaction), so how can the network ensure that no one spends a Bitcoin value twice? When creating Bitcoin, Satoshi Nakamoto implemented a process called proof-of-work to ensure against double spending. Proof-of-work is, as the name implies, a process that ensures that work was done to carry out the transaction. Remember that all of the information contained within a block of transactions must be verified before it can become a part of the Bitcoin blockchain. The information is combined with the hash of the previous block to create a new hash, a cryptographic puzzle that must be solved for the block to be verified. If a shred of information within the block is changed, if so much as a comma is added or space is deleted, the entire hash will change. Things will get really messy for the rest of the blockchain because that hash value is used to generate the hash value of the next block. Everyone on the network will know that someone tried to tamper with that information, and the attempt to manipulate it will fail.

Miners, people whose computers are connected to the Bitcoin network to verify the transactions, use their computing power to solve the puzzle. Basically, their computers generate a series of random guesses. It takes about 10^21 number of guesses to generate the correct answer, which equals a lot of computing power! It actually takes about 10 minutes for a computer to generate the answer, meaning that transactions take about 10 minutes to process. Some new computer chips and programs have been generated, which increase the speed at which the computer can find the answer. More computing power means the ability to generate more of these random guesses, thereby increasing the probability that one of those guesses will be correct. Whoever comes up with the correct answer first wins a reward of new Bitcoins, which are generated through the process of verification. As technology evolves and miners are able to come up with the answer faster, the difficulty level of the algorithms increases. This is to ensure that a certain amount of work is still done to verify the transactions and that only a certain number of Bitcoins are in circulation.

Mining isn't free. It can be a great way for people to earn extra money, as long as their computers are incredibly efficient regarding power. For mining to be cost-effective, the cost of the energy used to power the computer must be less than the amount of money generated by the rewards. Let's go back for a minute to the idea of retroactively changing information in a block. Remember that if any information is changed, even just a measly period or apostrophe, the entire hash will change, which therefore changes the hash of every subsequent block in the blockchain. What this means is that you would have to go back and re-mine every single block! If mining one block takes 10 full minutes and a whole lot of computational power (read: money in the form of energy), then even if you could find a way to go back and retroactively change the information, the process would be cost-prohibitive.

So, how does this process of mining and verifying blocks prevent the problem of double spending? Consider that it takes about 10 minutes to verify a single block of transactions. A naive user might assume that he has 10 minutes to spend that amount as many times as he wants. Imagine that Emil has a total of one Bitcoin in his account. He buys a used car from Emily using that one Bitcoin. A split-second later, he uses that same Bitcoin to buy a riding lawnmower from Emilia. Each of those transactions will be sent to every single node on the network; given the sheer size of the network and latency involved, it is entirely feasible that the second transaction will get delivered before the first one and therefore be verified first. The other transaction will not be able to be verified, and unfortunately, Emily will have to find someone else to buy her clunker.

Mastering Bitcoin for Beginners - Neil Hoffman

Friday, November 3, 2017

Just as the phrase might imply, “data mining” is the practice of searching through numerous pieces of data in order to “mine” or bring up the particular kernel of information that you are looking for. It was about 40 years ago that data mining became common practice in commerce. The block chain now seeks to make use of this phenomenon as well. In this chapter we will explore all the ways that data mining relates to the block chain.



Mining the Block chain

When we say “mining” as it pertains to the block chain, we are talking about a massive “computational review” proceeding taking place, followed by a consensus in the block chain ecosystem occurring in rapid succession. In the process of mining the block chain, a careful look is taken all up and down the long line of transactions, checking for proof of purchase and making sure that everything is legitimate.

This enables everyone involved to know just how much calculated value is being moved through the ecosystem in each of the exchanges that are made. Every single chunk of information in the block chain must be in sync with the last, and be able to be processed in an orderly fashion. Every chunk of information which is added to the chain causes other mining enthusiasts to make their own copy of the transaction making sure the whole block chain ecosystem stays updated as it goes along.

The block chain serves to solve the old problem of how to handle double spending. Because with block chain, transactions can not be completed until computational resources are expended to solve a block of data. These blocks of data are time stamped as soon as they are solved, this thereby prevents someone else from trying to solve the same block, since the stamped time reveals when it was that the transaction went through.

This then helps to finally solve the computational puzzle of double spending or as it is otherwise known, “The Byzantine General’s Problem” once and for all. This is all thanks to being able to mine the block chain. Block chain miners are finding new rewards every single day with their implantation of mining the chain. It has been a truly rewarding experience and many of us could directly benefit from it. And perhaps you could too!

A look at Mining Hardware 

Mining was initially carried out most frequently with the standard, Central Processing Unit that comes with every personal computer. These CPU’s are in charge of handling and processing most applications on your computer. If you are reading these words on a computer screen right now, it is your computer’s Central Processing Unit that is making sure that the file stays up and running on your device while it simultaneously keeps track of other vital aspects of running your computer.

The standard CPU can usually handle these routine tasks without a problem, and when mining the block chain first came in vogue, it was ready to take on this new chore as well. But as the number of miners on the network became more prevalent, it became harder and harder for the standard CPU to keep up. And soon it was abundantly clear that that the hardware used for mining needed a serious upgrade.

This is when mining enthusiasts first turned their attention to Graphic Processing Units as a potential upgrade in mining hardware. A Graphical Processing Unit or as it is abbreviated, “GPU” is a processing unit geared specifically toward the interpretation of graphics. If you have ever played a video game there is a GPU hard at work making sure that every single bit of pixilated data is processed as you play to your little heart’s content.

By their very nature, GPU’s are simply much more qualified for the task of mining the block chain than CPU’s are. Aiding GPU’s in this are their “Arithmetic Logic Units” that are able to read large levels of information in several sequences. As good as GPU’s are for the task of mining however, they were soon outmatched by the use of “Field Programmable Gate Arrays”.

These field programmable gate arrays are circuit based systems that are integrated and custom made to work with the process power needed for most block chain applications. These Field Programmable Gate Arrays come complete with their own “logic blocks” that can be manipulated at will in order to solve whatever computational equation needs to be figured out.

The next piece of hardware to come along for block chain miners was that of the “ASIC” or as it is otherwise known, the “Application Specific Integrated Circuits”. The use of this piece of mining hardware really came into vogue in the block chain community back in 2013. This was when the kind of ASIC needed specifically for block chain was first distributed for wider range consumption at a price that the average block chain miner could afford.

It is with these pieces of mining hardware that block chain mining really took off. It’s now not uncommon to find whole companies and corporations making use of massive amounts of hardware and resources for their own mining purposes. Block chain mining is big business, but you have to have the right kind of hardware on your mining rig in order to succeed.

A Look at Mining Software 

Most mining software is ready for use for both Mac and Windows computers. This software is generally free for public consumption and can be downloaded directly to your computer. As soon as the mining software is installed you can then take a look at the performance specs unique to your personal computer and mining rig setup, including the speed of the hash rate, as well as knowing the status of the nonce that is used.

The software could be started up from a USB drive, CD, or downloaded directly from a secure website. Once installed you need to monitor the progress directly to make sure that as the system progresses, your hash rate is improving. With your software installed you can then begin setting your “miner” to work. You may not see results immediately, but give it enough time and you will learn how to mine your own corner of the block chain.

Difficulties posed in Mining 

One of the biggest difficulties posed by block chain mining is the amount of electricity that is consumed in the process. With a heavily outfitted mining rig you could easily rack up a bill of about $50 a day, so be prepared for this contingency. It is for this reason that many miners have pooled their resources together in order to mitigate the expenses accrued.

Known as “mining pools” these workers of the block chain share all the potential burdens and profits alike. There are many inherent difficulties presented in the process of data mining on the block chain but when you can pool your resources together you can significantly reduce the burden on yourself. So as it pertains to mining on the block chain—when the going gets rough—reduce the strain of the chain folks, and get yourself into a mining pool!

The Complete Guide to Understanding Block Chain Technology By Matthew Scott

Thursday, November 2, 2017

Now that we have a better understanding of the concept of Block Chain, let’s now put that concept into action! This chapter gives you a few real world scenarios in which block chain is applied from Bitcoin and beyond, here some of the best examples of the block chain at work!



Starting up a Block of Data with Block Chain 

As we have already discussed, the idea of a “block chain” is that it consists of an unbroken chain of data storing up transactional information in each block. These blocks are then enshrined on the network for all to see. Each of these blocks then has a hash applied to them. You might ask; what is a hash? Is it similar to a Hash Tag like you find on Twitter? A hash brown like you get from the breakfast menu at McDonalds? What is a hash?

Well—in strictly block chain speak, a hash is something that works as a kind of finger print with “unique identifiers” which are “time stamped” and placed directly over the chunk of data in the chain. Since no one would be able to change, alter, or duplicate this unique, time stamped hash, it is said to be “tamper proof”. Good news for anyone wishing to rely on the network and start up their own block of data with block chain.

When you begin a block of data on the block chain you are essentially beginning your own little testament in the transactional world. You are permanently locking down all of your financial assets into one small chunk of information on a public ledger for all to see. Once this is accomplished you will know that you have achieved something very great. Great enough to last a lifetime as your data remains perfectly encapsulated on the block chain.

Sharing the Ledger 

Share and share alike I say, and when it comes to the block chain shared ledger there is nothing better. This public ledger has an unimpeachable record of providing solid transactions all across the block chain ecosystem. In this shared ledger your transactions can hold all information in regard to commerce across the network.

Shared data between users, and unique permissions given between users. One of the greatest innovations of the block chain is the fact that it can share information over great distances with people that have nothing to do with each other and yet not allow any one entry enough data to locate the source of the tidbits that they do receive.

In this sense you can think of the public ledger as a kind of assembly line in which all of the participants get a small chunk of the data, or a small piece of the larger assembly, but none of them have quite enough information to put together the whole on their own. In this way you can share the public ledger with complete confidence that no one will actually be able to steal your personal information from the data base.

How Block Chain uses Consensus 

Anyone who has been in business, or even just worked on a team for very long, has to know a little something or other about building consensus. You have to build consensus with clients, as well as with coworkers on any given project in order to succeed. So why not build consensus on something as important as your money as well? The block chain provides that consensus for you.

It gives you proof of purchase, multiple signatures for verification and most importantly, a valid means of breaking through the classic conundrum of the “Byzantine Fault Tolerances” by using different nodes in the network to communicate different things. Block chain also builds consensus of “smart contracts”. All of these things combined help to build consensus.

And the block chain has a remarkable ability when it comes to doing just that. The block chain is able to singlehandedly bring people together from all over the network in order to determine the validity of a purchase or transaction. The scope and the implications of this consensus are nothing short of incredible. How block chain uses this consensus is the number one standout feature of the technology and its ultimate reach is still unknown.

Block Chain in Business 

Strong international commerce has been a great factor in the accumulation of riches. And in recent years this commerce has worked very hard to overcome any friction that may be present during a transaction. Advances in communication tech for example, have constantly worked to reduce the detriment of conducting business from two points that geographically far apart, bringing the users together like never before.

But despite some of these more outward advances such as telephones, and the internet, that served to greatly reduce the challenge presented by miles of separation, many other problems remain. The block chain seeks to ameliorate the remaining disparities. In this fashion block chain seeks to get rid of the market friction inherent in many other platforms and thereby opening up the floodgates of opportunity.

It has been said before that business is not just about making money, it is also about making people. And when we say it is about making people we mean that it is about making up the data that certain people represent. It is this secure chain of data, and personal information; that makes the business of the block chain worthwhile.

Taking the Friction out of your Business 

It takes a real innovator to chip away at the friction that is inherent in much of the business world of today. The advent of the first telephones is a perfect example of this, since it cut right through the snail pace of shipping out mailed correspondence by immediately allowing someone to speak with their business partner over large distances.

The internet of course, kicked all of this up into high gear as well, and now with digital currency and the implementation of block chain technology we have seen a gigantic leap once again. The open, public ledger or block chain technology is yet another means of taking friction out of your business. Things couldn’t be smoother with the block chain handling your transactions.

Block chain also helps to streamline permissions, allowing those who use it to conduct exchanges with ease, in the full knowledge that the person on the other end of the transaction really is the person they claim to be. This is certainly a great asset for the long distance, often anonymous transactions that we have in today’s world.

The sheer security inherent in the block chain itself can not be underestimated either. This cryptography allows for the assurance that no one can tamper with your chunk of data in the block chain. Block chain also takes much of the friction in regard to consensus out of your transactions in regard to just how tamper proof the system really is.

Block chain also serves to reduce friction in many business dealings simply though it’s trusted and streamlined nature. This simplification of transactions works in great contrast with those who have complex regulations and operating procedures. Instead of reducing profits from too much regulation, the ease of the block chain serves to double them!

If you would like to take a lot of the regulation out of block chain, then it is simply a matter of focusing on the lock trap nature of the technology. Since the block chain can slam shut on most of the info that you put into it, you no longer have to worry about leaks, or any other compromise of your information. This will serve to take a great deal of friction out of your business.

Taking a Tour of the Block Chain Ecosystem 

Through upgrading our awareness, the platform known as block chain positions itself as a transformational agent of change for the entire block chain ecosystem. Some of this kind of transformative agency can then be used to streamline entire industries, taking outmoded performances of the past and making them much better in the present.

Block chain can play a vital role in information transference from weigh station to weigh station all down the line of production without any worry of corruption or fraudulent tampering. This extra security boosts the entire block chain ecosystem. And if you were to take a tour of the entire block chain ecosystem you would no doubt see that this security is an on the fly, work in progress that learns from its mistakes.

The security of the block chain is not 100% perfect but it is always striving to be so! It is a process of trial and error, and with each bump in the road it gets just a little bit better. Just take a tour of the block chain ecosystem sometime, and you will learn all these things for yourself!

Commercial Financing 

Commercial corporations want to buy products through accreditation, and that line of credit must have thorough presentation in order to keep from having any arguments with the transactional data emerge later on. With over 4000 applications on the block chain, the juggernaut of IBM currently provides a good example of this commercial financing in action.

In fact, IBM global financing is currently using 125,000 of their clientele in over 60 nations across the planet to mediate any disputes that come forward. This has been projected to save IBM as much as 75% when it comes to financial costs and services. So if you have some kind of dispute with a client don’t hire a high priced Silicon Valley attorney, hire the block chain to do your work for you!

The Complete Guide to Understanding Block Chain Technology By Matthew Scott