Blockchain Flashcards

To learn about Blockchain.

1
Q

What was the first blockchain example?

A

To understand Blockchain from a human perspective it is important to review the people who inhabit Yap Island and their unique currency called Rai Stones. These stones could not be physically traded so the Yapese people used mental ledgers where all tribe members kept a copy of the ledger in their head.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is “Group Consensus” as per the ledger example?

A

This all works with a decentralized ledger as the whole tribe must reach consensus on the truth in order to update the ledger. This is called “Group Consensus”. The truth is assumed to be the version of the ledger that 51% or more of the tribe members present agree on.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How are blocks “chained” together?

A

To chain blocks together today, all data in a block is run through a special function called a “cryptographic hash”. Cryptographic hashes create a unique output for a specific input. Therefore, the hash of each block will always be unique based upon the inputs. To link or chain blocks of data together the header of the current block contains the hash of the last (validated) block. Changing the data on any block in a Blockchain will result in a completely different hash and the new hash will not match the hash in the next block header thus breaking the Blockchain and invalidating all blocks linked to where the change was made. This gives Blockchain its property of immutability (can’t be changed) and makes it highly censorship-resistant.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a Blockchain?

A

Blockchain is a record keeping system that can record the transfer of “tokens” or “coins” monetary wealth. Bitcoin and other cryptocurrencies such as Ether, LiteCoin, and Monero are current examples of this. Blockchains provide a successful enabling platform for cryptocurrencies by providing a digital immutable ledger that is widely distributed and peer-validated

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a block from the ledger example?

A
  • Let’s say all transactions are recorded on paper
  • Each sheet of paper has 25 lines
  • When a sheet is filled, the tribe will “validate” the transactions on the current page
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Who wrote the white paper on blockchain in 2009?

A

Satoshi Nakamoto

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The three types of Blockchain transactions are.

A
  1. Two or more parties, exchange of monetary value such as cryptocurrency
  2. Two or more parties, but no exchange of monetary value such as updates to medical records, notary services
  3. One party announcing an important event such as supply chain management, business process automation, creation/auditing of financial records.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the primary benefits of blockchain?

A

Some of the primary benefits of Blockchain are:

  1. It leverages a decentralized infrastructure
  2. It is a completely trustless environment
  3. it provides immutability by cryptographically linking all blocks together.
  4. All blocks on the Blockchain are indexed using a Merkle Tree. A Merkle Tree is a lightweight digital fingerprint of all the transactions within a block.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Key Tenets of a Decentralized System?

A
  1. Peer-to-Peer data sharing
  2. Hosting hardware owned by many not a few
  3. Extremely high fault tolerant
  4. security
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

One drawback of Blockchain?

A
  • Starting with how new Blockchain is, to the stigma of its use originating in the Dark Web.
  • The creation of Blockchain is also a mystery that tends to put people on edge.
  • ICO/ITO scams and the misperception that Blockchain is just another name for cryptocurrency are also drawbacks that aren’t technical but do impact the adoption of Blockchain itself.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Another drawback of blockchain?

A
  • More tangible challenges with Blockchain today include the fact that Blockchain technology is still changing and evolving, best practices and recommended patterns for implementation are still being formed.
  • There are not very many trained resources and therefore, the cost of trained resources is high.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Other Drawbacks of Blockchain?

A
  1. Scalability is a core concern when it comes to Blockchain. Blockchain prioritizes security over speed. Therefore, solutions that require high transaction speeds are not good candidates for Blockchain.
  2. Different group consensus methods beyond Proof of Work are currently being proposed to overcome current scalability limitations. Today, most major public Blockchains are able to process 10-20 transactions per second worldwide.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is Cryptography?

A

Cryptography is the study of how to send information back and forth securely in the presence of adversaries. A cryptographic function is a function for encoding or encrypting data to protect the contents from others

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the components are the basis of a cryptographic function?

A
  1. The Secret – The data which we are trying to protect
  2. The Key – A piece of data used for encrypting and decrypting the secret
  3. The Function – The process or function used to encrypt the secret
  4. The Cipher – The encrypted secret data, output of the function 5. The Secret and the Key are passed into the Function to create a Cipher
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the two keys in Public Key Cryptography?

A
  • In Public Key Cryptography there are two keys, the Public Key and the Private Key.
  • The Public Key is used to verify the digital signature of a given key pair.
  • The Private Key is used to sign/approve any transaction/action that might be made by the holder of the key pair.
  • All transactions submitted to the Blockchain are signed using the user’s private key and are verified on the Blockchain using the public key.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is Blockchain Consensus?

A

All announcements/transactions are recorded in blocks in Blockchain. When a block is filled up, it is validated
through group consensus before it can be added to the chain of previously validated blocks.

17
Q

What is the Proof of Work (PoW) Consensus

A

In Proof of
Work consensus
,
when a block is full each node competes to solve a guessing game problem to validate the
block of data. This problem is non-computational and random guesses are most efficient. Nodes are called
Miners and they have to guess the “nonce” to succeed in validating a block. All block data plus the current
guess (nonce) are run through a cryptographic hash, if the result matches the current level of “difficulty”, the
miner has guessed the right answer. The difficulty is adjusted by the network to correspond to load.

18
Q

What is the Byzantine Generals’ Problem?

A

Imagine divisions of a Byzantine army, attacking a completely encircled city. To proceed, the generals of each division, who are dispersed around the city’s periphery, must agree on a battle plan. However, while some generals want to attack, others may want to retreat.

In the official description of the Byzantine Generals’ Problem (which you’ll find on page three of the aforementioned paper), there is a leader-follower set-up. In order to achieve consensus, the commanding general and every lieutenant must agree on the same decision.

19
Q

What is the Proof of Stake (PoS) Consensus?

A

Proof of Stake consensus uses a system where “Validator” nodes each give or pay a stake in order to validate transactions. When it’s time for group consensus, all who wish to participate lock up funds in a stake. A random node is selected and the hash of that node’s block data is shown to all other participants. All other nodes wager on the validity of the block transactions. If the majority agree with the proposed block, the random node is rewarded as are all who wagered on that node. If the majority disagree, the random node loses their stake, gets no reward, and a new node is randomly selected to share their block data. The game theory incentive toward honesty and accuracy is maintained, only the mechanics of how it’s enforced are changed.

20
Q

What is the Lifecycle of a Public Blockchain Transaction?

A
  1. User uses Dapp/web3 to start transaction
  2. User signs the transaction with their private key
  3. Transaction validated on locally running node
  4. Transaction broadcast to entire network
  5. Miners choose to accept or pass on the transaction
  6. Miner takes each accepted transaction and writes it to the current block
21
Q

Other Consensus Mechanisms

A

Proof of Activity – is a hybrid of PoW and PoS. Empty template blocks are mined (PoW) then filled with transactions which are validated via PoS.

Proof of Burn – is where coins are “burned” by sending them to an address where they cannot be retrieved. The more coins burned, the better the chances of being selected to mine the next block.

Proof of Capacity – is where hard drive space is staked to participate. The most space ‘staked’, the better the odds of being selected to mine the next block. The consensus algorithm here generates large data sets called ‘plots’ which consume storage.

Proof of Elapsed Time – was created by Intel to run on their trusted execution environment. It is similar to PoW but far more energy efficient. The concern is this requires trust in Intel and can be viewed as a central authority.

Proof of Authority - uses a set of “authorities” which are nodes that are explicitly allowed to create new blocks and secure the Blockchain. This is a replacement for PoW but only for Private Blockchains. Nodes have to earn the right to become a validator/authority.

22
Q

What is the information stored in a blockchain header?

A

This header contains information about the block
itself including

  • platform version
  • timestamp
  • difficulty level
  • nonce
  • hash output of the previous block data it is being linked too.
23
Q
A
24
Q

Some key
benefits to issuing a token/coin on Blockchain include:

A
  • Ownership of tokens is tracked on the Blockchain
  • Trading and exchanging of tokens is managed on the Blockchain
25
Q

There are two types of tokens within a Blockchain solution:

A
  • Equity tokens – which represent ownership in some real-world asset
  • Utility tokens – which represent usage credits on the solution platform itself
26
Q

The Ethereum Token Standards are:

A

• ERC20 – the most common standard. Currently the only accepted ERC standard.
ERC223 – proposed new token standard, will be backward compatible with ERC20. Improves
smart contract transfers and will be safer, quicker and cheaper.
ERC721 – non-fungible tokens, can be used for asset tokenization. Can be non-tradable, track
certifications, accomplishments, professional milestones

27
Q

Two Types of Transactions in Hyperledger

A
  • Deploy transactions (publish)create new chaincode and take a program as a parameter. When a deploy transaction executes successfully, the chaincode has been installed “on” the blockchain.
  • Invoke transactions perform an operation in the context of previously deployed chaincode. An invoke transaction refers to a chaincode and to one of its provided functions. When successful, the chaincode executes the specified function - which may involve modifying the corresponding state, and returning an output.
28
Q
A