How Decentralized is "Hive-Engine"?

in Synergy Builders24 days ago (edited)

I have heard many arguments over the years, Hive-Engine is a layer 2 protocol built many, many years ago and still used and integrated into most things on HIVE, including Keychain Wallet and most popular front ends.

Nowadays, there are several alternatives coming into view - this excites me as someone who has always loved building and experimenting with these kinds of decentralized technology. And often when new things start coming around, we contextualize them by comparing them to the old things - very normal! But it has come to my attention that there is a lot of misunderstanding around Hive-Engine, its various parts, and just how decentralized these parts really are.

So I decided to make this post.


h-eLebowski.jpg

Decentralization by parts

Now I like @aggroed, and I think HIVE is better with him here, and his whole backstory, than without him. But decentralization is not about liking someone or not - these are technical terms we are talking about.

So it has not escaped me that, with hive-engine so widely used, new users I onboard often get confused about the "hive-engine hate" that gets floated around, and sometimes the answers that they get back are "it's centralized!", and particularily centralized by @aggroed himself.

Now, I have been thinking about this a long time - and what follows is my attempt to work with Claude to define what we are calling a "layer-cake" that is behind the myriad of moving parts currently and formerly known as "Hive-Engine".

The Hive-Engine Layer Cake

When people say "hive-engine", they are usually referring to one thing. They are actually referring to somewhere between 6 and 7 distinct pieces of infrastructure, governance, and operational promises - each with its own trust model, its own failure modes, and its own level of actual decentralization.

I have been building seriously on hive-engine for about a year now alongside my brilliant friend and wizard @thecrazygm. I have dug deep. I have heard all the arguments. This is my attempt to break it down layer by layer - not to discourage anyone, but because understanding what you are standing on is the first step to building something that lasts.

Let's eat the cake from the bottom up.


Layer 1: The Sidechain Node Software

This is the foundation. The actual code - steemsmartcontracts and its descendants - that runs the hive-engine sidechain. It is open source. Anyone can run it. Anyone can fork it.

This is the most durably decentralized piece of the whole stack, because the code exists independent of any team or promise. If everyone walked away tomorrow, the code would still be there. Someone could pick it up.

This is what open source actually means in practice, and it is more important than most people give it credit for in the moment.


Layer 2: The Smart Contracts

Running on top of the node software are the contracts that define what hive-engine actually does. These include:

  • Tokens contract — the creation and management of every HE token
  • Market contract — every token automatically gets a market against SWAP.HIVE, no configuration required
  • Diesel pools — the liquidity pool mechanism that Beeswap (RIP) built its best features around
  • NFT contract — the backbone of most HIVE-Engine gaming ecosystems

These contracts, as code in the github, are about as decentralized as anything gets. When they run on the sidechain, on the chain - most contracts have an owner. Some are @null, like inflation and markets. They are what they are. The hivepegged contract is owned by honey-swap. Most of the contracts are owned by @hive-engine

One thing worth knowing about NFT games specifically: almost every serious NFT game on hive-engine eventually ends up spinning up their own private history node. The public nodes cannot keep up with the hammering. This is partially a scaling problem and partially a learning problem - teams figure out how to query correctly after they have already degraded the public infrastructure for everyone else. A private history node is both a solution and a development tax.


Layer 3: The Bridge and Peg Layer

This is where decentralization gets complicated fast. Not all tokens are created equal, and the differences matter.

Off-chain custodied wraps (SWAP.BTC, SWAP.ETH, etc.)

The underlying asset lives on another blockchain entirely. You cannot verify the backing from HIVE. You are trusting the custodian - in practice, @aggroed and the hive-engine team - completely and without recourse. If they vanish, the token is worthless. There is no on-chain mechanism to save you.

SWAP.HIVE — the interesting middle case

The custody is still centralized. Someone holds the HIVE. But the collateral lives on the same chain you are operating on, which means anyone can look at the backing account and audit the peg. It is still a rug vector, but it is a transparent rug vector.

This matters because SWAP.HIVE is not just one token among many. It is the base trading pair for every single market on hive-engine. Many diesel pool, a large portion of the swaps, almost every interaction within the ecosystem routes through SWAP.HIVE at some point. The contracts are solid. The official on-ramp and off-ramp are a toll booth owned by one guy. There are alternative toll booths, but the point remains.

Lateral pools — distinct custodians

This is the part people might miss. While every token automatically gets a Swap.Hive market with order books, you can build pools that do not directly depend on @aggroed's custodianship.

Our own ECOBANK token has a pool against HSBIDAO, which is backed by Hive Power and run by @josephsavage. Neither side of that pair is controlled by @aggroed. The risk profile of HSBIDAO is fundamentally different from SWAP.BTC - it is yield-bearing HP, not a spot custodied asset. Different team, different backing mechanism, different failure mode.

The point is not that lateral pools are risk-free. It is that the dependency graph is more complex than a simple stack. When you are making trade-off decisions, it matters whose custody and what kind of backing you are dealing with.


Layer 4: The API Infrastructure

Running a node means having an API. Most witnesses expose theirs publicly, though not all are required to. This creates a somewhat organic redundancy at the light-node API level - not guaranteed, not formal, but present.

The history node is a different story. History nodes are expensive to run and expensive to maintain. The corporate promise (more on that below) covers exactly one. NFT games and serious developers eventually spin up their own. Everyone else depends on the one.

Light node API availability is distributed. Historical data availability is not, although we have proposed doing work on that front.


Layer 5: The Corporate Promise

This one is not technical at all. It is an operational commitment.

@aggroed has basically transferred obligations to his agents, including @eonwarped and @reazuliqbal. The terms are private between them, but the floor commitment covers:

  • One main sidechain node (and they run a great back up node 2)
  • One main history node
  • Tribaldex.com as a minimum interface

The community has already revealed this floor is insufficient in certain areas. This is in some ways a feature (people can build), and most all serious users used Beeswap. Tribaldex was the fallback you use when nothing else worked. The corporate promise kept the plumbing on. Independent teams built or would build basically everything people actually wanted to use.

That Beeswap became load-bearing UX infrastructure that existed entirely outside the corporate commitment layer, was a feature. Now it is gone, and the floor is showing. We have been working on new tooling, but the lesson remains fresh.


Layer 6: The Witness and Validator Network

Block validation on the hive-engine sidechain is governed by the WORKERBEE token (witness contract owned by @hive-engine). Stake-weighted voting determines who validates blocks. Witnesses run light nodes and most expose public APIs as a byproduct. And while the WORKERBEE does not have the widest distribution, this is possibly one of the most important governance layers in the whole stack. The mechanism is real. But - and this is important - the security of this layer is not purely a technical property. It is a social one.

About a year ago, there was a very real threat - an actor had managed to get 5 of the top 20 witness slots and was going for a 6th. I mustered together a team of roughly 11 stakers and we successfully fought off a possibly impending 51% attack. There was some buying and selling WORKERBEE involved. The attack vector was not technical sophistication. It was apathy. Stake existed but was not engaged. Eleven people coordinating was enough to defend the chain.

The WORKERBEE witness layer now has roughly 30 engaged stakers who mostly pay attention. That is a meaningful improvement. It is also a reminder that decentralization can drift toward centralization through inattention, and can be pulled back through coordination. The code does not protect you always, but the community can.


Layer 7: The Frontend Layer

Tribaldex. Beeswap (RIP). Ecency and PeakD integrations. Your own custom tools if you build them.

Fully centralized each in their own way, obviously fragile, and often the only thing most users ever see. The entire rest of this stack can be functioning perfectly and if the frontend is gone, most people think hive-engine is broken, or dead.

Independent teams filling this layer are doing genuine ecosystem work. They also have no obligation to stay, no succession plan, and no formal relationship with any of the other layers.

The lesson of Beeswap is not that we should have paid them more, although maybe we should have given their proposal a chance in that past time-frame. The lesson is that load-bearing infrastructure built by independent teams is a category of ecosystem dependency that we have not historically thought about clearly enough.


What This Means

When you say "hive-engine", you are describing a system where:

  • The core code is open source and durable
  • The smart contracts are genuinely decentralized
  • The bridge has a centralized chokepoint at main entry and exit points.
  • The API layer has organic redundancy at the light level and a single point of failure at the history level
  • The operational floor is maintained by a corporate promise that the community has already revealed is below what they "need"
  • The validator governance is real but depends on social vigilance, not technical guarantees
  • The UX layer is load-bearing and fragile

None of this means hive-engine is broken, nor dead. It means understanding what you are building on and with is non-trivial, and the people who do understand it have an obligation to document it.

This is my attempt at that documentation.

Freedom and Friendship

Sort:  

Does this protocol at any level have its own DHF that can fund developers like beeswap instead of relying on Hive's DHF and its much more complicated politics (and noted disinterest toward hive-engine because of the aggroed releationship?

In fact, it does, and my team at @open.mithril has a partially funded sweeper proposal right now!

!PIMP

Hive Engine needs a lot of work, but I love it, and I want to do everything that I can to keep it functioning. And yeah, we need lots more frontends like BeeSwap. I still really, really, really miss BeeSwap. 😁🙏💚✨🤙

New update this morning, we are creeping closer to minimum viable 🫠

!PIMP

Oh, excellent, I'll go take a peek in a moment. I really appreciate your efforts, brother, it means a lot. 😁🙏💚✨🤙

!PIZZA

Shutdown of beeswap almost gave me a mini heart attack xD

I understand, and ditto that, my friend. It hit so hard because I used it many times every day for years, and nothing else comes close to it, so it's quite a bugger. 😁🙏💚✨🤙

It's kinda like... I call it my "car" but there is an engine (layer 1), a transmission (layer 2), a steering wheel & dashboard (layer 3), the accelerator & braking system (layer 4), etc., and it all has to work together to move my buns down the road. 😁 Very nicely broken-down! Bravo! 😎

I love this, now to extend -

Users start showing up at the headlight manufacturers to complain about the alternator in their car. This is almost adjacent (electricity), so the headlight manufactorer patiently adds "give out discord to alternator help" in their employee manual.

But then someone shows up to the headlight manufacturers to complain about the seat configuration in the car...

And all the headlight manufacturers just scratch their heads.

!PIMP

Well said, impressive and impeccable timing once again.

I will be reading this more than once.

Thank you very much for the stimuli.

!PIMP
!ALIVE
!SLOTHBUZZ

I will attempt to keep this evergreen for reference!

!PIMP

The DHF proposal process, where does that exist. Is it at the Smart Contract layer?

Is it possible for me to create my own version of a DHF process within say, The PEPT Game tribal community?

!PIMP
!ALIVE
!SLOTHBUZZ

Yes! This is one of the lesser known smart contracts that can be deployed:

https://tribaldex.com/tokenfunds

Thank you ,

I had a look at that before. It would cost at least $35 US to create one.

I will need to learn more before I create one.

!PIZZA
!PIMP
!ALIVE

Love You!

You are a treasure.

Thank you!

Thanks for explaining the facets of the hive engine protocol. It lead me to binge read all your other related posts (yes, I've been slacking). Truly enlightening when read all together. I'm sort of glad I happened upon them like that.
Back in the day I relied on hive engine dot com and then when I first took a look at tribaldex I thought it was so cool (still do). Clearly I've never used beeswap...
Despite the conflicts of interest, there is an air of hopefulness for the chain and second layer. I just wish a provincial like me could do something other than wait around.

Definitely not dead nor broken!

The custody is still centralized. Someone holds the HIVE.

This money is often used as power up, used to curate and inflate supply as well.

Isn't @honey-swap customer funds? Why a single person decided that a kart game post should get blind votes and reach in trending? The same game that is now in cold vault aka might be slow death.

I am dependent on HE but that doesn't mean I am blind. Also, in HE terms and conditions it says government can enforce delisting a token. How can government delist swap.eth for example?

This issue of the use of the Hive Power is another interesting layer! I am not sure they are all customer funds - or if anyone monitors that. I have found @aggroed to be quite approachable.

!PIMP

This is an excellent breakdown of what is working, what isn't, what failed, what was rescued, and how it all works together -- THANK YOU.

i still need to look in to running a hive-engine witness , what is needed for that does it require more hardware then the normal hive witness ? Or is a simple VM under proxmox more then enough for that .

Litenode is easy, but I don't have the current specs on hand. Come into the h-e discord!

!PIZZA

i'm already in there 😁

but will wait with setting upo that node until after April 9th when i switch ISP and get a dedicated ip number.
!PIMP

Also. How is Hive Decentralized when one person controls the DHF and hands out thousands of HBD each day ?

There is for sure a layer cake to analyze at that level as well!

!PIMP

PIZZA!

$PIZZA slices delivered:
fjworld tipped ecoinstant
ecoinstant tipped stresskiller
@tydynrain(1/15) tipped @ecoinstant

Send $PIZZA tips in Discord via tip.cc!

Good point on alternatives popping up

 23 days ago (edited)Reveal Comment