Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Blockchain is a shared, trusted, public ledger of transactions, that everyone can inspect but which no
- single user controls. It is a distributed database that maintains a continuously growing list of transaction
- data records, cryptographically secured from tampering and revision.
- It allows us to trust the outputs of the system without trusting any actor within it.
- A Blockchain protocol operates on top of the Internet, on a P2P Network of computers that all run the
- protocol and hold an identical copy of the ledger of transactions, enabling P2P value transactions without
- a middleman though machine consensus. Blockchain itself a file - a shared and public ledger of
- transactions that records all transactions from the genesis block (first block) until today.
- The ledger is built using a linked list, or chain of blocks, where each block contains a certain number of
- transactions that were validated by the network in a given timespan. The crypto-economic rulesets of the
- blockchain protocol (consensus layer) regulate the behavioral rulesets and incentive mechanism of all
- stakeholders in the network.
- BLOCKCHAIN TECHNOLOGY HANDBOOK------------------------------------> TEXT FROM IMAGES
- This ledger runs on a Peer-to-Peer (P2P) network of computers. Distributed consensus based on economic
- incentive mechanisms (game theory) combined with cryptography allows for secure P2P validation of
- transactions, thus bypassing the need for traditional trusted third parties.
- Removing the Middleman
- Instead of a single trusted third party validating transactions through their servers with authority (single
- vote), a peer to peer network of computers running the blockchain protocol validates transactions by
- consensus (majority vote). The blockchain protocol, therefore, formalizes pre-defined consensus rules for
- approving transactions on the P2P network, as hard-coded governance rules, managing and auto enforcing
- transactions of all participants in the network.
- Smart Contracts
- Blockchain was initially designed for P2P money only. But it soon showed the potential to be used for any
- kind of P2P value transaction on top of the Internet. The Ethereum project thus introduced the idea of
- decoupling the contract layer from the blockchain layer, where the ledger itself is used by smart contracts
- that trigger transactions automatically when certain pre-defined conditions are met. By decoupling the
- smart contract layer from the blockchain layer, blockchains like Ethereum aim to provide a more flexible
- development environment than the Bitcoin blockchain.
- These smart contracts are a piece of code running on top of a blockchain network, where digital assets are
- controlled by that piece of code implementing arbitrary rules. They have properties of contractual
- agreements but should not be confused with legal contracts.
- If and when all parties to the smart contract fulfill the pre-defined arbitrary rules, the smart contract will
- auto execute the transaction. These smart contracts aim to provide transaction security superior to
- traditional contract law and reduce transaction costs of coordination and enforcement.
- With blockchains and smart contracts we can now imagine a world in which contracts are embedded in
- digital code and stored in transparent, shared databases, where they are protected from deletion,
- tampering, and revision.
- In this world every agreement, every process, task and payment would have a digital record and signature
- that could be identified, validated, stored, and shared.
- Intermediaries like lawyers, brokers, and bankers, and public administrators might no longer be necessary.
- Individuals, organizations, machines, and algorithms would freely transact and interact with one another
- with little friction and a fraction of current transaction costs.
- PC isolati -> trasferimento dati a mano -> internet (client server) -> distributed
- POF: trusted entity
- While Blockchain is
- a great P2P way to record who did what and when, it is not ideal for storing large amounts of data, for two
- reasons: (1) scalability: blockchains are too slow, and (2) doesn't allow privacy by design: never store
- private data on the Blockchain.
- ARE BLOCKCHAIN LIKE CITIES?
- Private institutions like banks realized that they could use the core idea of blockchain as a distributed
- ledger technology (DLT), and create a permissioned blockchain (private of federated), where the validator
- is a member of a consortium or separate legal entities of the same organization. The term blockchain in
- the context of permissioned private ledger is highly controversial and disputed. This is why the term
- distributed ledger technologies emerged as a more general term.
- Private blockchains are valuable for solving efficiency, security and fraud problems within traditional
- financial institutions, but only incrementally. It's not very likely that private blockchains will revolutionize
- the financial system. Public blockchains, however, hold the potential to replace most functions of
- traditional financial institutions with software, fundamentally reshaping the way the financial system
- works.
- Public Blockchains
- State of the art public Blockchain protocols based on Proof of Work (PoW) consensus algorithms are open
- source and not permissioned. Anyone can participate, without permission. (1) Anyone can download the
- code and start running a public node on their local device, validating transactions in the network, thus
- participating in the consensus process – the process for determining what blocks get added to the chain
- and what the current state is. (2) Anyone in the world can send transactions through the network and
- expect to see them included in the blockchain if they are valid. (3) Anyone can read transaction on the
- public block explorer. Transactions are transparent, but anonymous/pseudonumous.
- Effects:(1) Potential to disrupt current business models through disintermediation. (2) No infrastructure costs: No need to
- maintain servers or system admins radically reduces the costs of creating and running decentralized applications (dApps).
- Federated Blockchains or Consortium Blockchains
- Federated Blockchains operate under the leadership of a group. As opposed to public Blockchains, they
- don't allow any person with access to the Internet to participate in the process of verifying transactions.
- Federated Blockchains are faster (higher scalability) and provide more transaction privacy. Consortium
- blockchains are mostly used in the banking sector. The consensus process is controlled by a pre-selected
- set of nodes; for example, one might imagine a consortium of 15 financial institutions, each of which
- operates a node and of which 10 must sign every block in order for the block to be valid. The right to read
- the blockchain may be public, or restricted to the participants.
- Effects : (1) reduces transaction costs and data redundancies and replaces legacy systems, simplifying document handling and
- getting rid of semi manual compliance mechanisms. (2) in that sense it can be seen as equivalent to SAP in the 1990's: reduces
- costs, but not disruptive.
- Note : Some would argue that such a system is not a blockchain. Also, Blockchain is still in it's early stages. It is unclear how the
- technology will pan out and will be adopted. Many argue that private or federated Blockchains might suffer the fate of Intranets
- in the 1990's , when private companies built their own private LANs or WANs instead of using the public Internet and all the
- services, but has more or less become obsolete especially with the advent of SAAS in the Web2.
- Private Blockchains
- Write permissions are kept centralized to one organization. Read permissions may be public or restricted
- to an arbitrary extent. Example applications include database management, auditing, etc. which are
- internal to a single company, and so public readability may in many cases not be necessary at all. In other
- cases public audit ability is desired. Private blockchains are a way of taking advantage of blockchain
- technology by setting up groups and participants who can verify transactions internally. This puts you at
- the risk of security breaches just like in a centralized system, as opposed to public blockchain secured by
- game theoretic incentive mechanisms. However, private blockchains have their use case, especially when it
- comes to scalability and state compliance of data privacy rules and other regulatory issues. They have
- certain security advantages, and other security disadvantages (as stated before).
- Effects : (1) reduces transaction costs and data redundancies and replaces legacy systems, simplifying document handling and
- getting rid of semi manual compliance mechanisms. (2) in that sense it can be seen as equivalent to SAP in the 1990's: reduces
- costs, but not disruptive.
- Note : Some would argue that such a system is not a blockchain. Also, Blockchain is still in it's early stages. It is unclear how the
- technology will pan out and will be adopted. Many argue that private or federated Blockchains might suffer the fate of Intranets
- in the 1990's , when private companies built their own private LANs or WANs instead of using the public Internet and all the
- services, but has more or less become obsolete especially with the advent of SAAS in the Web2.
- State of the art public blockchains currently have a scalability issue, which means that the network can
- only handle a few transactions per second, which makes them unfeasible for large scale applications with
- high transaction volumes. Bitcoin and Ethereum can only handle less than a dozen transactions per
- second, yet Visa alone would require 100k transactions per second at peak times.
- The Bitcoin Blockchain is a game changer, because it is public and permissionless. Anyone in the world can
- download the open source code, and can start verifying transaction, being rewarded with bitcoin, through
- a concept called mining.
- All stakeholders in the bitcoin network, who do not know and trust each other, are coordinated through an
- economical incentive framework pre-defined in the protocol and auto enforced by machine consensus of
- the P2P Network. The smart contract in the blockchain protocol therefore provides an coordination
- framework for all network participants, without the use of traditional legal contracts. In private and
- permissioned blockchain, all network participants validating transactions are known. Bilateral or
- multilateral legal agreements provide a framework for trust, not the code.
- Cryptoeconomics refers to as the study of economic interaction in adversarial environments. The
- underlying challenge is that in decentralized P2P systems, that do not give control to any centralized
- party, one must assume that there will be bad actors looking to disrupt the system. Cryptoeconomic
- approaches combine cryptography and economics to create robust decentralized P2P networks that thrive
- over time despite adversaries attempting to disrupt them. The cryptography underlying these systems is
- what makes the P2P communication within the networks secure, and the economics is what incentivizes all
- actors to contribute to the network so that it continues to develop over time.
- Before the advent of Bitcoin, it was commonly believed to be impossible to achieve fault tolerant and
- attack resistant consensus among nodes in a P2P network ( Byzantine General’s Problem ). Satoshi
- Nakamoto introduced economic incentives to a P2P Network and solved that problem in the Bitcoin White
- Paper published in 2008. While decentralized P2P systems based on cryptography were nothing new – see
- Kazaa and BitTorrent – what these P2P systems before Bitcoin lacked was economic incentive layer for
- coordination of the network of participants. Satoshi’s implementation of a Proof of Work (POW)
- consensus mechanism introduced a new field of economic coordination game, now referred to as
- cryptoeconomics.
- GAP TILL TOKENS
- Tokens
- Native tokens of state of the art public & permissionless Blockchains like Bitcoin or Ethereum, are part of
- the incentive scheme to encourage a disparate group of people who do not know or trust each other
- organize themselves around the purpose of a specific blockchain.
- These blockchain based cryptographic tokens enable "distributed Internet tribes" to emerge. As opposed
- to traditional companies that are structured in a top manner with many layers of management
- (bureaucratic coordination), blockchain disrupt classic top down governance structures with decentralized
- autonomous organizations (DAOs), where a group of people bound together not by a legal entity and
- formal contracts, but instead by cryptographic tokens (incentives) and fully transparent rules that are
- written into the software
- The Bitcoin Network can be seen as the first true DAO that provides an infrastructure for money without
- banks and bank managers and has stayed attack resistant as well as fault tolerant since the first block was
- created in 2009. No central entity controls Bitcoin. In theory, only a worldwide power outage could shut
- down Bitcoin.
- With the advent of Ethereum however, tokens have moved up the technology stack and can now be issued
- on the application layer as dApp tokens or DAO tokens. Smart contracts on the Ethereum Blockchain
- enable the creation of tokens with complex behaviors attached to them. Today, the token concept is
- central to most social and economic innovations developed with blockchain technology.
- Only permissionless ledgers (public Blockchains like Bitcoin or Ethereum), need some sort of incentive
- mechanism to guarantee that block validators do their job according to the predefined rules. In
- permissioned (federated/consortium/private) distributed ledger systems, validators and block-creators
- may be doing their job for different reasons: i.e., if they are contractually obligated to do so. In
- permissioned environments, validators can only be members of the club and are manually and centrally
- controlled. Permissioned ledgers, therefore, don’t need a token. Also, please note that the term
- blockchain in the context of such ledgers is highly controversial.
- Type of Tokens
- There are different ways to differentiate between tokens. Some of them are outlined below. Please note
- that Crypto Economics is so new, that we are still in the early stages of exploring different roles and types
- of tokens. With every new Blockchain and every new application layer we will collectively learn by trial and
- error of what works and what not.
- -Usage tokens: A token that is required to use a service. Bitcoin and Ether are the best examples of
- usage tokens — token ownership does not give you any specialized rights within the network, but
- it does give you access to the service (the Bitcoin payment network and the Ethereum Virtual
- Machine in the case of BTC and ETH). Scarce tokens combined with a useful service can create
- massive value for token holders and entrepreneurs.
- -Work tokens: A token that gives users the right to contribute work to a decentralized network or
- DAO (whether on blockchain level or smart contract level) and earn in exchange for their work.
- That work can be serving as an oracle (in the case of Augur ), being the backstop in a collateralized
- debt system (in the case of Maker ), or securing the network (in the case of Ethereum when it
- switches to proof of stake).
- These two types of tokens are not mutually exclusive and some tokens serve as both: usage tokens and
- work tokens. An example of a token with both characteristics will be ETH when Ethereum transitions from
- proof of work to proof of stake . Another way to differentiate between tokens is:
- -Intrinsic, Native or Built-in Tokens: of blockchains like Bitcoin, Ether, etc that serve as: (a) block
- validation incentives (‘miner rewards’); and (b) transaction spam prevention. The logic behind this
- is that if all transactions are paid, it limits the ability to spam.
- - Application Tokens: With Ethereum, tokens can now easily be issued on the application layer
- through smart contracts on the Ethereum Blockchain as so-called complex dApp tokens or
- complex DAO tokens.
- - Asset-backed tokens: that are issued by a party onto a blockchain for later redemption. They are
- the digital equivalent to physical assets. They are claims on an underlying asset (like the gold), that
- you need to claim from a specific issuer (the goldsmith). The transactions as tokens get passed
- between people are recorded on the blockchain. To claim the underlying asset, you send your
- token to the issuer, and the issuer sends you the underlying asset.
- Smart Contracts
- A smart contract is a computer code running on top of a blockchain containing a set of rules under which
- the parties to that smart contract agree to interact with each other. If and when the pre-defined rules are
- met, the agreement is automatically enforced. The smart contract code facilitates, verifies, and enforces
- the negotiation or performance of an agreement or transaction. It is the simplest form of decentralized
- automation. It is a mechanism involving digital assets and two or more parties, where some or all of the
- parties deposit assets into the smart contract and the assets automatically get redistributed among those
- parties according to a formula based on certain data, which is not known at the time of contract initiation.
- The term smart contract is a bit unfortunate since a smart contract is neither smart nor are they to be
- confused with a legal contract:
- - A smart contract can only be as smart as the people coding taking into account all available
- information at the time of coding.
- - While smart contracts have the potential to become legal contracts if certain conditions are met,
- they should not be confused with legal contracts accepted by courts and or law enforcement.
- However, we will probably see a fusion of legal contracts and smart contracts emerge over the
- next few years as the technology becomes more mature and widespread and legal standards are
- adopted.
- Slashing Transactions Costs
- Would you enter into a contract with someone whom you’ve never met? Would you agree to lend money
- to some farmer in Ethiopia? Would you become an investor in a minority-run newspaper in a war zone?
- Would you go to the hassle of writing up a legal binding contract for a $5 purchase over the internet? For
- most people the answer would be no, as the transaction costs for these examples exceed the value
- transferred.
- The term smart contract proceeds blockchains and was first proposed by Nick Szabo in 1996. The aim is to
- provide security that is superior to traditional contract law and to reduce other transaction costs
- associated with contracting. Auto enforceable code – whether on the protocol level or on the application
- level – standardizes transaction rules, thus reducing the transaction costs of:
- - Reaching an agreement
- -Formalization
- - Enforcement
- A smart contract can formalize the relationships between people, institutions and the assets they own.
- The transaction rulesets (agreement) of the smart contract define the conditions – rights and obligations –
- to which the parties of a protocol or smart contract consent. It is often predefined, and agreement is
- reached by simple opt-in actions. This transaction rule set is formalized in digital form, in
- machine-readable code (formalization). These rights and obligations established in the smart contract can now be automatically executed by a computer or a network of computers as soon as the parties have
- come to an agreement and met the conditions of the agreement (enforcement).
- Although the concept of smart contracts is not new, blockchain technologies seem to be the catalyst for
- smart contract implementation. The most primitive form of a smart contract is a vending machine. The
- rules of a transaction are programmed into a machine. You select a product by pressing a number related
- to that product, insert the coins, the machine acts as a smart contract checking whether you inserted
- enough money. If yes, the machine is programmed to eject the product, and if you inserted too much
- money, it will also eject the change. If you didn’t insert enough money, or if the machine ran out of the
- money, you will get your change back. Automatic vending machines not only slashed transaction costs by
- making human vendors obsolete, but they also expanded service, offering 24/7 availability instead of
- limited opening hours of a kiosk.
- Smart contracts are capable of tracking performance in real time and can bring tremendous cost savings.
- Compliance and controlling happen on the fly. In order to get external information, a smart contract needs
- information oracles , which feed the smart contract with external information that can trigger transactions.
- Oracles:
- Oracles feed the smart contract with external information that can trigger predefined actions of the smart contract. This external data stems either from so ware (Big-data application) or hardware (Internet-of-Things). Such a condition could be any data, like weather temperature, successful payment, or price fluctuations. However, it is important to note that a smart contract does not wait for the data from an outside source to ow into the system. The contract has to be invoked, which means that one has to spend network resources for calling data from the outside world. This induces network transaction costs. In the case of Ethereum, this would be “gas.”
- Software Oracles
- handle information data that originates from online sources, like temperature, prices of commodities and goods, flight or train delays, etc. The so ware oracle extracts the needed information and pushes it into the smart contract.
- Hardware Oracles
- Some smart contracts need information directly from the physical world, for example, a car crossing a barrier where movement sensors must detect the vehicle and send the data to a smart contract, or RFID sensors in the supply chain industry.
- Inbound Oracles
- provide data from the external world.
- Outbound Oracles
- provide smart contracts with the ability to send data to the outside world. An example would be a smart lock in the physical world, which receives payment on its blockchain address and needs to unlock automatically.
- Consensus-based Oracles
- get their data from human consensus and prediction markets like Augur and Gnosis. Using only one source of information could be risky and unreliable. To avoid market manipulation, prediction markets implement a rating system for oracles. For further security, a combination of different oracles may be used, where, for example, three out of ve oracles could determine the outcome of an event.
- The main challenge with oracles is that people need to trust these outside sources of information, whether they come from a website or a sensor. Since oracles are third-party services that are not part of the blockchain consensus mechanism, they are not subject to the underlying security mechanisms that this public infrastructure provides. One could replicate “man-in-the-middle attacks” standing between contracts and oracles.
- The robustness assurance of this “second layer” is of utmost importance. Different trusted computing techniques can be used as a way of solving these issues. However, this topic will need more attention, as secure oracles are a bottleneck for smart contract security. If oracle security is not adequately provided, it will be a show stopper for widespread smart contract implementation.
- Oracles
- An oracle, in the context of blockchains and smart contracts, is an agent that finds and verifies real-world
- occurrences and submits this information to a blockchain to be used by smart contracts.
- Smart contracts contain value and only unlock that value if certain pre-defined conditions are met. When a
- particular value is reached, the smart contract changes its state and executes the programmatically
- predefined algorithms, automatically triggering an event on the blockchain. The primary task of oracles is
- to provide these values to the smart contract in a secure and trusted manner.
- Blockchains cannot access data outside their network. An oracle is a data feed – provided by third party
- service – designed for use in smart contracts on the blockchain. Oracles provide external data and trigger
- smart contract executions when pre-defined conditions meet. Such condition could be any data like
- weather temperature, successful payment, price fluctuations, etc.
- Oracles are part of multi-signature contracts where for example the original trustees sign a contract for
- future release of funds only if certain conditions are met. Before any funds get released an oracle has to
- sign the smart contract as well.
- Smart Contract Example
- If A and B don’t know and don’t trust each other, they usually need a trusted third party to serve as an
- intermediary to verify transactions and enforce them. With smart contracts & blockchains, you don’t need
- those trusted intermediaries anymore for clearing or settlement of your transactions. Take the example of
- buying and selling a car: If Alice wants to purchase a car from Bob, a series of trusted third parties are
- required to verify and authenticate the deal. The process differs from country to country but always
- involves at least one, but usually more, trusted third parties: motor vehicle registration authority, in
- combination with a notary and/or insurance company. It is a complicated and lengthy process, and
- considerable fees for these middlemen apply.
- On the Blockchain, once all involved authorities and companies are on a blockchain, a smart contract could
- be used to define all the rules of a valid care sale. If Alice wanted to buy the car from Bob using a smart
- contract on the blockchain, the transaction would be verified by each node in the Blockchain Network to
- see if Bob is the owner of the car and if Alice has enough money to pay Bob.
- If the network agrees that both conditions are true, Alice automatically gets the access code to the smart
- lock for the garage. The blockchain registers Alice as the new owner of the car. Bob has € 20,000 more on
- his account, and Alice € 20,000 less. No middlemen required. On the Blockchain, who owns what is
- transparent and at the same time anonymous or pseudonymous. This means that every computer running
- the blockchain protocol could check whether a certain person is the rightful owner of the car or not.
- Stealing cars won’t be as easy as today, especially once we have smart keys granting access control
- verified on the blockchain, to unlock our future vehicles. As the owner of the car, you could authorize
- other people to drive it (stating the public key of the respective individual). In such cases opening the car
- would only be possible with a smart key on the Blockchain.
- Types of Smart Contracts
- Blockchain and smart contracts have the potential to disrupt many industries. Use cases can be found in
- banking, insurance, energy, e-government, telecommunication, music & film industry, art world, mobility,
- education and many more. Smart contract use cases range from simple to complex.
- Time-stamping services like ascribe (art registry) or governmental and semi-governmental registries (land
- titles, birth certificates, birth certificates, school and university degrees) are examples for simpler
- technological use cases (the regulatory aspects might be more complex). Decentralized autonomous
- organizations, on the other hand, are the most complex form of a smart contract. TheDAO in 2016 was an
- example for such a complex smart contract.
- Given the fact that Blockchain is still a new technology, some industries might adopt smart contracts later
- than others, especially if they are subject to heavy government regulation or if the uses cases require high
- network effects – like widespread technology adoption along the supply chain, standardization, etc. In
- general, it’s advisable to start out with a small pilot project of a less complex use case to build expertise
- and understand the technology better and move on to more complex use case at a later stage.
- 29/58
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement