Professional Documents
Culture Documents
2. Processing Speed
Smart contracts can improve the processing speed of business processes that run across
multiple enterprises.
3. Autonomy
Smart contracts are performed automatically by the network and reduce the need for a
third party to manage transaction between businesses.
4. Reliability
Smart contracts can also take advantage of blockchain ledgers and other distributed
ledger technologies to maintain a verifiable record of all activity relate to execution of
complex processes and that cannot be changed after the fact. It also supports automated
transaction that remove the potential for human error and ensure accuracy in executing
the contracts.
______________________________________________________________________________
What are the layers of blockchain.?
⚫ Network layer
⚫ The network layer which is also known as the P2P layer is the one that is responsible for
internode communication.
Blockchain Page 1
internode communication.
⚫ Network layer takes care of discovery, transactions, and block propagation.
⚫ This layer can also called as propagation layer.
⚫ This P2P layer ensures that nodes can discover each other and able to communicate,
propagate and synchronize with each other to maintain valid current state of the blockchain
network.
⚫ P2P network is a computer network where nodes are distributed and share the network’s
workload to reach the end goal.
⚫ Nodes perform transactions in the blockchain.
⚫ There are two kinds of nodes i.e full node and light node.
⚫ Full nodes guarantees the verification and validation of transactions, mining and
enforcement of consensus rules.
⚫ Light nodes only keep the header of the blockchain and can send transactions.
⚫ Consensus layer
⚫ The consensus layer is the core to the existence of blockchain platforms.
⚫ The consensus layer is the most critical and crucial layer for any blockchain be it Ethereum,
Hyperledger or any other.
⚫ Consensus layer is responsible for validating the blocks, ordering the blocks and ensuring
everyone agrees on it.
⚫ The following are the key points regarding the consensus layer:
⚫ Consensus layer create a definite set of agreements between nodes across the distributed
P2P network.
⚫ Consensus layer ensures that power remains distributed and decentralized.
⚫ Thus no single entity can control the entire blockchain network.
⚫ Consensus layer guarantees that a single chain is followed and that it holds the truth.
⚫ Consensus layer is the rules that nodes follow to ensure that transactions are validated
within the boundaries of those rules and that blocks follow those rules.
⚫ Consensus protocol helps to achieve the reliability in a P2P network.
⚫ Application layer
⚫ The application layer comprised of smart contracts, chaincode and DApps.
⚫ Application layer is further divided into two sub-layers i.e application layer and execution
layer.
⚫ Application layer comprise of the applications that are used by end users to interact with
the blockchain network.
⚫ It comprises of scripts, APIs, user interfaces and frameworks.
⚫ For these applications blockchain network is the back-end system and they connect with
blockchain network via APIs.
⚫ Execution layer is the sublayer which consists of smart contracts, underlying rules and
chaincode.
⚫ A transaction travels from application layer to execution layer however the transaction is
validated and executed at the semantic layer.
⚫ Applications send instructions to execution layer which performs the execution of
transactions and ensure the deterministic nature of the blockchain.
_____________________________________________________________________________
Blockchain Page 2
• Collisions are incredibly unlikely: There are 2256 possible hash values when using
SHA-256, which makes it nearly impossible for two different documents to coincidentally
have the exact same hash value. (More on this in the following section).
• The avalanche effect: Unlike some older hashing algorithms, even a very minor change
to the original information completely changes the hash value—what is known as an
avalanche effect.
_____________________________________________________________________________
1.Node Application:-
⚫ Every computer, connected to the internet, needs a node application specific to the
blockchain ecosystem that it wants to participate in.
⚫ some of the examples of node application are bitcoin wallet application and bankchain
application.
⚫ Participation through node application may or may not be free from any restrictions.
⚫ for example, in case of a Bankchain as a Blockchain ecosystem, only banks are allowed to
participate.
Blockchain Page 3
no restrictions to enter).
3.Consensus Algorithm
⚫ The consensus algorithm provides permanence and security to the data in the blockchain.
⚫ It depicts status of the network and how the nodes in the network arrive at an agreement
regarding what transactions to accept.
⚫ What protects the blockchain from tampering is the fact that changing a block can be done
only by making a new block from its predecessor and it also requires re-generating all successors
and redoing their contents.
⚫ It is to be noted that every block in the blockchain contains a hash of its predecessor block,
thus having a chain of blocks with enormous amount of work contained in them.
⚫ For example, the time taken by Bitcoin to arrive at a consensus of the ledger is a few
minutes while that of ripple is merely a few seconds.
_____________________________________________________________________________
2. Private blockchain
Blockchain Page 4
2. Private blockchain
• A blockchain network that works in a restrictive environment like a closed network, or that is
under the control of a single entity, is a private blockchain.
• While it operates like a public blockchain network in the sense that it uses peer-to-peer
connections and decentralization, this type of blockchain is on a much smaller scale.
• Instead of just anyone being able to join and provide computing power, private blockchains
typically are operated on a small network inside a company or organization.
• They're also known as permissioned blockchains or enterprise blockchains.
_____________________________________________________________________________
Blockchain Page 5
• Authentication and authorization
• Mining
• Proof of work
• Proof of stake
What is nonce
• Nonce stands for ‘number used only once’
• i.e. nonce refers to a number or value that can only be used once.
• Nonce is a 32bit(4 byte) random number which can be used one-time.
What is ICO
• Initial coin offerings (ICOs) are a popular way to raise funds for products and services usually related
to cryptocurrency.
Blockchain Page 6
Blockchain Page 7