Blockchain In Rust #02: Mining

Let "mining Bitcoin" not be a mysterious concept anymore! In this basic block implementation, you'll learn the essential concepts of mining, difficulty, and nonces.

Topics Covered:

  • 4:12 Difficulty
  • 8:34 Implement: Check Difficulty
  • 11:23 Nonce
  • 13:08 Mining Strategy (Algorithm)
  • 14:58 Implementing the mine(&mut self) function
  • 17:23 Testing the code we’ve written so far
  • 21:44 Review: What does are the implications of the nonce for blockchain security?
Year:

Functional Programming Jargon in Rust

Functional programming (FP) provides many advantages, and its popularity has been increasing as a result. However, each programming paradigm comes with its own unique jargon and FP is no exception. By providing a glossary, we hope to make learning FP easier. Where applicable, this document uses terms defined in the Fantasy Land spec and Rust programming language to give code examples.
Functional Programming Jargon in RustFunctional programming (FP) provides many advantages, and its popularity has been increasing as a result. However, each programming paradigm comes with its own unique jargon and FP is no exception. By providing a glossary, we hope to make learning FP easier.functional.works-hub.com

Hexadecimal in Rust

Daily programmer's recent hex colors challenge in Rust.
Note: Rust’s trait implementation has expanded lately. So, please consult the reference. TraitsA trait describes an abstract interface that types can implement. This interface consists of associated items, which come in three varieties:doc.rust-lang.org

Blockchain in Rust #04 & #05: Transactions

Part 1: Topics Covered: 00:40 Example transaction01:45 Transaction verification requirements04:55 The blockchain as a “distributed ledger”06:12 Structure of a transaction08:09 Regular transactions10:30 Coinbase transactions12:10 Transactions: Bad Artwork12:50 Recap13:24 Meeting tx...
Part 1: Topics Covered: 00:40 Example transaction01:45 Transaction verification requirements04:55 The blockchain as a “distributed ledger”06:12 Structure of a transaction08:09 Regular transactions10:30 Coinbase transactions12:10 Transactions: Bad Artwork12:50 Recap13:24 Meeting tx verification requirements13:38 Overspending14:10 Double spending15:36 Impersonation16:58 Further reading Part 2: Topics Covered: 00:17 Iterators02:20 Implement: Transaction & Output14:13 Errors in Rust15:51 Null in Rust16:46 Updating our Blockchain18:31 Implement: Transaction checking36:42 Writing a working example37:55 Implement: Working example42:32 First run and various testing47:21 Notes/security concerns