Blockchains are hard to understand, so let’s visualize their inner workings by building a front-end application in Angular. I’ll show you how to visualize blocks on the chain and the transactions inside them. We’ll also make a UI to create new transactions and to mine new blocks. All of this is based on the Javascript […]
Transactions on a blockchain have to be signed with a private key. This makes sure that people can only spend coins if they have the private key of their wallet. In this video we will refactor our Javascript blockchain so that it will only accept signed transactions. We’ll use the secp256k1 elliptic curve to generate […]
Implementing miner rewards and basic transactions in our Javascript based blockchain. Mining rewards steadily introduce new coins into the system. OOPS, I made a small mistake! In the minePendingTransactions() method, you have to pass the hash of the previous block when you’re creating a new Block() instance. This was fixed on GitHub: ► Source code […]
Adding the proof-of-work mechanism to our homemade Javascript blockchain. Proof-of-work will secure our blockchain against spammers and people trying to tamper with our blocks. ► Source code Available on GitHub: https://github.com/SavjeeTutorials/SavjeeCoin
Learn how to write your own Blockchain with JavaScript. In this video I’ll show you what is behind a blockchain by using simple code. It’s not a complete implementation, but enough to understand how blockchains work and how they guarantee that blocks can never be changed. After creating our blockchain we’ll try and tamper with […]