follow us on twitter . like us on facebook . follow us on instagram . subscribe to our youtube channel . announcements on telegram channel . ask urgent question ONLY . Subscribe to our reddit . Altcoins Talks Shop Shop


This is an Ad. Advertised sites are not endorsement by our Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise Here

Author Topic: How Do Ethereum Smart Contracts Work?  (Read 680 times)

Offline Niko

  • Hero Member
  • *
  • *
  • Activity: 1030
  • points:
    4227
  • Karma: 2
  • Trade Count: (0)
  • Referrals: 7
  • Last Active: January 11, 2021, 01:13:05 PM
    • View Profile

  • Total Badges: 18
    Badges: (View All)
    10 Posts First Post Fifth year Anniversary
How Do Ethereum Smart Contracts Work?
« on: September 23, 2018, 08:49:32 PM »
How Do Ethereum Smart Contracts Work?
Like many ideas in the blockchain industry, a general confusion shrouds so called 'smart contracts'.

A new technology made possible by public blockchains, smart contracts are difficult to understand because the term partly confuses the core interaction described.

While a standard contract outlines the terms of a relationship (usually one enforceable by law), a smart contract enforces a relationship with cryptographic code.

Put differently, smart contracts are programs that execute exactly as they are set up to by their creators.

First conceived in 1993, the idea was originally described by computer scientist and cryptographer Nick Szabo as a kind of digital vending machine. In his famous example, he described how users could input data or value, and receive a finite item from a machine, in this case a real-world snack or a soft drink.

In a simple example, ethereum users can send 10 ether to a friend on a certain date using a smart contract (See our guide "What is Ether?").

In this case, the user would create a contract, and push the data to that contract so that it could execute the desired command.

Ethereum is a platform that's built specifically for creating smart contracts.

But these new tools are not intended to be used in isolation. It is believed that they can also form the building blocks for 'decentralized applications' (see: "What is a Dapp?") And even whole decentralized automous companies

How smart contracts work

It's worth noting that bitcoin was the first to support basic smart contracts in the sense that the network can transfer value from one person to another. The network of nodes will only valid transactions if certain conditions are met.

But, bitcoin is limited to the currency use case.

By contrast, ethereum replaces bitcoin's more restrictive language (a scripting language of a hundred or so scripts) and replaces it with a language that allows developers to write their own programs.

Ethereum allows developers to program their own smart contracts, or 'autonomous agents', as the ethereum white paper calls them. The language is 'Turing-complete', meaning it supports a broader set of computational instructions.
Smart contracts can:

Function as 'multi-signature' accounts, so that funds are spent only when a required percentage of people agreeManage agreements between users, say, if one buys the otherProvide utility to other contracts about an application, such as domain registration information or membership records.

Strength in numbers

Extrapolating that last point, smart contracts are likely to need assistance from other smart contracts.

When someone places a simple bet on the temperature on a hot summer day, it may trigger a sequence of contracts under the hood.

One contract would use outside data to determine the weather, and another contract could settle the bet based on the information it received from the first contract when the conditions are met.

Running each contract requires ether transaction fees, which depend on the amount of computational power required.

As explained in our guide "How Ethereum Works", ethereum runs smart contract code when a user or another contract sends it a message with enough transaction fees.


 The Ethereum Virtual Machine then executes smart contracts in 'bytecode', or a series of ones and zeroes that can be read and interpreted by the network.

Altcoins Talks - Cryptocurrency Forum

How Do Ethereum Smart Contracts Work?
« on: September 23, 2018, 08:49:32 PM »

This is an Ad. Advertised sites are not endorsement by our Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise Here


Offline chapcha

  • Sr. Member
  • *
  • Activity: 344
  • points:
    450
  • Karma: 5
  • Trade Count: (0)
  • Referrals: 0
  • Last Active: October 19, 2020, 12:25:02 AM
    • View Profile

  • Total Badges: 16
    Badges: (View All)
    10 Posts First Post Fifth year Anniversary
Re: How Do Ethereum Smart Contracts Work?
« Reply #1 on: September 24, 2018, 06:36:13 AM »
Thank you for the explanation about the smart work contract from Ethereum, bro. I started to understand the term at the moment, bro. That Ethereum Smart Work Contract is a new technology made possible by public blockchain, to be honest, indeed smart contracts are difficult for all of us to understand because this term partly confuses the core interactions described. Because of this I can know about it.

 

ETH & ERC20 Tokens Donations: 0x2143F7146F0AadC0F9d85ea98F23273Da0e002Ab
BNB & BEP20 Tokens Donations: 0xcbDAB774B5659cB905d4db5487F9e2057b96147F
BTC Donations: bc1qjf99wr3dz9jn9fr43q28x0r50zeyxewcq8swng
BTC Tips for Moderators: 1Pz1S3d4Aiq7QE4m3MmuoUPEvKaAYbZRoG
Powered by SMFPacks Social Login Mod