UNIT-II
UNIT-II
INTRODUCTION
CRYPTO TO
CURRENCY
WHAT IS BITCOIN?
• Bitcoin is a decentralized digital currency that
allows for peer-to-peer transactions without the
need for intermediaries like banks or
governments.
• Pay to Pubkey: This script is a very simple script that is commonly used in coinbase
transactions. It is nowobsolete and was used in an old version of bitcoin. The public key is
stored within the script in this case, and theunlocking script is required to sign the
transaction with the private key. The template is shown as follows: OP_CHECKSIG Null
data/OP_RETURN: This script is used to store arbitrary data on the blockchain for a fee.The
limit of the message is 40 bytes. The output of this script is unredeemable because
WHAT IS BITCOIN
MINING?
• Bitcoin mining is a computation-intensive process
that uses complicated computer code to generate
a secure cryptographic system. The bitcoin miner
is the person who solves mathematical
puzzles(also called proof of work) to validate the
transaction.
• Public keys are similar to the email address that can be given to anyone,
and private keys are similar to the account password, that cannot be
shared.
• The private key should not get hacked, if it happened then there is a
possibility that the account is compromised.
• These types of wallets are the most convenient but at the same time,
least secure.
• It is used to store private keys and transaction records online (on another
server). This makes keys vulnerable to hacking as they are being stored
by a third party.
• Online wallets should be used to store less amount of money that is
going to be used for short-term storage i.e. daily transactions in
exchange services.
• Examples: Exchanges like Bittrex or QuadrigaCX, and Online wallets like
Coins.ph and GreenAddress.
Desktop Wallets:
• Cold storage refers to the type of storage that is not connected to the
Internet. It is also known as offline storage.
• Cold storage provides a higher level of security than hot storage. It is
useful for long-term storage, unlike hot wallets. However, a higher level
of security is provided at the cost of convenience. It is not ideal for daily
transactions. Although it is secure, it is vulnerable to external damage
and loss.
• The different types of cold storage wallets are hardware wallets and
paper wallets.
Hardware Wallets:
• Paper wallets provide the highest level of security than all the other
types of wallets.
• The private keys are stored on paper and then kept in a secure location
that is known only by the people that are trusted.
• Paper wallets are well protected against any type of hacking and
malware. However, one thing to consider when using paper wallets is
that paper can be worn out with time. If they are printed, the printer ink
can leak in case of contact with water or increased temperature.
• Examples: BitAddress.org and Bitcoin Armory allows you to print your
paper wallet.
BITCOIN LIMITATIONS
1. Bitcoins Are Not Widely Accepted
Bitcoins are still only accepted by a very small group of online merchants. This makes it
unfeasible to completely rely on Bitcoins as a currency. There is also a possibility that
governments might force merchants to not use Bitcoins to ensure that users’ transactions can
be tracked.
4. No Buyer Protection
When goods are bought using Bitcoins, and the seller doesn’t send the promised goods, nothing
can be done to reverse the transaction. This problem can be solved using a third party escrow
service like ClearCoin but then, escrow services would assume the role of banks, which would
cause Bitcoins to be similar to a more traditional currency.
Namecoin uses a proof-of-work consensus mechanism. NMC is the native coin of the Namecoin
platform. Users need to obtain some NMCs if they want to register “.bit” websites or other
Namecoin names. Namecoin accepts registration fees in NMC. To get NMCs, users need to have
a Namecoin wallet and purchase NMC coins from the exchange. Users can also mine NMCs.
LITECOIN
• Litecoin (LTC) is a cryptocurrency that was created in
2011 by Charlie Lee, a former Google employee. It is a
peer-to-peer digital currency that is based on an open-
source cryptographic protocol, and it operates on a
decentralized network.
PRIMECOIN
• Primecoin(XPM) is a cryptocurrency that was created in 2013 by a developer named Sunny
King. Primecoin is based on a proof-of-work consensus algorithm that is designed to solve
complex mathematical problems related to prime numbers.
• Unlike other cryptocurrencies that use proof-of-work algorithms to mine for coins, Primecoin's
algorithm is unique in that it searches for prime chains, which are sequences of prime
numbers that are linked by a special mathematical relationship. These prime chains are
useful in cryptography and other areas of mathematics, making Primecoin's mining process
more than just a way to secure its blockchain.
• Zcash transactions are recorded on a public ledger called the blockchain, but the details of
the transactions are only visible to those who have the necessary viewing keys. Zcash also
offers the option of shielded transactions, which are fully private and cannot be viewed on
the blockchain.
• Zcash can be used as a cryptocurrency for online transactions and micropayments,
and it can be traded on various cryptocurrency exchanges. However, its market
capitalization is relatively small compared to other cryptocurrencies.
• Overall, Zcash is a unique cryptocurrency that offers strong privacy protections for
its users. It has gained popularity among those who are concerned about privacy
and security in their online transactions, but it also faces challenges from regulators
who are wary of its anonymity features.
SMART CONTRACT
• A SMART CONTRACT is a self-executing digital contract
that is based on a computer protocol, typically on a
blockchain. Smart contracts are designed to
automatically enforce the terms of an agreement
between parties, without the need for intermediaries
such as lawyers or banks.