Ethereum might just be one step closer to sharding its blockchain.
At least thatâs according to long-time blockchain researcher Vlad Zamfir, who claims to have coded up a successful proof-of-concept of the idea at the ethereum hackathon EthBerlin this week. Built with the help of several other developers, including Tim Beiko, Steve Marx, and pseudonymous coder âmaurelian,â the code is said to demonstrate how different ethereum shards may be able to someday communicate on the blockchain.
Stepping back, sharding is an experimental scaling solution touted as a way to alleviate the strain of a growing network by breaking the blockchain up into smaller units, called shards.
While many ethereum developers, including ethereum creator Vitalik Buterin, are working toward making sharing a part of ethereumâs roadmap, itâs still a work in progress (estimated to be released not for another two years).
Speaking to CoinDesk, Zamfir affirmed the proof-of-concept is ânot even closeâ to production-ready, but nonetheless he believes it contains code that will be fundamental to its deployment on ethereum.
âItâs really a proof-of-concept of the most core component in my sharding roadmap,â Zamfir said. âIt prevents the cross-shard atomicity failure, or more specifically, it prevents finalization of cross-shard atomicity failure, so it will never be that a âsendâ is finalized and a ânot receivedâ is finalized.â
That likely sounds quite technical, and it is, but put simply, Zamfir and the other developers were able to show how ethereumâs native cryptocurrency, ETH, and other messages can be sent securely across a sharded blockchain.
Available on open-source code repository Github, the proof-of-concept comes with a visualizer that allows users to download and stimulate the codebase. Although the current proof-of-work isnât completely finalized, he said.
Zamfir continued:
âWeâre still working on the integration but check back in a week and it should be something where we have instructions and you can follow the instructions and get it running on your computer.â
While the proof-of-concept was finally written in code at the hackathon, according to Zamfir, much of it had already been developed prior.
âThe specifcation was pretty much already 100 percent done, for the most part. I didnât have to do any research at the hackathon, I was just implementing stuff,â he told CoinDesk.
The reason for implementing the codebase, Zamfir said, is largely educational.
âThereâs a lot of people who canât look at research, especially when we donât have research published in the way that weâre really happy with. And so seeing software is something that some people find compelling,â he said.
Beyond that, though, he continued, the proof-of-concept has âalmost no significance,â since it didnât look to uncover any new terrain or solve any known problems. What itâs missing includes a system for transaction fees and a way to route transactions and messages from one shard to another.
âWe have no real routing protocol,â Zamfir said, summarizing:
âAll it is doing is demonstrating the cross-shard message passing in the way that it works with the fork choice rule.â
What Zamfir is referring to when he says âfork choice ruleâ is the code for how ethereum shards interact with the main blockchain. This code was released in a proof-of-concept by Buterin in May.
Still, while Zamfirâs proof-of-concept builds on the broader body of ideas out there around sharding, it is also built to work alongside his âcorrect-by-constructionâ research, which includes rules by which blockchains should come to consensus about transaction histories.
âFor me, itâs all trying to use the correct-by-construction methodology and all of my sharding stuff is very much squarely within that framework,â he told CoinDesk.
And with this focus, Zamfirâs sharding roadmap deviates slightly from the mainstream ethereum sharding roadmap, fulfilling âdifferent design criteria,â he said.
While itâs still rooted in the same problems â trying to come up with ways to solve ethereumâs scaling hurdles, as well as finalizing the upcoming switch to a more egalitarian way to secure blockchains, named proof-of-stake â Zamfir has a different design focus to others looking at sharding.
âI consider the core of sharding to be a cross-shard message or a cross-shard consistency problem,â Zamfir told CoinDesk. âVitalik thinks of it as sharding of availability, validity and execution of the state. I have a different perspective than Vitalik does of consensus protocols and therefore also sharding.â
He continued:
âIâm just focusing on what I think are the hardest problems first.â
Keyboard image by Fancycrave on Unsplash