Week 1 Fundamentals: Fork a Github Repo, VSCode and Hashing Exercise

conAcademy
conAcademy
52 بار بازدید - 3 سال پیش - This is the recording of
This is the recording of the live session from September 9th, 2021. The repository with the exercises are here and the study guide is here. https://github.com/cooganb/bitcoin-whitepaper-exercises Week 1 Study Guide For folks who are interested in study groups, were providing a few resources you can walk through as a group. These are just suggestions to get you started and you dont have to follow them. Please note: Some of these exercises may take more than one session! Dont feel like you have to finish them all in one sitting. It might be helpful to start working on them separately, then come together when youre all at a similar stopping point. You can share what youve gone through, some challenges you had, and help anyone still working through the exercises. Well also be going through these examples / tutorials in the weekly sessions. Well be encouraging people to share their work there as well. Be kind to those in your group! 1. Beginning: Ethereum 101 Workshop See a recording of the first exercise here The first is a few basic exercises showing what a private key looks like and how it functions. Well be walking through these slides, but there are exercises located in the middle of the presentation that you might find interesting, especially in a group. Scroll through the slides using your arrow keys until you see Exercise 1 on the slide, about twenty slides in. At the bottom of the left column, click the light red Generate Ethereum Address button to see the Ethereum Accounts and Private Key sections populate. Please note: Private keys generated here are NOT safe and should not be used outside of educational purposes! Click the Private Key field to drag and drop the private key into the Private Key empty slot. Write a message in the Message field and click Sign Message In the right column, drag the Message Text, and the Message Signature from the right column and the Ethereum Address from the left column. Note: Do not use the private key! Check the validity of the message by clicking Verify Signature. Trying tweaking any of the inputs (Text, Signature or Account) to see the verification fail. (Please note this is all happening locally on your machine using a cryptographic library, not checking some server or third party.) If you click Download Message Data, it will generate a .txt file you can send to other folks in your group to test their messages as well. Be careful: You have to copy and paste this perfectly and you have to open their file in a way that wont change the .txt encoding. If you open it using Microsoft Word, for example, or Google Docs, even that basic encoding will tamper the message and render it invalid. This is a great example of how decentralized identity is very powerful but also very brittle: Even the smallest of issues breaks the system. If youre interested, theres another exercise after this Encode / Decode exercise. Its similar to the Anders Blockchain exercises, that shows how changing one piece of information in a hash chain breaks all the subsequent blocks. Theres also a toy Solidity editor that allows you to deploy code with a click if you have MetaMask installed with enough ether for whatever network youre on! Well be going through these during the Wednesday live session 2. Technical: Bitcoin hashing exercises First, clone this repo of Bitcoin Whitepaper Exercises Second, follow the steps in this README to do the first exercise, Hashing. Please note, it doesnt matter which hashing algorithm you use, as long as it is consistent. A more advanced tutorial you can follow is this one in Python. This is a from-scratch implementation of Bitcoin with zero dependencies ( ). For those of you who following Machine Learning, its from Andrej Karpathy, whos written great stuff on Neural Networks). You can follow along with the Python as he builds it or you could run the Jupyter notebook here. This is for intermediate-to-advanced Python users. If youre not familiar with Python, this i
3 سال پیش در تاریخ 1400/09/19 منتشر شده است.
52 بـار بازدید شده
... بیشتر