It’s time to dive into the BlockChain again in a deeper fashion. Following this course is a good step.
Note before diving, here are some notes I took from Professor Dan Boneh’s talk about BlockChain, DAI DeFi took us fed policy into algorithm and Lending platform Compound, he loves that he can read the codes not white papers anymore, Zero knowledge proof system: You know where it is but don’t need to tell other how you found it.
The course is about 16 hours long. so it’s quite a journey. Here is the content:
⭐️ Course Contents ⭐ ⌨️ (00:00:00) Introduction ⌨️ (00:06:33) Lesson 0: Welcome To Blockchain ⌨️ (01:31:00) Lesson 1: Welcome to Remix! Simple Storage ⌨️ (02:09:32) Lesson 2: Storage Factory ⌨️ (02:26:35) Lesson 3: Fund Me ⌨️ (03:26:48) Lesson 4: Web3.py Simple Storage ⌨️ (04:27:55) Lesson 5: Brownie Simple Storage ⌨️ (05:06:34) Lesson 6: Brownie Fund Me ⌨️ (06:11:38) Lesson 7: SmartContract Lottery ⌨️ (08:21:02) Lesson 8: Chainlink Mix ⌨️ (08:23:25) Lesson 9: ERC20s, EIPs, and Token Standards ⌨️ (08:34:53) Lesson 10: Defi & Aave ⌨️ (09:50:20) Lesson 11: NFTs ⌨️ (11:49:15) Lesson 12: Upgrades ⌨️ (12:48:06) Lesson 13: Full Stack Defi ⌨️ (16:14:16) Closing and Summary
First, the concept of Blockchain. Data going through the hash algo and output the hash dynamically, the length of which doesn’t change. While the concept of block, there are three blocks: block, nonce, and data. If you hit “mine”, the nonce changes, hash starts with 000004. Only way is to brute force trying numbers in nonce. Nonce is the solution to the block. It’s computationally intense. Then go to Tokens area, it’s composed of many Peer arrays, if you tamper one record, all the other peer records won’t match. Then the concept of private and public keys. Have a private key to sign things, and public key so everybody can verify it’s your signature. The public key is derived from your private key. It’s the concept mentioned by Dan Boneh, that is zero knowledge proof, say if you are told to find a portrait form one thousand portraits in a piece of paper, you can just cut this one out, shred the rest, and show the rest/prove you did it without letting them know how you found it.
Sybil Resistance is to tell who is the block author. PoW and PoS, proof of work called mining requires intensive computation; chain selection rule, Nakamoto consensus, longest chain or longest block, block confirmations means this chain is selected. This has recently changed as of EIP. PoW yes a lot of energy. The miner is paid per transaction fee and block award.