Oreilly - Learn Python by Building a Blockchain and Cryptocurrency
by Maximilian Schwarzmüller | Released August 2018 | ISBN: 9781789610666
Learn Python from the ground up and use Python to build your own basic Blockchain and Cryptocurrency (Coin)! About This VideoUse Python to build your own basic Blockchain and Cryptocurrency (Coin)!Dive into web development and data science with PythonIn DetailPython is easy-to-use and extremely versatile and powerful, making it one of the most popular programming languages. Python offers both object-oriented and structural programming features. The Blockchain technology is an exciting trend that's here to stay.This course will take you on a journey where you'll learn Python by building a Blockchain and Cryptocurrency. It's very popular because it's easy to learn and use, runs on all operating systems, and allows you to build a broad variety of programs, be it web applications, desktop applications, utility scripts, or for data science and machine learning.In this course, you'll learn a lot about the core concepts of the Blockchain and see how Python can be used for the many aspects that make up a Blockchain and Cryptocurrency. As a nice side-effect, you'll see how a Blockchain works. This course will show you how to use Python to build your own basic Blockchain and Cryptocurrency (Coin). We'll dive into the basics of Python and you'll understand the complex data structures. Show and hide more Publisher resources Download Example Code
- Chapter 1 : Getting Started
- Introduction 00:01:51
- What is Python? 00:05:08
- Setting Up Python? 00:03:11
- Writing our First Python Code 00:05:06
- What is the Blockchain? 00:06:48
- Course Outline 00:04:42
- Python Alternatives 00:03:58
- Understanding the Python Versions 00:02:22
- How to Get the Most Out of This Course 00:02:30
- Chapter 2 : Diving Into the Basics of Python
- Module Introduction 00:02:16
- Understanding the REPL and Data Types 00:04:25
- Working with Variables 00:04:47
- Working with Numbers 00:05:36
- Using Operators 00:03:49
- Understanding a "Special" Behavior when Working with Numbers 00:03:35
- Working with Strings 00:02:18
- Working with Lists 00:05:09
- Adding & Removing List Items 00:03:03
- Preparing the Blockchain - The Theory 00:02:03
- Installing our IDE 00:05:17
- Using Functions to Add List Items 00:06:45
- Accessing the Last List Item 00:03:25
- Adding Arguments to Functions 00:02:37
- Understanding the "return" Keyword 00:03:57
- Using Default Arguments 00:04:06
- Working with Keyword Arguments 00:03:00
- Using the "input" Function 00:03:01
- Avoiding Repetitive Code Execution 00:02:07
- Understanding the Variable Scope 00:06:50
- Exploring the Official Documentation 00:02:26
- Adding Comments and Doc Strings 00:04:21
- Structuring Multi Line Code in Python 00:01:56
- Wrap Up 00:03:28
- Chapter 3 : Working with Loops & Conditionals
- Module Introduction 00:01:38
- Understanding Loops - Theory 00:02:55
- Creating a "for" Loop 00:03:02
- Creating a "while" Loop 00:03:34
- Understanding Conditionals - Theory 00:02:02
- Adding "if-else" to our Blockchain 00:07:46
- Working with "elif" 00:03:44
- Understanding "break" & "continue" 00:03:32
- Improving our Code with Loops & Conditionals 00:06:39
- Understanding Boolean Operators - "is" & "in" 00:03:37
- The "not" Keyword 00:01:18
- Understanding "and" and "or" 00:02:26
- Grouping Conditionals 00:03:22
- What About "switch" in Python? 00:00:42
- Verifying our Blockchain 00:13:11
- Using Conditions inside the "while" Loop 00:01:57
- Using "else" in Loops 00:02:08
- Adding the "range" Function 00:07:09
- Wrap Up 00:02:32
- Chapter 4 : Understanding Complex Data Structures
- Module Introduction 00:02:50
- Understanding the Required Data Structure for our Blockchain 00:07:04
- Working with Iterables 00:05:02
- Choosing the Right Datastructure 00:02:56
- Transactions with Dictionaries & Tuples 00:07:47
- Unpacking the Tuple 00:03:21
- Mining Blocks 00:06:16
- Hashing Previous Blocks 00:06:24
- Understanding List Comprehensions 00:05:49
- And What are Dict Comprehensions? 00:01:40
- Combining List Comprehensions & "if" 00:02:54
- Improving the Blockchain Validation Logic 00:08:20
- Managing a List of Participants in the Blockchain 00:03:34
- Calculating Balances 00:07:47
- Rewarding the Miners of our Blockchain 00:03:24
- Verifying Transactions 00:05:46
- Understanding Reference vs Value Copying. 00:07:07
- Working with the Range Selector 00:05:42
- Understanding Shallow vs Deep Copies 00:02:43
- Comparing "is" & "==" 00:01:37
- Diving Deeper Into Iterable Methods 00:07:27
- Understanding the "all" & "any" Functions 00:07:36
- Comparing Iterables 00:06:46
- Wrap Up 00:03:18
- Chapter 5 : Working with Functions & Strings
- Module Introduction 00:01:31
- Comparing Strings & Lists 00:03:57
- Understanding the "format" Method 00:08:11
- Escaping Characters 00:01:47
- Formatting Strings Conveniently with "f" 00:01:28
- Adding String Formatting to our Project 00:02:01
- Understanding the "map" Function 00:02:53
- Working with Lambda Functions 00:02:13
- Reducing Lists 00:07:40
- Unpacking Function Arguments 00:06:33
- Fixing a Bug 00:04:13
- Wrap Up 00:01:31
- Chapter 6 : Working the Python Standard Library
- Module Introduction 00:01:43
- Exploring the Python Standard Library 00:02:12
- Importing Packages - Theory 00:04:19
- Importing "hashlib" to create a Unique Hash 00:07:14
- Using Other Import Syntaxes 00:01:47
- The "Proof of Work" 00:06:53
- Adding the Proof of Work to our Blockchain 00:05:48
- Including the Proof of Work in our Mining Function 00:07:49
- Fixing a Hash Order Fault 00:06:23
- Splitting Up our Code 00:04:33
- Wrap Up 00:02:03
- Chapter 7 : Working with Files
- Module Introduction 00:01:44
- Handling File Access 00:05:45
- Reading Data from a File 00:02:34
- Reading Multi-Line Content 00:05:52
- Using the "with" Block Statement 00:02:58
- Adding File Access to our Blockchain 00:08:39
- Converting Strings into Python Objects 00:16:01
- Storing Data with Pickle 00:06:05
- Comparing Pickle & JSON 00:01:05
- Changing the Project Back to JSON 00:02:30
- Why we need Proper Error Handling 00:00:47
- Wrap Up 00:01:17
- Chapter 8 : Handling Errors & Debugging
- Module Introduction 00:00:58
- Finding Logical Errors with the Debugger 00:05:54
- Finding Syntax Errors 00:01:41
- Using "try" to Find Runtime Errors 00:04:34
- Which Errors Should you Handle? 00:03:01
- Adding Error Handlers to our Blockchain 00:02:32
- Wrap Up 00:01:50
- Chapter 9 : Object Oriented Programming
- Module Introduction 00:01:13
- What is Object Oriented Programming? 00:02:13
- Understanding Classes 00:01:24
- Creating a Class 00:05:10
- Comparing Classes, Instances & Dictionaries 00:02:45
- Understanding Class Attributes 00:03:37
- Constructor & Instance Attributes 00:04:21
- Printing Classes with Special Methods 00:06:05
- Private & Public Attributes 00:04:39
- Understanding Inheritance 00:08:47
- Planning Blockchain Classes 00:01:32
- Adding a "Block" Class to the Blockchain 00:11:07
- Saving Custom Class Objects via .json 00:04:50
- Adding a "Transaction" Class 00:17:46
- Inheritance in Action 00:05:43
- Adding a "Verification" Helper Class 00:10:03
- Initialising the "Node" Class 00:04:51
- Turning the Blockchain into a Class 00:07:31
- Adding a "Node" Class 00:11:12
- Understanding "Instance" vs "Class" vs "Static Methods" & "Attributes" 00:03:39
- Using "Static" & "Class" Methods on the "Verification" Class 00:03:45
- Using Private Attributes in the Blockchain 00:03:44
- Properties vs Attributes 00:05:21
- Wrap Up 00:02:16
- Chapter 10 : Modules
- Module Introduction 00:01:42
- Creating Packages - Module Bundles 00:04:41
- The "pycache" Folder 00:00:44
- Module Docstrings 00:00:51
- Controlling Exports 00:05:37
- Understanding Execution Context & "__name__" 00:04:12
- Why we need a Private & Public Key Transaction Protection 00:04:25
- Using Anaconda to Install Third Party Packages 00:06:24
- Generating Keys with a Third Party Package 00:06:22
- Connecting the Node & the Wallet 00:06:16
- Generating Keys on the Node 00:04:07
- Saving & Loading Keys to Files 00:08:25
- Creating Transaction Signatures 00:06:24
- Adding a Signature to our Transactions 00:02:42
- Verifying Signatures 00:06:50
- Improving the Verification Logic 00:05:42
- Wrap Up 00:01:21
- Chapter 11 : Adding HTTP with Flask
- Module Introduction 00:02:04
- HTTP Requests - The Basics 00:05:41
- Understanding API-Endpoints/ URLs 00:03:32
- Data Formats 00:03:18
- Planning our API 00:02:05
- Setting Up our Environment with Flask 00:10:09
- Adding our First Route 00:10:09
- Installing Postman 00:02:21
- Adding a POST Request 00:07:21
- Setting Up Routes to Manage our Wallet 00:08:23
- Returning Funds 00:05:43
- Adding Transactions 00:11:27
- Fetching Open Transactions 00:03:15
- Testing the Public Key 00:01:46
- Adding a User Interface 00:02:42
- Optional: Configuring our UI - Creating a Wallet 00:13:18
- Optional: Configuring our UI - Loading a Wallet and Adding Mining & Transactions 00:11:59
- Exploring our UI 00:02:45
- Wrap Up 00:01:53
- Chapter 12 : The Node Network
- Module Introduction 00:01:43
- Adding Node Management Methods to the Blockchain 00:07:18
- Setting Up Routes to Add Nodes 00:07:40
- Adding a Remove Node Route 00:05:18
- Adding "get_Nodes" to get all Nodes 00:01:19
- Attaching a Node User Interface 00:11:07
- Running Multiple Nodes 00:11:19
- Sending Requests from within Python 00:10:37
- Broadcasting Transactions - Adding the Function & Route 00:12:06
- Broadcasting Transactions - Testing & Fixing Errors 00:05:51
- Broadcasting New Blocks: Adding the Function & Route 00:11:13
- Broadcasting New Blocks: Informing the Peer Nodes 00:09:54
- Broadcasting Transactions: Testing 00:03:29
- Solving Conflicts 00:05:33
- Understanding Consensus 00:03:28
- Finding Conflicts 00:09:35
- Implementing a Consensus Algorithm 00:17:20
- Testing Consensus 00:05:49
- Wrap Up 00:01:01
- Chapter 13 : Next Steps and Course Roundup
- Module Introduction 00:00:47
- Don't Forget PEP 8 00:02:47
- Using PEP 8 00:08:29
- Using Comments 00:01:02
- Diving Deeper Into Python 00:05:07
- Improving the Blockchain 00:10:02
- Congratulations 00:00:58
Show and hide more 9781789610666.learn.python.by.OR.part1.rar
9781789610666.learn.python.by.OR.part2.rar
TO MAC USERS: If RAR password doesn't work, use this archive program:
RAR Expander 0.8.5 Beta 4 and extract password protected files without error.
TO WIN USERS: If RAR password doesn't work, use this archive program:
Latest Winrar and extract password protected files without error.