Launch App

Introducing Justin Kilpatrick: The Blockchain Bridge Wizard Who Maintains Gravity

Meet Sommelier cofounder, Justin Kilpatrick, who is also the cofounder at Althea, where as CTO he leads development of the Ethereum bridge, a key component on three major chains: Althea, Cosmos Hub, and Sommelier. It’s happening in Justin time. He likes to do everything “now,” which has led to some favorite mistakes and incredible tech chops.

Among his fond childhood memories is sneaking into his parents room to retrieve his father’s big book of software CDs. After blowing a Ubuntu install immediately after his dad had patiently shown him how to reinstall Windows, he was determined to get it right on his own. Success! He enjoyed the challenge and started playing around with open source. “I did a lot of Linux stuff as a kid,” he says. By high school, he had read the Bitcoin whitepaper and declared it revolutionary to anyone who would listen. He recalls:

“Shortly after learning about Bitcoin I became interested in the idea of mesh networks. I could really see how decentralized payment for broadband would solve a lot of problems but I didn’t really know how it was going to work.”

Toward the end of high school he got caught up in other projects, among them running a Minecraft server with a couple of thousand players on it. “It was a little crazy, very weird experience but fun and I learned a lot about dev ops there,” he says.

From College to Red Hat and Beyond

Justin went to college thinking the whole mesh network plus blockchain thing was going to leave him behind. He says: “I thought it’s not the time, I’m not ready and somebody else was going to get there before me. I finished college and got my dream job as a performance engineer at Red Hat working on open source software doing really deep technical performance engineering.”

After a year or so he was ready for a change. Blockchain was getting hot again. Justin recalls:

“I looked around and thought surely somebody’s got Blockchain plus mesh networks figured out by now. And the answer was no. So I’m like, this is my shot. I’m ready now, the problem has waited for me, it’s time to go for it.”

An Open Source Journey Led to Cosmos to Defy Gravity

Justin started out creating an open source project and his future cofounders came calling. First, Jehan Tremback found him; then, Deborah Simpier found them both. Althea just spiraled out from there. Today, the company has operational software and provides internet to several hundred homes and businesses. Right now, Althea accounts for 70 percent of microtransaction activity on EXDai.

“We’re presenting a different way for consumers to buy bandwidth,” says Justin.”The most important commodity in the world is a commodity that anyone can buy and sell.”

Ironically, what brought Althea to the Cosmos ecosystem was the company’s need for micropayment capability for a low fee. Justin explains:

“It’s funny, micropayments have long been the headliner feature for Blockchain, but if you look around all the major blockchains right now are really bad for micropayments. Althea has a product sold directly to normal people working in gas stations, students learning online, teachers, nurses providing telehealth service. We have to provide them with an easy way to make micropayments with low fees at scale.”

This put Althea on a path to the team at Sommelier and the commitment to build a key component: The Ethereum-Cosmos Gravity bridge.

A Revolutionary Solution to a High-Fee Problem

The Althea team originally designed for Ethereum, which has a wonderful financial system. The fees were too high to be practical for micropayments, but Justin thought payment channels would solve this problem. They did not.

“Jehan wrote a very efficient payment channel implementation but it’s just not good for our use case because you’re trying to route payments along with traffic, it just becomes too complicated because now traffic wants to go here, but payment needs to go there. We sat on that problem for months. How do you decentralize payment channels? And we eventually came to the conclusion that it’s as complicated as proof of stake.”

That’s when Justin recalled hearing about Cosmos. He says: “I’d heard about this great proof of stake blockchain system whose people seemed interested in shipping and actually had something that works.These are all things we like because at Althea, we’re big believers that things should be done today. Cosmos was around, working well, and we decided to focus on that. That’s how we got involved with the Cosmos community and a few years later how we started to get involved with Gravity.”

What Is Gravity and Why Is It Essential?

Gravity is a noncustodial, Ethereum- to-Cosmos bidirectional bridge. It can take assets from Ethereum and bring them to Cosmos and then back again. It can also take assets from Cosmos and bring them to Ethereum and then back again.

“What is revolutionary about Gravity is that it is neither a full light client nor a limited multisig,” says Justin. “These are the two strategies that have been used in bridges before.”

The light client solution is technically complicated to implement and theoretically the most secure, but requires an enormous Solidity contract that acts as a light client for your blockchain. The fees attached to writing an entire Cosmos light client in Solidity would be prohibitive.

The other solution, a multisig, has a small group of people sign off on things and essentially control the branch. “This is sort of semi decent at best,” says Justin.

Gravity is a dynamically updated multisig. So, funds are locked into Gravity on the Ethereum side and then they are controlled by the current validator set that has complete control of the Ethereum contract through a constant series of updates. As soon as the validator set changes on Cosmos, it’s changed on Ethereum.

For a developer who grew up with open source, the Cosmos focus on interoperability is a huge plus. Justin believes in a multichain world and a multichain future.

He says: “Blockchains have a lot of potential, they’re a new way to trust. And trust is the most important thing in society. Who you can allow to do something is very important. But that doesn't mean that there’s going to be one winning blockchain, and cooperation is important. I don’t believe in the one true victor of the blockchain world. There are a lot of applications, a lot of different things that need to happen, and that there’s not going to be one chain to rule them all -- it doesn’t make any sense. And, so the Cosmos vision of cooperation rather than this sort of monopolistic competition really appealed to me.”

Over time it’s been borne out. Ethereum is big, provides a good contract abstraction but is very expensive and updates are slow. You have chains like Cosmos that can provide very low transaction fees and different types of functionality and bringing them together is really useful. That’s why Gravity is needed and expands the Cosmos vision of cooperation.”

That’s also backed up by what Althea needs as a micropayments blockchain.

“Blockchains are all great for finance but you can’t pay five bucks to send a thirty cent micropayment. That doesn’t work,” says Justin. “For Althea especially you need guarantees about when these payments come in. If somebody is trying to pay for bandwidth they don’t want to get cut off because the chain is overloaded. That’s not an acceptable consumer experience. So we need to define our own chain and lots of other applications will too. I think that any application that presents blockchain to normal people is going to be supplying some of their own rules.”

He adds: “Althea needs Gravity for DAI, and just DAI, but why not overbuild? Our philosophy is always to build things that are more reliable and can do more than we need.”

Stepping on the Gas with Sommelier

Justin’s experience underscores how cooperation between blockchains can lead to unexpected discoveries. Justin was working with Jehan to optimize gas use in the Gravity design when they plugged in some arbitrary calculations and stumbled upon what he believes may be the most exciting thing in terms of Ethereum gas optimizations to ever be put together. He explains:

“We have this multisig acting as one operator, but it’s actually a decentralized group controlling it and you can have external consensus. So, over on the Sommelier chain, they can package together a bunch of transactions and then run these transactions and the gas cost will be reduced by as much as 90 percent. This is because of a quirk of how Ethereum accounts for gas, namely that it costs 21,000 gas to open a transaction and then you pay for all the code that you run. A lot of operations are just a few thousand gas, so if you get to pay that 21,000 gas once and then bundle everybody’s operations using a trustless side chain, you have this enormous efficiency advantage.”

This totally changes what is possible for financial operations on blockchain.

Justin says: “Now, you can have a side chain do things on your behalf, bundle calls on your behalf, and greatly reduce the cost of your arbitrage or other financial operation on Ethereum. And, that’s something that should definitely be used for financial operations.That’s why Althea is working with Sommelier and helping them develop the features that they need and integrating those into Gravity so that we can take advantage of the absurd potential.”

Having a gas price advantage in this way means that you can trade closer on dexes, arbitrage can be tighter, sales can be faster and more automated.There’s no downside to the sort of optimization that makes the Gravity bridge so efficient. There’s no premium, and it’s designed to save users money. He describes the potential for profound impact: “If you can wait for a batch that could be 100 X cheaper, if you can’t wait for a batch it costs the same as it would otherwise on a multisig system.”

What’s Next for Justin with Sommelier and Althea?

Justin and his team are working on getting the Althea blockchain launched in Q1 or Q2 this year. His team is currently expanding into its first fiber and LTE deployments and accelerating efforts needed to deploy its pay-per-forward decentralized bandwidth marketplace. “At this point, the software is stable, it’s proved out, we are at go-to-market scale-up operations, and we’re starting to look into how to kick that into high gear,” he says.

For Sommelier, Justin looks forward to the final steps toward getting Gravity stable and online. He describes the timeline:

“We are working on an incentivized test net for Gravity early to mid next month. That’s going to be the last big event in parallel with an audit and then Gravity will be production ready. At that point we’ll be working to get Gravity on the Cosmos Hub where users can make maximum advantage of batching with really large batching. And, of course, Sommelier hopefully will be deploying somewhere in that time range to take greater advantage of dynamic programs also in batches.”

The Cosmos Hub, he notes, will be more focused on just transactions, getting your money to and from Cosmos as cheaply as possible. “I don’t think the Hub has quite the risk tolerance to execute complicated DeFi transactions in enormous batches as provided by users.”

For now, Justin’s role is to maintain the Cosmos Gravity bridge that’s going to be used by the entire ecosystem. He says:

“I’m just focused on making sure it is as stable and robust as possible. This reflects Althea’s telecom engineering background in internet service. On your website, an hour of downtime is not so bad. In internet service, an hour of downtime is a disaster. So we have a lot of lessons learned about robust design, engineering, and building things to not only work well but to never fail and to work even when the chips are down and everything’s going crazy. And that’s what we really need for Gravity. Because right now on Ethereum or Cosmos, if things should explode, halt, or have other problems, they just pick a block height and start again. Same thing with Cosmos. But with a bridge if you screw up, the funds are lost. The funds are locked on Ethereum. They’re not going to stop for you.”

So there’s a level of very rigorous engineering that needs to occur to have this sort of thing work and more importantly to have everybody use it. Because there certainly are going to be a lot of consumers and also a lot of people interested in using Gravity for very odd things. They are going to push it to absolute limits that I have not thought of yet.

Justin concludes: “The most important thing you need to know as an engineer is that whatever you build, humans are going to push it harder than you think, and you have to be ready for that. It can get absurd, like those pictures you see of a truck piled high with hay bales like five times its size and weight.”

Time will tell.

You can reach Justin, the Bridge Wizard, and the rest of the team on the Sommelier Telegram community at https://t.me/getsomm.

More articles


© 2024 Sommelier by Bajanss OÜ –Maakri 36-50, Tallinn, Estonia 10145

Bug Bounty
Privacy Policy
Documentation
Telegram
Discord
Twitter