Technical Implementation:
- A network of nodes, each node is identified by its public key
- All transections between nodes are done with public/private key protection
- Each block contains the transections after the last block
- Blocks are protected using one-way hash algorithms, e.g.
- A new block is generated by a wining ”miner” node
- New block is then distributed to other network nodes for verification and consensus
- Coins management / General ledger
- Awarding / cost mechanism
Hands-on - a blockchain python program:
- Part 1:
- Part 2:
- Local testing one our development machine:
- login to gucci 10.10.0.32 to start server
- /home/ubuntu/blockchain
- python snakecoin-server-full-code.py
- on your local machine try:
- Testing to generate some blocks:
- curl 10.10.0.32:5002/genblocks
- Add transections:
- curl "10.10.0.32:5002/txion" -H "Content-Type: application/json" -d '{"from": "bbbakjflw", "to":"dddfjlakddddj", "amount": 3}'
- Mining and generating a block:
- curl 10.10.0.32:5002/mine
- Get the list of blocks in the system:
- curl 10.10.0.32:5002/blocks
Blockchain on Tutoring:
CoinMarketCap:
- DOCK.io
- Decentralized logistics platform in the world
- https://www.lwf.io/en
- LWF was created with the aim of bringing together the world’s shipments market and the blockchain technology. We want to develop a system for the management and tracking of orders that is secure, transparent and open to the new era of cryptocurrency payments.LWF’s concept is similar to that of the Uber business model. We create more jobs for people by removing the barriers created by third parties.
- XYO Network, the decentralized, authorotative, and trustless location oracle
- https://bitcointalk.org/index.php?topic=3020460.msg3107053
- The advent of the blockchain has rapidly changed the landscape of the tech industry. In just a few short years, the focus of development has shifted from isolated, siloed, and privatized information systems to decentralized, independent and permissionless ledgers. More recently, the rapid growth of Ethereum has brought smart contracts and DApps to the forefront. Ethereum-based smart contracts give the ability to utilize the blockchain and cryptoeconomic principles across countless industries and implementations. However, we currently don’t have a decentralized and authoritative oracle to determine and verify location. The XYO Network solves this problem by creating a layered location verification service that is effective across many device classes and smart contract protocols. It’s based on a set of novel cryptographic mechanisms, Proof of Origin and Bound Witnesses, which tie together the power of the blockchain and real world data collection into a system with direct applications today.
- IoT Chain
- IoT security into the chain and device sharing
- IOTA
- Ruff OS - Chain for IoT
- Mao Zedong
- https://coinmarketcap.com/currencies/eos/
- Good token according to Ruff CEO
- https://coinmarketcap.com/currencies/tether/
Other Links:
Vermont city pilots blockchain for real estate:
http://statescoop.com/vermont-city-pilots-blockchain-for-real-estate?utm_source=Innovators+Insights+Newsletter&utm_campaign=928dbbe1f6-Newsletter_2018_03_01&utm_medium=email&utm_term=0_171b83f6b5-928dbbe1f6-353498005
West Virginia Becomes First State to Test Mobile Voting by Blockchain in a Federal Election:
http://www.govtech.com/biz/West-Virginia-Becomes-First-State-to-Test-Mobile-Voting-by-Blockchain-in-a-Federal-Election.html
- HyperLedger
- https://github.com/hyperledger
- https://www.ibm.com/developerworks/cloud/library/cl-blockchain-basics-intro-bluemix-trs/index.html
- Ethereum Explained
- https://github.com/ethereum
- Bitcoin
- https://github.com/bitcoin/
- Technically it is not hard nor new - it cleverly uses existing technologies and assemble them nicely.
- a link-list of time-stamped blocks, in bitcoin it is 10 minute blocks, e.g. each block covers 10 minutes transections
- transections insides are hashed using hash-tree with each leaf node a transaction and root node the final hash with "nonce".
- each block has its previous block's hash, thus to prove they are next to each other. It also make changes to the chain harder.
- It is easy to verify if some data belongs to the tree
- say you have a transection and its original data, then people can verify it by doing the one-hash to match it with that in the chain.
- transections are safe since all participant are communicating with each other use private/public keys
- If we enforce the registration validation, then system should be completely safe just like banking or government systems.
- Rewarding/exchange mechanism
- The best of all it is its coin or tokens used in the system for transections of rewarding or exchange.
- Innovation is embed tokens into applications
- If you think web-page /twitter solves the "show off" problem, then blockchain solves the "get paid" problem.
- web-page/blog/twitter/youtube/linkedIn allows one to show off, present one self. (Traditionally, new papers, books, TV are the show off channels which are limited)
- blockchain capabilities allows one to get paid for showing off, for working, etc. (Traditionally, paid by contract, by bank checks etc.)
- web-page/social networks enabled "dynamic contents" - changed the landscape for traditional contents production/distribution - disrupt the ADS industry.
- Cryptocurrency is backed by real money like US Dollars / Chinese Yuan.
- In other words, people wants BitCoin since it can be exchanged to USD freely.
- Cryptocurrency has the money functions like exchange but NOT real money "Foundation" like GOLD.
- Most likely when Crypto-money gets more popular, the world only exist a few hard currencies like Dollars and Yuan.
- Think Bitcoin more like a "stock" with money functions.
- One way hash is the key for blockchain success.
- once it is hashed, it would be very hard to change - in fact not changeable - the basis of blockchain
- (1) if you change, you have to change all blocks after that since each contains the pre-block-hash. When POW is included, each time you have to solve a math puzzle, then it gets much harder.
- (2) data are distributed. Others will not accept your new data
- Why we need POW?
- it consumes a lot of electricity
- it challenges the miners before submitting a block to the chain. This is fair to the first node which can solve the puzzle.
- It also make change harder - change one block, you have to change subsequent blocks along with POW before changing each.
- POS (Power of Stake) is another way which do not consuming electricity. S stands for Stake you have in the system.
- So POW is for the powerful, POS for the rich, how about POR (Power of Random)?
- Cryptocurrency via Paypal/Credit card
- Traditional digital payment is still a separate process from own application. e.g. when it coming to payment, then switch to another system.
- This is very similar traditional voice/video compared with voice/video over IP data. It enables deep integration into apps for voice/video - Suddenly a revolution!