Build a cryptocurrency! - Blockchain in Rust #01: Blocks
Have you ever wanted to build your own cryptocurrency? Or learn Rust? Well, now you can. This is the first video in a series in which we will build a basic blockchain-based cryptocurrency in the programming language Rust. Dont know Rust? No problem! Ill be explaining some of the basics of Rust programming along the way. This tutorial series will be easier to follow if you have experience with lower-level/systems programming in languages like Assembly, C, or C and/or if you have experience with languages that have strict/complex type systems like Java or Haskell (at least stricter than Python or JavaScript).
Project repo: github.com/GeekLaunch/blockchain-rust
Companion blog post: medium.com/geeklaunch/blockchain-in-rust-01-blocks-hashing-4192f2265d3d
NOTE: YES, THERE IS A LONG INTRO. I wanted to make sure I explained enough concepts for people new to Rust or blockchain to understand. Most of my videos are about web development, so I do not expect my typical viewers to have experience in these realms! 15:54 is where I start actually coding.
Timestamps:
2:18 — Blockchains for Programmers
4:43 — Concept: Hashing
6:35 — What we will be using
9:52 — Code comparison (Java, Rust, JavaScript)
14:19 — Overview of starter files
15:54 — First line of code written: Implementing the Block struct
18:11 — Implementing Block «constructor»
21:40 — Implementing Debug formatter
27:26 — Creating the Hashable trait
30:52 — Implementing Hashable on Block
Links
Project repo: github.com/GeekLaunch/blockchain-rust
Slides: geeklaunch.net/slides/Blockchain In Rust 01.pdf
Rust Language: www.rust-lang.org/
Git: git-scm.com/
Rust Book: doc.rust-lang.org/book/index.html
hex crate: crates.io/crates/hex
crypto-hash crate: crates.io/crates/crypto-hash
geeklaunch.net/
Support GeekLaunch on Patreon: www.patreon.com/GeekLaunch
Follow GeekLaunch on Twitter: 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.
Not a geek? Start today!
0 комментариев