Skip to content

Notes

Video Transcript#

  • A UTXO platform like Bitcoin
  • Advanced scripting capabilities using Ergoscript
    • Functional programming using scala-like syntax
      • INPUTS.exist({utxo:Box} => utxo.value >= 100})
    • Conditional statements If (condition) {block1} else {block2}
    • Store data in registers of UTXO (up to 10 registers)
  • Enriched context
    • Allows multistage contracts using transaction chaining.

Ergo’s approach#

This is essentially the approach that Ergo takes, providing superior support for real-world financial agreements. It does this through:

  1. Support for multi-stage contracts (watch details for developers)
  2. A simple high-level language, ErgoScript, enabling clear descriptions of contractual logic
  3. Support for formal verification of contracts for improved security guarantees (Ergo Platform deployed its first formally verified p2p crowdfunding contract just three months after the network launched)
  4. Easy Oracle creation
  5. Native support for complex signature schemes

In short, creating financial contracts on the blockchain isn’t just about the functionality you provide. It’s about making that functionality safe and accessible, as well as powerful. Ergo achieves this and more.

DeFi dApps have overloaded the Ethereum blockchain, causing long delays and soaring fees for transactions. Ethereum and many other platforms besides have researched and implemented fixes to address the lack of capacity. However, all of the solutions are imperfect in one way or another. Larger blocks are the obvious but clumsy fix, resulting in centralisation as fewer miners can afford the bandwidth, storage and CPU cycles to participate. Reducing the number of block validators – another approach taken to increase throughput – also necessarily centralises the blockchain. Sharding, while potentially very promising, has yet to be implemented successfully, and in some proposed implementations, breaks atomic composability because shards cannot communicate seamlessly.

Thus many of the ways projects seek to ensure their blockchains are fit for purpose result in greater centralisation or loss of critical functionality. 

Marginal gains

Ergo’s developers are watching developments in the DeFi space closely, especially some of the proposals that aim to scale blockchains while maintaining security, decentralisation and atomic composability. In the meantime, there is much that can be done to improve blockchain capacity. The concept of ‘marginal gains’, often applied in sports, is useful: a number of small, incremental gains in different areas all add up to a substantial compound effect.

For Ergo, there are several design principles and choices that have been taken to realise efficiencies in different areas.

  • Storage rent is akin to ‘on-chain garbage collection’, reducing blockchain bloat and lowering the long-term costs of mining, improving economic sustainability.
  • NIPoPoWs (non-interactive proof-of-proof-of-works) enable mobile SPV clients and even lite full nodes, again reducing the barriers to maintaining the network and improving decentralisation.
  • A smart contract language that is finite and clear, without the messiness and possible chain bloat of Turing-complete languages and their unintended consequences.
  • Sigma Protocols, which allow for powerful cryptographic use cases, implemented elegantly and efficiently.

As DeFi emerges as a major use case for blockchain, the stakes could not be higher. Blockchains that are fit for purpose will thrive; those that do not allow the functionality to sustain the required transaction load simply cannot establish a foothold. At the same time moving too fast and implementing untested technology is equally dangerous. 

There are efficiencies to be gained in first-generation blockchains. Ergo continues to prioritise this approach while researching future upgrades.