Starting With Ethereum: Writing a Contract

In the latest post, the required infrastructure to do something on Ethereum was set up. Now is the time to roll up our sleeves and start writing some code on it.

In this post, I’ll show how to write a trivial contract.

What’s a Smart Contract Anyway?

A smart contract is a computer protocol intended to facilitate, verify, or enforce the negotiation or performance of a contract. – Wikipedia

That doesn’t tell us much. My understanding is that on the blockchain in general, and on Ethereum in particular, smart contracts are just code. Which is a good thing, since we are developers, and writing code is our bread-and-butter (or at least it should be).

As Ethereum has an Ethereum Virtual Machine, it can run contracts, code, in the form of dedicated bytecode. However, just like in Java, directly writing such bytecode is not really feasible for non-trivial software. Thus, a high-level language is required.

Read full news article on Dzone

 


Date:

Categorie(s):