We can use the infrastructure we've built so far to secure a blockchain. Note that I am NOT a security professional, and the information presented in this video is not to be taken as any sort of certified advice.
Timestamps
00:37 Description of the Blockchain struct
00:53 Implement: Blockchain Struct
02:01 Creating a block-chain
06:03 Review: Mining
07:17 Block Verification
10:16 Implement: Blockchain Verification
17:33 Testing the verify() function
Links
Companion blog post: https://medium.com/p/2714e1a76654
Code Repository: https://github.com/GeekLaunch/blockchain-rust
Slides: https://geeklaunch.net/slides/Blockchain%20In%20Rust%2003.pdf
Install Rust: https://www.rust-lang.org/
How Bitcoin adjusts its difficulty: https://en.bitcoin.it/wiki/Difficulty#What_network_hash_rate_results_in_a_given_difficulty.3F
Bitcoin's block verification steps: https://en.bitcoin.it/wiki/Protocol_rules#.22block.22_messages
http://geeklaunch.net/
Support GeekLaunch on Patreon: https://www.patreon.com/GeekLaunch
Follow GeekLaunch on Twitter: https://twitter.com/Geek_Launch
GeekLaunch produces educational videos covering such topics as Linux, web development (including HTML5, CSS 3, JavaScript, and PHP), tips for power users, among many others. Subscribe: New video every Wednesday!
Not a geek? Start today!