yeeth updates #2

BeaconChain, BLS & Libp2p

Dean Eigenmann
Mar 14, 2019 · 2 min read

Since our updates roughly one month ago we’ve continued active development on our ETH 2.0 implementation. We’ve made significant progress implementing both the BeaconChain as well as active development of various technology surrounding it.

Contributions to the BeaconChain spec

We were again able to contribute to the BeaconChain spec by simplifying the is_power_of_two function.

The code not only reduces the complexity of the previous implementation but is also more efficient, as was discovered in trinity.

BeaconChain Updates

Our BeaconChain went through various updates over the past month, not only did we implement the spec version 0.4.0, but we also started working on cleaning up the code base so it is no longer a one-to-one copy of the specification. This means beginning to “swiftify” the code and unpacking logic into multiple classes rather than one monolithic file. These updates are not done and will be completed step by step while we still focus on being up to date with the latest spec version.


After experiencing issues compiling the BLS libraries so we could use them in Swift, Eric Tu found a method on how to get it working. He is currently working on a branch, which has not been merged yet due to minor issues related to keys.


In order to get started on the next stage of our BeaconChain implementation we require libp2p, although we could use one of the other implementations we decided we wanted a full swift implementation. We began implementing using the JavaScript code as a reference and focusing on first creating stubs so that we have our interfaces ready. Libp2p has several dependencies like Multihash, Base58 etc. which we are also working on implementing in swift.

To stay up to date:

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store