Among the design goals mentioned in the Ercoin’s whitepaper are:
- low entry barrier;
- easy integration;
- fast confirmations;
- companion software built around the blockchain, not on the blockchain.
To illustrate them, we can show a proof of concept of a serverless ebook store with delivery by email. An order is placed by making an Ercoin transfer, with transfer message containing the buyer’s email and the filename of the ebook (separated by space). The store monitors its Ercoin address, performing delivery immediately when there is an eligible confirmed transaction (typically in a few seconds after broadcast). Since the payments do not include any dynamically created data, ebook catalogue can be published via many conventional channels like social media, static websites and even printed leaflets and newspaper advertisements.
We implement Ercoin integration using only generic libraries, without any Ercoin- or Tendermint-specific SDK. Despite of that, the code (in Ruby) is only 42 lines long, including imports and blank lines. (This version does not include catching up on the missed transactions when the daemon goes back online, but it should be relatively easy to implement).
The concept can of course be abstracted to a library that allows performing arbitrary reactions to Ercoin transactions.