Sunny Aggarwal, presents Cosmos: An Internet of Blockchains at a Blockchain at Berkeley workshop on February 19th, 2019. View event details: https://cosmos.network/events/bab-one
Size: 103.08 MB
Language: en
Added: Feb 21, 2019
Slides: 140 pages
Slide Content
Many Chains, Many Tokens, One Ecosystem Sunny Aggarwal , Cosmos Research Scientist February 2019 | Berkeley, CA
Many Chains, Many Tokens, One Ecosystem Sunny Aggarwal , Cosmos Core Developer February 2019 | Berkeley, CA Evolution of Human Coordination
1. Villages and Kingdoms
2. Empires
3. Nation/City States
Many Chains, Many Tokens, One Ecosystem Sunny Aggarwal , Cosmos Core Developer February 2019 | Berkeley, CA Economic Integration without Political
Free Trade Zones
Containerization
Institutions
Internet
Generation 1
Generation 2
Generation 3
Generation 1 Generation 2 ✓ Sovereignty ✓ Efficient state machines ✓ Customizability ✓ Interoperability of Dapps ✓ Easier to develop ✓ “1 click” deploy
Generation 1 ✓ Sovereignty ✓ Efficient state machines ✓ Customizability ✓ Interoperability of Dapps ✓ Easier to develop ✓ “1 click” deploy Generation 2 Generation 3
✓ Ability to connect multiple separate networks of servers into a single network of networks. ✓ Ability to scale in terms of throughput and geography ✓ Ability to tolerate and recover from failures ARPANET ABRIL 1971 Goals for the Internet
✓ Ability to connect multiple separate networks of servers blockchains into a single network of networks blockchains. ✓ Ability to scale in terms of throughput and geography ✓ Ability to tolerate and recover from failures Goals for the Internet of blockchains
Tendermint BFT Simplified and improved PBFT Provable liveness in partially synchronous network Safety threshold: ⅓ of validators’ power 1-block finality Consistency-prioritizing Rotating proposer Tendermint 2.0 in progress
Tendermint BFT
Sovereignty Efficient state machine Customizability Interoperability Easier to develop “1 click” deploy ✓ Scalability ✓ Fault Tolerance Sustainable Tendermint BFT
Formal specification with proofs of safety and liveness: https:// arxiv.org /abs/1807.04938 Tendermint Diagram: http:// bit.ly /2Nfl9Vb Casper vs Tendermint: https:// bit.ly /2Iu4Uno Tendermint BFT Learn More!
Tendermint Core First production grade BFT consensus engine Written in Go Handles all p2p and consensus logic Can handles 100s of validators at sub-5 second block times
Maximum throughput ( tps ) Bitcoin 3,2 Ethereum 15 Ethermint 200 Tendermint ~14.000* Visa 56.000 * Depends on the number of validators and block size Throughput
Scalability Vertical scalability : How much tps can a single blockchain archive. Has a cap Horizontal scalability : Several separate and specialized chains that interact efficiently through a network Vertical Horizontal
Sovereignty Maintain sovereignty of each zone according to their values and interests Each zone has its own validator set Higher security than pure economic incentives alone There is a continuum between private and public Sovereignty
Proof of Stake Basics Use bonded tokens as resource limiter for determining voting power Eliminates wasteful energy consumption of Proof of Work Public permissionless system Solve nothing at stake problem through slashing and unbonding periods
Delegation Allow any token holder to be a staker by delegating to a validator Skin in the game Automatic reward distribution Solve stickiness issues through features such as instant redelegation and validator commitments
Multi Token Model Specialized staking token for security Similar to ASIC security Allow fees to be paid in any token to massively improve user experience
✓ Sovereignty Efficient state machine Customizability Interoperability Easier to develop “1 click” deploy Scalability Fault Tolerance ✓ Sustainable Proof of Stake
Cosmos Proof of Stake Deep Dive: https:// youtu.be /XxZ04w2x4nk Multi Token Model Paper: http:// bit.ly /2V6YZXI Efficient Token Distribution Paper: http:// bit.ly /2SReAhO Proof of Stake Learn More!
Cosmos SDK
Sovereignty Smart contracting systems should be used for contacting, not Dapps Most production Dapps don’t need a turing complete VM Application Specific Blockchains
Sovereignty Reduces attack surface Efficiency gains due to lower computational overhead Fine tune to optimize for your application Application Specific Blockchains
Cosmos SDK Tutorial: https:// cosmos.network /docs/tutorial/ Cosmos SDK Repo: https:// github.com /cosmos/cosmos- sdk The Case for Application Specific Blockchains: http:// bit.ly /2SMiCI7 Cosmos SDK Learn More!
Low Level Libs
Sovereignty Improvement to Protobuf standard Naturally support interfaces instead of OneOf Deterministic Generate proto files from Go code Amino
Sovereignty Self-balancing AVL tree All values are stored at leaves Immutable with snapshots and caching All operations log(N) No hashing keys required IAVL+
Sovereignty Cryptography library with built-in Amino support Abstracted multisignature pubkeys BGLS Aggregate Signature implementations BGLS verifier in EVM Crypto
EVM client built using the Cosmos SDK Will be fully Web3 compatible Can deploy existing Ethereum dapps / smart contracts Can add your own precompiles Working with TurboGeth team to build and optimize Ethermint 2.0
Sovereignty ✓ Efficient state machine ✓ Customizability Interoperability Easier to develop ✓ “1 click” deploy Scalability Fault Tolerance Sustainable Ethermint
Sovereignty Application-based sharding is logical as it minimizes bottleneck You only have to be a full node for applications you care about Horizontal Scalability
Sovereignty Equivalent to Application Layer in Internet stack Different types of packet structures/handling protocols Token Transfers Non Fungible Assets Data Agoric ERTP Packet Types
An Asset Transfer User Story
Practical use cases in (a fully formed) Cosmos Network. You can take your $BTC from the #Bitcoin blockchain and move it to a casino zone to play some poker. ✨Wow!✨ You won some money! 🤑 Since you don't want your friends to witness your gambling habits🤐 you move your BTC...
...to a zero knowledge zone with similar semantics as # Zcash , sending your "hard" earned BTC back to yourself over a zero-knowledge tx . 🍬Sweet! Now you have some extra 💰 to take your friend up on a bet. You bet your friend that your # cryptokitty won't give birth to...
...an orange kitten 🐈 within 6 months. Since this is a long time scale and $BTC is still volatile, you decide against using it as the payout vehicle. You instead choose to use a stablecoin like $DAI to do the job. So you send your BTC out of the ZK zone to a @0xProject zone...
...where you use the DEX to trade your 💱BTC for DAI. 📨"You've got DAI." Time to place the bet 🎲 You want it to be trustlessly arbitrated 🔐 meaning no middleman allowed! 🙅 For your one-time bet, you opt for opening up a # smartcontract because it doesn't make sense...
...to spin up a #blockchain (i.e. zone) for one bet. So you send your DAI over to an @ ethermint zone from the 0x zone to put the bet in the smart contract that your friend already wrote. The smart contract locks 🔒 up both your $DAI, set to expire in 6 months if!!!
your kitty doesn't birth an orange cryptokitten , in which case, your friend gets the $DAI. If your kitty does indeed conceive an orange 🐈 within that timeframe, you send your 🐈 from the cryptokitty zone to the smart contract and receive your payout💰 GAME ON ♠️♥️♣️♦️
Sovereignty Efficient state machine Customizability ✓ Interoperability Easier to develop “1 click” deploy ✓ Scalability Fault Tolerance Sustainable IBC
Sovereignty Hubs can be thought of as ISPs in the Internet of Blockchains Minimizes the number of IBC connections to N rather than N 2 Act as a secure medium to prevent chains from double spending each other Hubs
@cosmos
Sovereignty Governance Name Service Peg Zones Leased Security Additional Services
+2/3 validators have signed secp256k1 signature Mint ERC20 Photons waits for 100 blocks Logs events
Sovereignty Efficient state machine Customizability ✓ Interoperability Easier to develop ✓ “1 click” deploy Scalability Fault Tolerance Sustainable Cosmos Hub