UNIT – 3
Bitcoin Block chain and scripts:
• Bitcoin's scripting language is called Script, which is a simple, stack-based, and left-to-
right processed language.
• It is used for transactions and defines how outputs can be spent. Script is not Turing-
complete, meaning it lacks several logical functions, including loops, to ensure that no
Bitcoin script can consume inordinate computing power and harm nodes on the
network
• There are two main types of Bitcoin scripts: the scriptNext and scriptPubKey.
• The scriptNext is the unlock script, which requires a public key and a digital signature.
Bitcoin Script has a few different formats, with Pay-to-Public-Key-Hash (P2PKH) being
the most popular. P2PKH is a simple script that pays Bitcoin to an address.
• Other scripts can achieve more complex setups, such as creating multisig addresses.
Bitcoin sent to a multisig address requires multiple signatures from multiple private
keys to be spent.
• Some common operation codes (OPcodes) in Bitcoin Script include
o Constants
o Flow control
o Stack
o Splice
o Bitwise logic
o Arithmetic
o Crypto
• Bitcoin Script is essential for ensuring the security and simplicity of the Bitcoin
network, making it easier for developers to avoid losing money while designing
wallets or applications on top of Bitcoin
Use cases of Bitcoin Blockchain scripting language in micropayment:
The Bitcoin scripting language, known as Script, enables a wide range of use cases in
micropayments. Some of the key use cases include:
1. Efficient Micropayments: Script allows for the implementation of efficient
micropayment channels, which enable multiple small transactions to be conducted
off-chain and settled on the Bitcoin blockchain. This can significantly reduce
transaction fees and latency for micropayments
2. Time-locked Transactions: Script enables the creation of time-locked transactions, which can be used to
enforce delays on the spending of funds. This can be used for various purposes, such as recurring
micropayments and pay-as-you-go services
3. Tokenization: Script allows for the creation of tokens on the Bitcoin network, which
can represent various assets and rights. This can be used for micropayments for
digital content, such as articles, videos, and music
4. Multi-signature Wallets: Script enables the creation of multi-signature wallets, which
require multiple signatures to authorize a transaction. This can be used for secure and
flexible micropayment arrangements, such as joint accounts and shared expenses
Escrow:
• An escrow service is a common and widely seen custodial service in the
cryptocurrency ecosystem. It is created by a written, binding agreement between two
parties, whereby an amount of money or an asset is deposited with a third party as
collateral as part of a business arrangement.
• The amounts are released upon the occurrence of a termination condition expressly
specified by the parties.
• Typically, the funds are made available to the seller when the product or service is
delivered and accepted by the buyer. If, on the other hand, the buyer rejects the
delivered product, the funds are returned to the buyer.
• Escrow services cannot be influenced by any of the parties involved in the agreement.
In fact, the result they present must faithfully match the pre-established conditions in
the service agreement.
• In the context of blockchain, an escrow service leverages blockchain infrastructure
and the ability to write code that executes on the network, i.e. smart contracts.
• Escrow payments processed through the blockchain have one major advantage: the
money is never in the complete control of a single actor.
• All this is possible thanks to smart contracts, i.e. the ability to schedule transactions
to perform specific actions based on a set of predefined, transparent and immutable
conditions.
• There are several platforms that offer traditional escrow services. They are often
integrated into marketplaces where supply and demand meet. These escrow
platforms charge a fee for their services, which is usually a percentage of the
transaction amount.
• However, blockchain-based escrow services can reduce reliance on middlemen while
keeping funds safe from mortgage fraud. They can also cut escrow costs and prevent
mortgage fraud.
Downside of Bit coin mining:
Bitcoin mining has several downsides, including:
1. High Energy Consumption: Bitcoin mining is an energy-intensive process, primarily
due to the computational power required to solve complex mathematical puzzles. As
a result, mining operations consume significant amounts of electricity, contributing to
environmental concerns and carbon emissions
2. Volatility and Market Risk: Bitcoin's price volatility poses risks to miners. The
profitability of mining depends not only on the amount of Bitcoin mined but also on
its market fluctuations. Fluctuations in Bitcoin's price can affect mining profitability,
potentially rendering some mining operations unprofitable, especially during bear
markets
3. Cost of Equipment and Maintenance: Mining Bitcoin requires specialized hardware,
such as ASICs, which can be expensive to purchase and maintain. Additionally, miners
need to consider the cost of electricity and other operational expenses
4. Risk of Uncertain Income: There is no set amount Bitcoin miners earn. Mining
requires significant investment, and the returns are unpredictable. The profitability of
mining depends on various factors, such as the difficulty of solving puzzles, the price
of Bitcoin, and the costs associated with mining operations
5. Environmental Impact: Bitcoin mining is controversial due to its high energy
consumption. The energy consumption associated with mining is unsustainable and
exacerbates the environmental footprint of the cryptocurrency industry
6. Monopoly by Large Mining Operations: Initially, individuals could mine Bitcoin using
standard computers. However, as more people joined the network, mining difficulty
increased, making it necessary to use specialized mining rigs. This has led to a
situation where large mining operations dominate the mining process, potentially
stifling innovation and making it difficult for smaller miners to compete
Block chain Science: Grid coin, Folding coin
Blockchain science encompasses various aspects of blockchain technology, including its
underlying principles, algorithms, and applications. Some key aspects of blockchain science
include:
1. Distributed Ledger Technology (DLT): A blockchain is a distributed ledger that keeps a
record of all transactions in a peer-to-peer network of multiple nodes. Each block
contains a cryptographic hash of the previous block, a timestamp, and transaction
data, generally represented as a Merkle tree
2. Cryptography: Blockchain networks rely on cryptography, such as public-key
cryptography (PKC), to ensure the security and integrity of transactions. Public-private
key pairs are used for signing and verifying digital signatures, as well as encrypting
and decrypting data
3. Consensus Algorithms: Blockchain networks use consensus algorithms, such as Proof-
of-Work (PoW) or Proof-of-Stake (PoS), to agree on the order of transactions and
prevent double-spending. These algorithms ensure the integrity and security of the
blockchain.
4. Smart Contracts: Blockchain networks often support self-executing smart contracts,
which are programmable contracts that automatically execute and enforce the terms
of an agreement when predefined conditions are met. Smart contracts can be used
for various purposes, such as escrow services, digital content distribution, and
decentralized applications.
5. Decentralization and Trust: Blockchain technology promotes decentralization and
trust by providing a secure and transparent platform for recording and managing
transactions. All participants in the network hold a copy of the ledger, ensuring that
transactions are visible to all and that the network is secure and trustworthy by
design
Grid coin:
• Gridcoin (GRC) is an open-source blockchain that monitors The Berkeley Open
Infrastructure for Network Computing (BOINC) while using a proof of stake system to
reward and incentivize participants for their contributions to the network.
• It is designed to securely reward volunteer computing performed on the BOINC
network, which conducts scientific research in various fields, such as medicine,
molecular biology, mathematics, linguistics, and climatology.
Key features of Gridcoin include:
1. Proof of Stake: Gridcoin uses a proof of stake protocol to secure the network,
ensuring that minimal processing resources are used
2. Distributed Computer Network: Gridcoin is a distributed computer network that
spans different networks, providing a single data communication network
3. GRC Research Mint: Gridcoin offers an incentive mechanism called GRC Research
Mint, which generates a predefined amount of GRC tokens. These tokens are
distributed to participants who contribute their computing resources to the network
4. Environmental Impact: Gridcoin initially used the energy-intensive proof of work,
similar to Bitcoin, but migrated to a proof of stake protocol in 2014, similar to
Peercoin, to address the environmental impact of cryptocurrency mining
Folding coin:
• FoldingCoin (FLDC) is a cryptocurrency that compensates participants for their
Folding@home (FAH) computational power. Folding@home is a distributed
computing project that uses the computing power of network participants to conduct
scientific research, such as searching for methods to treat severe diseases like cancer,
Alzheimer's, and others.
• Participants, known as folders, contribute their computing resources to the FAH
network and are rewarded with FoldingCoin tokens
Key features of FoldingCoin include:
1. Proof of Stake: FoldingCoin uses a proof of stake protocol to secure the network,
ensuring that minimal processing resources are used
2. Decentralization: Unlike some other cryptocurrencies, FoldingCoin aims to maintain
decentralization by relying on the Stanford University Folding@home network and
the stats reported by this network to distribute units of the currency proportionately
to the amount of work
3. Mission: FoldingCoin's primary mission is to attract funds and computing power for
the development of the Folding@home program, which is conducted by Stanford
University
4. Token Distribution: FoldingCoin coins are distributed daily among all network
members according to the contribution of each, following the principle of Bitcoin
Block chain Genomics:
• Blockchain technology is being increasingly explored for its potential applications in
genomics. Some of the key use cases and benefits of blockchain in genomics include:
1. Data Security and Privacy: Blockchain can provide a secure and immutable
ledger for storing genomic data, ensuring that data is not tampered with and
that access is restricted to authorized parties
2. Data Sharing and Monetization: Blockchain can facilitate secure and
transparent data sharing among researchers, institutions, and individuals, while
also enabling individuals to monetize their genomic data by providing
controlled access to it
3. Consent Management: Blockchain can be used to manage and track individual
consent for the use of their genomic data, ensuring that data is only used in
accordance with the individual's preferences and consent
4. Data Integrity and Traceability: Blockchain can provide a tamper-evident and
auditable record of genomic data, ensuring that data integrity is maintained
and that the provenance of data is transparent and traceable
5. Incentivizing Data Contribution: Blockchain can be used to incentivize
individuals to contribute their genomic data for research purposes by providing
rewards or tokens for data contribution
• Overall, blockchain technology has the potential to address some of the key
challenges in genomics, such as data security, privacy, and sharing, while also
enabling new models for data monetization and incentivization. However, there are
also challenges and limitations to consider, such as the scalability of blockchain for
large genomic datasets and the need for interoperability with existing data standards
and systems
Bit coin MOOCs:
• There are several Massive Open Online Courses (MOOCs) available that cover Bitcoin
and blockchain technology. Some of these MOOCs include:
1. Bitcoin Fundamentals - What Every CPA Should Know: This course by
the Missouri Accountancy Association covers the impact of Bitcoin
and other cryptocurrencies on the global monetary ecosystem and
identifies the components of the Bitcoin system
2. Bitcoin Script 101: This tutorial by Bitcoin Development Network
explores the Bitcoin scripting language, providing a comprehensive
understanding of its simple, stack-based, and left-to-right processed
nature. The course uses the Bitcoin Script Debugger (btcdeb) for
hands-on learning
3. Micropayments for Decentralized Currencies: This research paper
discusses various micropayment systems proposed for years but none
that have yet to hold. It covers the definition of micropayments,
efficiency, correctness, and other properties of micropayment
schemes
• While the above MOOCs focus on Bitcoin and its scripting language, there are other
resources available that cover blockchain technology in general. These resources can
help you gain a better understanding of blockchain concepts, such as distributed
ledger technology, cryptography, consensus algorithms, smart contracts, and
decentralization. Some of these resources include:
o Blockchain: Understanding the Technology Behind the Scenes: This course by
the University of Washington provides a comprehensive introduction to
blockchain technology, covering its underlying principles, algorithms, and
applications.
o Blockchain: Informatics, Cryptography, and Applications: This course by the
University of Illinois at Urbana-Champaign covers the basics of blockchain,
cryptography, and various applications of blockchain technology across
different industries.
• These MOOCs and resources can help you gain a deeper understanding of Bitcoin, its
scripting language, and the broader applications of blockchain technology.