BCT Unit 1 ND 2 Notes by
BCT Unit 1 ND 2 Notes by
INTRODUCTION
INDEX
Overview of block chain.
Public ledgers.
Bitcoin
Smart contract.
Block in block chain.
Is a distributed or decentralized databases or ledger that is
What is centralized?
◦ It means that central authority is in control of the data and
functions. So if you are using Facebook, company facebook has
complete control over the different aspects of their features
including the ability to decide who and who cannot join.
TECHNICAL PERSPECTIVE OF
CENTRAIZED DATABASE
In technical perspective, centralized system requires third
party intermediatery to verify data.
Ex: Yahoo, in 2015, noticed one of the biggest hacks where group of
hackers was able to view private emails of millions of accounts.
2. Data redundancy.
4. Cheaper .
Decentralized Database
Decentralized database does not have central owner or a single
authority.
5. Scalability
1.2 Public Ledgers.
1. A public ledger derives its name from age-old record keeping
system used to record information such as news, Price and
analysis.
2. The Public ledger was available for general public viewing as well
as for verification.
3. It is also known as distributed ledger is a type of database that is
shared, replicated among the members of a decentralized
network.
4. All the information on this ledger is securely and accurately
stored using cryptography.
5. Here every record has a time stamp and unique cryptographic
signature.
1.3 Bitcoin
1. Bitcoin is a crypto currency, a virtual currency designed to act as
money and form of payments outside the control of any one
person, group. Thus removing the need for third party
involvement in financial transactions.
4. On Jan 3, 2009, the first Bitcoin block is mined i.e block 0 and name given to
that is Genesis block.
Purpose of Bitcoin
Bitcoin was created as a way for people to send money over the
internet.
A private key is used to prove ownership of fund to the network when making
transaction.
Person could simply memorise their private key and need nothing else to
retrieve or spend their virtual cash.
Smart Contract
Smart contracts are computer programs or protocols for automated
transactions that are stored on a blockchain and run in response to meeting
certain conditions.
Computer executes the actions when predefined conditions are met and
verified.
These actions like releasing funds to the parties, registering a vehicle, sending
notification or issuing ticket.
Benefits of Smart Contract
1. Speed, efficiency and accuracy.
2. Tenant can pay rent using Bitcoin. The smart contract will manage the
settlement process automatically.
2. A block records some or all of the most recent transaction not yet validated
by the network. Once data is validated the block is closed.
3. The new block is created for new transactions to be entered into and
validated.
3. Hash Merkle root : Hash of transactions in the Merkle tree of the current
block.
5. Nounce : The encrypted number that a miner solve to verify the block
and close it.
Transactions
Blockchain technology is mostly about the transactions that
we make digitally for ourselves.
Transaction life cycle in blockchain technology.
◦ This lifecycle allows the journey of single transaction as it makes its way
through each stage in the process of joining blockchain.
•In real world it would take a person just 10 minutes to mine one Bitcoin.
2. Buying, Selling and Storing
• Users today can buy Cryptocurrencies from central exchange, brokers and
individual currency owner or sell it to them.
• Exchanges or platforms like coinbase are the easiest ways to buy or sell
Cryptocurrencies.
Ripple: Ripple is a distributed ledger system that was founded in 2012. Ripple
can be used to track different kinds of transactions. The company behind it
has worked with various banks and financial institutes.
Overview of Security aspects of
Blockchain
Blockchain technology produces a structure of data with many security
qualities.
All the transactions within a block are validated and agreed upon by the
consensus mechanism, ensuring each transaction is true and correct.
Basic Crypto Primitives: Cryptographic
Hash Function
• A cryptographic hash function is an algorithm that takes an arbitrary
amount of data input and produce a fixed size output of ciphered
text called hash value or just hash.
.
Continue….
•The user has to prove to network that he’s authorized to spend his
balance.
1. Encryption and decryption: Which allow two communicating parties disguise data
they send to each other.
2. Non-repudiation: which prevents the data from being altered and the sender of the
data from claiming , at a later date, that the data is never sent.
UNIT 2
BITCOIN AND BLOCKCHAIN
Contents
• Creation of coins, payments and double spending, Bitcoin scripts,
Bitcoin p2p networks, Transaction in Bitcoin network, Block mining,
Block propagation and block delay, Working with consensus in
Bitcoin: Distributed consensus in open environment, consensus in a
Bitcoin network, proof of work(POW)- basic introduction, hash cash
POW, Bitcoin POW, Attack on POW and monopoly problems, Proof
of stake, Proof of burn and proof of elapsed time, the life of Bitcoin
miner, Mining difficulties, mining pool.
Creation of coins
A crypto currency is a digital currency, which uses cryptography for
• 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.
Block propagation or Block relay
• The mining pool operator manages activities such as recording the work
performed by each pool member, managing their hashes, assigning
reward shares to each member and even the work to be performed by
them individually.