Podcast
Questions and Answers
What is the primary motivation for miners to participate in the mining process?
What is the primary motivation for miners to participate in the mining process?
What happens when multiple miners find a valid nonce simultaneously?
What happens when multiple miners find a valid nonce simultaneously?
Why is the mining process described as based on luck?
Why is the mining process described as based on luck?
Which statement reflects the expectation of finding a valid nonce related to the SHA-256 hash threshold?
Which statement reflects the expectation of finding a valid nonce related to the SHA-256 hash threshold?
Signup and view all the answers
What happens to the block reward for Bitcoin every 210,000 blocks?
What happens to the block reward for Bitcoin every 210,000 blocks?
Signup and view all the answers
What is the result of having cheap system attacks in mining?
What is the result of having cheap system attacks in mining?
Signup and view all the answers
What does the statement 'easy to verify, hard to prove' mean in the context of mining?
What does the statement 'easy to verify, hard to prove' mean in the context of mining?
Signup and view all the answers
How does sentiment towards transaction fees differ as the bitcoin system matures?
How does sentiment towards transaction fees differ as the bitcoin system matures?
Signup and view all the answers
What is the primary purpose of blockchain technology?
What is the primary purpose of blockchain technology?
Signup and view all the answers
Which statement best describes how traditional ledgers operate compared to blockchain ledgers?
Which statement best describes how traditional ledgers operate compared to blockchain ledgers?
Signup and view all the answers
What motivates nodes to include a transaction in a block?
What motivates nodes to include a transaction in a block?
Signup and view all the answers
What happens when a node successfully mines a block?
What happens when a node successfully mines a block?
Signup and view all the answers
What is meant by 'consensus' in the context of blockchain?
What is meant by 'consensus' in the context of blockchain?
Signup and view all the answers
Why is it stated that blockchain is not truly a democracy in terms of votes?
Why is it stated that blockchain is not truly a democracy in terms of votes?
Signup and view all the answers
What is a challenge that arises in the blockchain network during transactions?
What is a challenge that arises in the blockchain network during transactions?
Signup and view all the answers
What is the primary purpose of hash functions in a blockchain?
What is the primary purpose of hash functions in a blockchain?
Signup and view all the answers
Which aspect of blockchain ensures every node has control over the data?
Which aspect of blockchain ensures every node has control over the data?
Signup and view all the answers
How does a change in the data of a block affect the blockchain?
How does a change in the data of a block affect the blockchain?
Signup and view all the answers
Why might blockchain encourage centralization despite its decentralized nature?
Why might blockchain encourage centralization despite its decentralized nature?
Signup and view all the answers
What characteristic of hash functions contributes to blockchain security?
What characteristic of hash functions contributes to blockchain security?
Signup and view all the answers
What is included in the hash of a block to ensure its integrity?
What is included in the hash of a block to ensure its integrity?
Signup and view all the answers
What is the consequence of a collision in hash functions?
What is the consequence of a collision in hash functions?
Signup and view all the answers
What is the genesis block in a blockchain chain?
What is the genesis block in a blockchain chain?
Signup and view all the answers
How is a blockchain structured?
How is a blockchain structured?
Signup and view all the answers
What occurs when two miners simultaneously propose blocks with valid nonces?
What occurs when two miners simultaneously propose blocks with valid nonces?
Signup and view all the answers
How does blockchain provide traceability in physical world transactions?
How does blockchain provide traceability in physical world transactions?
Signup and view all the answers
Why might blockchain not be the ideal database for storing data?
Why might blockchain not be the ideal database for storing data?
Signup and view all the answers
Which area is identified as suitable for blockchain technology?
Which area is identified as suitable for blockchain technology?
Signup and view all the answers
What is the main reason Bitcoin is often used in the black market?
What is the main reason Bitcoin is often used in the black market?
Signup and view all the answers
What is a key advantage of using hash functions in blockchain?
What is a key advantage of using hash functions in blockchain?
Signup and view all the answers
What are miners encouraged to do in order to avoid forks?
What are miners encouraged to do in order to avoid forks?
Signup and view all the answers
What is the role of reputational trust in blockchain's effectiveness?
What is the role of reputational trust in blockchain's effectiveness?
Signup and view all the answers
Study Notes
INF2003: Database Systems Blockchain
- Course: INF2003 Database Systems Blockchain
- Semester: AY24/25 Trimester 1
- Instructor: Zhang Wei
- Date: Nov. 19, 2024
Module and Teaching Feedback
- Complete module and teaching feedback forms.
- Share constructive feedback anonymously.
- Academic staff cannot identify students.
- Feedback results are anonymous and will not affect student grades.
- Feedback will be shared with the academic staff after exam results release.
- Module improvements are based on student feedback.
What is Blockchain?
- Originally for recording transactions.
- Transactions organized as blocks.
- Blocks are encrypted and chained chronologically.
- Blockchain is accessible globally.
- Traditional ledgers (e.g., OCBC) are centralized.
- With a centralized ledger, a central entity always holds the truth.
- Discrepancies are resolved through reconciliation with the central entity.
- Blockchain is decentralized; all nodes have the truth, and all have the say.
- Consensus is required if people have differing opinions.
Process
- User initiates a transaction with digital signature.
- Transaction details are broadcast to all nodes.
- Nodes choose to process or record transactions.
- Transactions are bundled into a block.
- A block includes previous block's hash.
- Motivating nodes to include transactions: transaction fees.
- Priority given to higher transaction fees.
Process (Can I add my block to the chain?)
- All nodes want to add a block to the chain.
- Only one block can be added at a time.
- Mining process: competing for the right to add a block.
- Initial reward for adding a new block is much higher than transaction fees.
- The node that wins the competition adds the new block.
- Other nodes must acknowledge the win.
- Consensus protocol is necessary.
- New block reflects the "truth" accepted by all.
- Chain continues to grow.
Supporting Technology
- Uses new concepts with existing technologies.
- Each full node keeps a copy of the entire blockchain.
- Problem: blockchain can become very large.
- Main cryptographic techniques are keys and hash functions, specifically for blocks.
- Hash function: h(x) converts a long item (x) to a short hash (h(x)).
- Hash function is deterministic; same input always produces the same output.
- Collision: different inputs producing the same outputs.
- SHA256 is a frequently used hash function.
- Hash value has a fixed length (e.g., 256 bits).
Hash
- Blockchain blocks primarily use hash values, not raw info.
- Same block with the same hash function.
- Any change in the block results in a different hash, enabling validation.
- Fast operations due to hash-based structure.
- Chain starts with Genesis block (block 0).
- Hash of the block includes all relevant information.
- Subsequent blocks reference the hash of the previous block.
Why Blockchain Cannot Be Tempered?
- Transferring 100 SGD to a recipient;
- Attempting to change the amount in a previous block.
- Attempt results in changing block's hash, which is incompatible with the previous block's hash.
Motivation to Participate
- Users may want to only use the system and not contribute.
- Some jobs to keep a copy of the historical and current state.
- Package transactions.
- Add new blocks.
- Motivation to participate: transaction fees and new block rewards.
- Initial stage: block reward dominant.
- System matures: transaction fees become increasingly important.
Motivation to Participate (Finding a Nonce: Called Mining)
- Finding a 'nonce' (a special number) is called mining.
- Multiple nodes (miners) can successfully mine and add a block simultaneously.
- Receiving reward based on valid nonce and block.
- Transaction fees and block rewards.
- Example: Bitcoin reward decreases over time.
Proof of Work
- Finding a valid nonce is like guessing repeatedly.
- Probability of success is low; only successful miners receive rewards.
- System attack is costly.
- Hash threshold (e.g., 2^200 for SHA-256).
- Each digit has a 50% chance.
- Computationally intensive to achieve a valid nonce.
- Slower expansion of blockchain.
- Costly to cheat.
Disagreement?
- World is not perfect & nodes might add blocks with differing views.
- "State fork" – multiple different chains.
- "Longest chain rule": only the longest chain is considered valid.
- Miners broadcast the longest chain, and any different chain is discarded.
Discussion
- Is blockchain a good database?
- Record-keeping system is less efficient for CRUD operations than traditional databases.
- Blockchain better for immutability and traceability.
- Suitable areas for blockchain include international transactions, anti-counterfeiting, and other applications requiring immutability.
Summary
- Lack of trust between parties.
- Distributed record keeping (managed by all participants).
- Agreeing on a history that everyone can trust leads to agreement on the present.
- Blocks chained using hashes (every block links to the preceding block).
- Raw data not stored, only hash of blocks is stored.
- Hash mismatch occurs if a block is tampered.
- Proof-of-work: incentivizes participation; nodes with the most computing power are more likely to add blocks.
- Security and fairness.
- Transaction fees play a larger role as the system matures.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Related Documents
Description
blockchain