Resources
- https://www.youtube.com/watch?v=M576WGiDBdQ
- https://github.com/smartcontractkit/full-blockchain-solidity-course-py
- https://osec.io/blog/tutorials/2022-03-14-solana-security-intro/ - Solana Contract
Introduction
Bitcoin, Ethereum and Smart Contracts
- Bitcoin โ> Digital Gold, store of value, decentralised
- Ethereum โ> Smart contracts that allow for agreements with centralized intermediaries
- Smart Contracts are self executing sets of instructions, without 3rd parties
- Smart Contracts are written in code
- Chainlink provides data and external computation to (Hybrid) smart contracts
Blockchain Oracles
- Bring data from the real world or executes external computations
- However as Ethereum is decentralized, the information and data from sources need to be decentralised as well
- On-chain logic and off-chain data need to be decentralized โ> Creates what is known as a
Hybrid Smart Contract -
Chainlink is a blockchain oracle that allows for unlimited (hybrid) smart contracts, and can work on any platform (like ETH)
- Dapp = Smart Contract = Decentralized application (combination of multiple smart contracts)
- Blockchain = Smart Contract Platform
Benefits of Blockchain
- Decentralized
- Transparency and Flexibility - can see anything that is on-chain
- Speed and Efficiency
- Security and Immutability
- Removal of counterparty risk (self-motivated individuals that act against your interest)
- Trust Minimized Agreements (math-based agreements instead of faith-based)
DAOs - Decentralized Autonomous Organisations
- Organisations that live online, and in smart contracts, they might hold governance tokens on-chain
============================================================================
Ethereum
Setting Up
- Setup via: https://metamask.io/download/
- Seed Phrase (Mnemonic) for Demo: pulse cupboard tragic phone vote skate grass blue spider maze grocery gloom
- Use Etherscan for more information about account: https://etherscan.io/
- Secure both the Mnemonic and Private Key
- Test Networks are available for developers in ETH โ> There is a corresponding Etherscan for those networks
- https://faucet.rinkeby.io/ โ> Faucet is currently down
Tooling Ethereum
- https://remix-ide.readthedocs.io/en/latest/ - Remix IDE.
