Chain Reveals 'Ivy' Smart Contract Language in First Public Demo

Venture-backed startup Chain gives first ever public demo of its Ivy smart contract language.

AccessTimeIconDec 7, 2016 at 7:45 p.m. UTC
Updated Aug 18, 2021 at 5:28 p.m. UTC

Presented By Icon

Election 2024 coverage presented by

Stand with crypto

chain-code
chain-code

The 'Wild West' of smart contracts is about to get a little wilder.

  • Bitcoin Mining in the U.S. Will Become 'a Lot More Decentralized': Core Scientific CEO
    13:18
    Bitcoin Mining in the U.S. Will Become 'a Lot More Decentralized': Core Scientific CEO
  • Binance to Discontinue Its Nigerian Naira Services After Government Scrutiny
    05:10
    Binance to Discontinue Its Nigerian Naira Services After Government Scrutiny
  • The first video of the year 2024
    04:07
    The first video of the year 2024
  • The last regression video of the year 3.67.0
    40:07
    The last regression video of the year 3.67.0
  • Following the first-ever public demo of enterprise blockchain company Chain's in-house smart contracts language this week, the venture-backed startup is now preparing to release the technology to the public.

    However, in an exclusive demo of the technology with CoinDesk, the person in charge of developing the language gave a sneak peek at the company's latest creation, explaining, too, what he envisions as its ideal application.

    Product architect Dan Robinson told CoinDesk:

    "Ivy is particularly useful and well-suited for smart contract use cases that involve controlling property in a particular way. It’s a concept we call secured property or smart property."

    Ivy is currently in its R&D phase and is being implemented primarily for internal applications, though he said the expectation is it will eventually be opened to other developers.

    Compiled to the Chain Virtual Machine (its stack machine that translates the code and performs operations), Ivy is described on its website as a declarative language in that its control-flow isn't specified, compared to ethereum's Solidity language (which is object oriented with higher organization).

    Pulling from the prototypical smart contract example first used by developer Nick Szabo, Robinson said early smart contracts the company developed using the language are functionally similar to a vending machine.

    Specifically, he gave the example of a smart contract that would run on a "relatively decentralized exchange" where users can make offers and bids on a multi-asset network. Users could either purchase an underlying asset or a seller could revoke the offer in this paradigm.

    Robinson compared it to a vending machine in which a user can unlock a secured asset (such as a bottle of water) in exchange for a few tokens, but only the owner would have direct access to the product prior to its sale and the key to withdraw the received funds:

    He said:

    "The owner of the vending machine can also go in with his special private key, his physical key, open the vending machine and withdraw the money that’s been paid into it and also the [water bottle] that was protected by it."

    Speaking smart contract

    While the earliest examples of smart contracts written with the language are bound to be rather simplistic, the release comes into a competitive ecosystem.

    Ivy is just the latest in a growing blockchain ecosystem that has seen no shortage of competing in smart contract languages.

    For example, in June, blockchain consortium R3 hosted a smart contracts summit to review a wide range of template being experimented with by the likes of Barclays and others.

    Then, in August, distributed ledger startup Digital Asset open-sourced its own DAML coding language, which it described as similar to a smart contract language, but designed specifically for the financial industry.

    Going into the new year, a series of challenges (including ensuring contract counterparty confidentiality and contract accuracy) are among the top priorities by a number of parties.

    However, Robinson described Chain's language as unique, given that it is designed for a future when digital assets (not just distributed ledgers) will be widely used by financial firms.

    He concluded:

    "A large part of our focus at Chain is financial use cases. Generally, we think that blockchains are most useful when you have some kind of digital asset that is being transferred and issued on a network."

    Ivy image via Shutterstock

    Disclosure

    Please note that our privacy policy, terms of use, cookies, and do not sell my personal information have been updated.

    CoinDesk is an award-winning media outlet that covers the cryptocurrency industry. Its journalists abide by a strict set of editorial policies. CoinDesk has adopted a set of principles aimed at ensuring the integrity, editorial independence and freedom from bias of its publications. CoinDesk is part of the Bullish group, which owns and invests in digital asset businesses and digital assets. CoinDesk employees, including journalists, may receive Bullish group equity-based compensation. Bullish was incubated by technology investor Block.one.


    Learn more about Consensus 2024, CoinDesk's longest-running and most influential event that brings together all sides of crypto, blockchain and Web3. Head to consensus.coindesk.com to register and buy your pass now.