This repo. contains my assignment and notes of the Blockchain Basics course offered by Buffalo University on Coursera.
Core topics :
- Validation
- Verification
- Consensus Protocol
- Immutable Recording
- Unique Identifier
- index
- amt
- optional : condition
- Refernce no. to the current transaction
- Reference to one or more input UTXOs
- Reference to one or more output UTXOs (newly generated by the current transaction)
- Total input and output
- No. of transactions
- Output total
- Estimated Transaction
- Transaction fees
- Height
- Time stamp
- Received Time
- Relayed by
- Difficulty
- Bits
- Size
- Weight
- Version
- Nonce
- Block Reward
- Previous Block
- Next Block
- Merkle Root
- verify transactions
- Broadcast transactions
- compete to create a block
- Reacg consensus by validating blocks
- Broadcast new bolck
- confirm transactions
- for paying minor fees
- does not have an input UTXO
- is called coin based transaction
Ethereum bolckchain used the optional scripting feature to develop a full blown code execution framework called smart contract
Execution of smart contract is initiated by a message embedded in the tracnsaction
- only cryptocurrency - Bitcoin
- currency + Bussiness logic - Etherium
- Only Bussiness logic - Linux foundation's Hyperledger
- Public
- Private
- Permissioned / consortium
pragma solidity ^0.40; contract SimpleStorage { uint storedData; function set (uint x){ storedData =x; }
function get() constant returns (uint){ return storedData; } }
The code is rum in EVM or ethereum virtual machine
input UTXOs --> output UTXOs
- Externaly owned acc
- Contract Acc
Eg - Caution money will be stored in the contract acc and transferred in the respective acc as per the situations and norms.
These are paid in wei, a lower denominationof ether.
- Signature of sneder authorizing transfer
- Amount of wei
- Message to a contract
- Start gas (max no. of steps)
- gas price (fee for computation)
An ethereum node is a computational system representing a business entity or an individual participant.
An ethereum full node hosts the software needed for transaction initiation, validation, mining, block creation, smart contract evaluation and EVM.
A blockchain maintains both a state hash and a receipt hash
Amount of gas available
Amount of gas spent on block creation
Proof of work puzzle winner gets the transaction amount, others who solve it are know as Ommers who get a small bit of it.
encryption is done by shifting the alphabets by a particular distance.
A tracnsaction or a contract locked by one's private key can be opened by a public key only and vice versa.
sender locks it with his private key and receiver's public key while the receiver unlocks it with his private key and sender's public key.
whereas RSA (Rivet-Shamir-Adelman) is used in various other applications such as amazon cloud.
transforms an arbitrary length input data to a unique fixed length value (256 bits)
secure hash agorithm which has 2^256 possible combinations.
- Account Address
- Digital Signatures
- Transition hash
- State Hash
- Receipt hash
- Block header hash