Block Chain Notes
Block Chain Notes
Block Chain Notes
Definition
A blockchain is “a distributed database that maintains a continuously growing
list of ordered records, called blocks.” These blocks “are linked using
cryptography. Each block contains a cryptographic hash of the previous block,
a timestamp, and transaction data. A blockchain is a decentralized, distributed
and public digital ledger that is used to record transactions across many
computers so that the record cannot be altered retroactively without the
alteration of all subsequent blocks and the consensus of the network.
Blockchain explained
As described in Blockchain for Dummies, “Blockchain owes its name to the
way it stores transaction data—in blocks linked together to form a chain. As
the number of transactions grows, so does the blockchain. Blocks record and
confirm the time and sequence of transactions, which are then logged into the
blockchain, within a discrete network governed by rules agreed to by the
network participants.
“Each block contains a hash (a digital fingerprint or unique identifier),
timestamped batches of recent valid transactions, and the hash of the
previous block. The previous block hash links the blocks together and
prevents any block from being altered or a block being inserted between two
existing blocks.” In theory, the method renders the blockchain tamperproof.
The four key concepts behind blockchain are:
Each blockchain network has various participants who play these roles,
among others:
Blockchain security
Blockchain is frequently claimed to be an “unhackable” technology. But 51%
attacks allow threat actors to “gain control over more than half of a
blockchain’s compute power and corrupt the integrity of the shared ledger. …
While this particular attack is expensive and difficult, the fact that it was
effective means that security professionals should treat blockchain as a useful
technology—not a magical answer to all problems.”
The 51% attack takes advantage of what is known as the 51% problem: “If a
single party possesses 51% of a mining pool, it is possible to falsify an entry
into the blockchain, allowing for double spending, and even to fork a new
chain to the advantage of the mining pool.”
The two main types of blockchain, public and private, offer different levels of
security. Public blockchains “use computers connected to the public internet
to validate transactions and bundle them into blocks to add to the ledger. …
Private blockchains, on the other hand, typically only permit known
organizations to join.” Because any organization can join public blockchains,
they might not be right for enterprises concerned about the confidentiality of
the information moving through the network.
Another difference between public and private blockchains regards participant
identity. Public blockchains “are typically designed around the principle of
anonymity. … A private blockchain consists of a permissioned network in
which consensus can be achieved through a process called ‘selective
endorsement,’ where known users verify the transactions. The advantage of
this for businesses is that only participants with the appropriate access and
permissions can maintain the transaction ledger. There are still a few issues
with this method, including threats from insiders, but many of them can be
solved with a highly secure infrastructure.”
Blockchain technologies are growing at an unprecedented rate and powering
new concepts for everything from shared storage to social networks. From a
security perspective, we are breaking new ground. As developers create
blockchain applications, they should give precedent to securing their
blockchain applications and services. Activities such as performing risk
assessments, creating threat models, and doing code analysis, such as static
code analysis, interactive application security testing, and software
composition analysis, should all be on a developer’s blockchain application
roadmap. Building security in from the start is critical to ensuring a successful
and secure blockchain application.
How does blockchain work?
Blocks are the ledgers that are being updated and added to,
filled with permanently recorded data. Transactions are
added to this database and synced with every node of the
blockchain. The block height refers to the amount of
connected blocks at a certain time, growing with every new
block stacked on the previous block.
Blockchain beginnings
While the idea of solidified blocks of data has been around for
a while, blockchain technology as it is currently known is
attributed to an individual with the pseudonym Satoshi
Nakamoto. In 2008, Satoshi Nakamoto proposed this new
concept in a paper entitled “Bitcoin: A Peer-to-Peer Electronic
Cash System.” A year later the currency was released to the
public on the blockchain system as we know it.
Cryptocurrency popularity
From Bitcoin to Ethereum (ether) to the thousands of other
digital currencies currently on the market, cryptocurrencies
continue to be the most popular use for blockchain
technology and data management – but there are rapidly
developing industries that may already be impacted by the
trajectory of these technologies.
It’s not just individual investors who are excited about crypto.
From smart contract functions to the adoption of crypto
currencies as legal tender – Sri Lanka adopting Bitcoin as
discussed in free Stanford Online webinar, "The Future of
Blockchain and Cryptocurrencies,” for example – signals the
long term effects of blockchain technology.
In the same manner, a lot of computing power is consumed in the process of mining
bitcoins. The number of bitcoins that are generated from mining dwindles over time. In
the words of Satoshi Nakamoto, there is only a limited supply of bitcoins. Only 21 million
bitcoins will ever be created.
At its core, the term ‘Blockchain mining’ is used to describe the process of adding
transaction records to the bitcoin blockchain. This process of adding blocks to
the Blockchain is how transactions are processed and how money moves around
securely on Bitcoins.
Anyone can apply to become a Blockchain miner. These Blockchain miners install and
run a special Blockchain mining software that enables their computers to communicate
securely with one another.
Once a computer installs the software, joins the network, and begins mining bitcoins, it
becomes what is called a ‘node.’ Together, all these nodes communicate with one
another and process transactions to add new blocks to the blockchain which is
commonly known as the bitcoin network.
This bitcoin network runs throughout the day. It processes equivalent to millions of
dollars in bitcoin transactions and has never been hacked or experienced downtime
since its launch in 2009.
Types of Mining
The process of mining can get really complex and a regular desktop or PC cannot cut it.
Hence, it requires a unique set of hardware and software that works well for the user. It
helps to have a custom set specific to mining certain blocks.
Once the solution is found, all the other miners in the blockchain network will validate
the decrypted value and then add it to the blockchain. Thus, verifying the transaction.
2. Pool Mining
In pool mining, a group of users works together to approve the transaction. Sometimes,
the complexity of the data encrypted in the blocks makes it difficult for a user to decrypt
the encoded data alone. So, a group of miners works as a team to solve it. After the
validation of the result, the reward is then split between all users.
3. Cloud Mining
Cloud mining eliminates the need for computer hardware and software. It’s a hassle-
free method to extract blocks. With cloud mining, handling all the machinery, order
timings, or selling profits is no longer a constant worry.
While it is hassle-free, it has its own set of disadvantages. The operational functionality
is limited with the limitations on bitcoin hashing in blockchain. The operational expenses
increase as the reward profits are low. Software upgrades are restricted and so is the
verification process.
Get 100% Hike!
How can you mine bitcoins?
You can buy and trade for bitcoins, or you can mine them. For mining bitcoins, users
are rewarded in bitcoins. This mechanism forms the pivot around which the bitcoin
economy revolves.
While the cost and difficulty of mining bitcoins individually continue to increase, several
cloud-based mining services have gradually emerged. These services allow individual
users to lease the processing power of mining equipment and mine bitcoins remotely.
However, you can mine bitcoins in person too.
Obtain a bitcoin wallet: Bitcoins are stored in digital wallets in an encrypted manner. This
will keep your bitcoins safe.
Secure the wallet: Since there is no ownership of bitcoins, anyone who gains access to
your blockchain wallet can use it without any restriction. So, enable two-factor
authentication and store the wallet on a computer that does not have access to the Internet
or store it on an external device.
Choose a cloud mining service provider: Cloud mining service providers allow users to
rent processing or hashing power to mine bitcoins remotely. Popular cloud mining service
providers are Genesis Mining and HashFlare.
Choose a cloud mining package: To choose a package, you will need to decide on how
much you are willing to pay and keep your eyes open to the hashing power the package
will offer. Cloud mining companies will mostly envisage the Return on Investment (ROI)
based on the current market value of Bitcoins.
Pick a mining pool: This is the best shot you can get to earn bitcoins easily. There are
many mining pools that charge a mere 2 percent of your total earnings. Over here, you will
have to create workers which are basically subaccounts that can be used to track your
contributions to the pool.
Put your earnings in your own secure wallet: Whenever you witness an ROI, simply
withdraw your earnings and put them in your own secure wallet.
1. Validating Transactions
Bitcoin transactions take place in huge figures every day. Cryptocurrencies function
without a central administrator and the insecurity can be substantial with the
transactions that transpire. So, what is the authentication method with such
cryptocurrencies? With each transaction, new blocks are added to the blockchain in the
network and the validation lies in the mining results from the blockchain miners.
2. Confirming Transactions
Miners work the blockchain mining process to confirm whether the transaction is
authentic or not. All confirmed transactions are then included in the blockchain.
3. Securing Network
To secure the transaction network, bitcoin miners work together. With more users
mining the blockchain, blockchain network security increases. Network security ensures
that there are no fraudulent activities happening with cryptocurrencies.
TYPES OF NODES
Definition: A blockchain is a distributed ledger composed of a network
of multiple nodes. Blockchain nodes are the moderators that build the
infrastructure of a decentralized network. Their primary function is to
maintain the public ledger's consensus, which varies according to the
type of node. The architecture and design requirements of a particular
blockchain protocol determine the types of nodes. Each of the nodes
has a specific role to play in maintaining the operation of the
blockchain ecosystem.
1. Full Nodes
2. Light Nodes
Miner
An Archival Full Node stores the entire blockchain ledger, meaning all
the transactions, back to the beginning of time. Archival Full Nodes
are the only valuable and reliable source for verifying transaction data
from earlier in a blockchain’s history, as they aren’t afflicted by the
time or storage limit of Pruned Full Nodes. This type of blockchain
node needs to have a large amount of memory available.
While Pruned Full Nodes are beneficial in the network since they
improve security and decentralization, Archived Full Nodes are
essential since they are the only method for the blockchain to remain
fully operational.
6. Authority Nodes
7. Master Nodes
8. Staking Nodes
9. Lightning Nodes