09 Blockchain Flashcards
1
Q
block chain process: start
A
- user initiates transaction
- transaction encrypted with digital signature
- transaction broadcasted
- some nodes may not receive
- some nodes may receive but not process
2
Q
block chain process: chain
A
- one block contains 0 or some transactions
- transaction fee is used to motivate blocks/nodes to include your transaction
- nodes compete to add a new block to the chain
- has to be accepted by the other nodes
3
Q
what is a full node
A
- holds a copy of the whole chain
- will not require much storage as data is hashed and stored
- SHA-256
- no matter what data, output is always 256 bits
4
Q
what is a genesis block
A
first block of the chain
5
Q
rewards
A
beginning stages: new block reward
later stages: transaction fees
6
Q
what is nonce
A
- maintain high entry threshold for right to add block
- nonce = first n bits to be set to 0 for hashed value
- controls difficulty level
- keeps calculating new hash till requirement is satisfied (mining)
- since bits have 50% chances, probability = 1/2^n - once valid nonce is calculated, broadcast to all nodes
- most accepted will be added to the block
- miner who added the block will receive transaction fee and block reward
7
Q
proof of work
A
- verifying that nonce is valid
- hard to calculate but easy to verify
- if more than one valid nonce, chain will fork
- follow longest chain rule