Holochain Forum

HIP: Warrants

If I understand correctly, Holo presently suffers from the “flood and undercut” attack that possibly takes a portion of an app’s DHT and deletes it forever. Briefly, if a good enough hosts decide to not host your app anymore and just shut their machines down forever, then a portion of your app’s data goes with them!

Holo’s timeline page did mention something called “warrants” but did not explain what it was. If it’s the same concept, then do let the community know. I’ll still continue, just in case…

So in essence, a Holo host should be able to deposit some Holofuels in some form of a smart-contract that says that if the host shuts down his/her machine while it’s bound in a warranty-contract with some app publisher, then the warrant money goes to the app publisher as a form of compensation and the host no longer remains in a position to reclaim that money. The host gets regular interest money for hosting such an app. Please note that it’s entirely different from the “staking” common in popular POS systems.

However, if the host sincerely decides to not host that app anymore (from I guess the HP Admin or so) while it’s in contract with the app-publisher, then the DHT’s data is sent to other hosts hosting the app and the app closes properly. Although the data is already replicated and doesn’t need to be sent to other hosts, the operation still waits for a day or so to complete, and only then is the app terminated/deleted from the host’s device. The host gets a portion of the contract’s money for being sincere while the remaining goes to the app publisher.

From the app publisher’s perspective, they specify some amount (let’s say a billion dollars) that would be enough to compensate him/her in case the app is taken down via flood-and-undercut vector. The hosts list the amount of money they are willing to lock in such premium apps in total. The algorithm does the rest; maximize the interest the host receives, while distributes the app to sufficient premium hosts to cover the said billion dollars. The app-publisher is notified if the compensation covered is less than the said amount due to a lack of “premium hosts” in the system, i.e. due to a lack of hosts willing to lock some money in advance in warrants; the app still continues being hosted though.

In effect, this creates an ecosystem in which grandma won’t be hosting… let’s say Facebook2 but rather small startups that don’t mind data-loss, while app developers and hence their users enjoy a good night’s sleep…

History has taught us time and time again that there’s no better strategy to tackle bad behavior in distributed systems than an economical one. No host can be trusted despite any KYC knowledge; hell not even the government can be trusted for the issual of the so-called “trusted” documents!!! Holo’s philosophy is correct all through; it’s hard to get one thing right, it’s a whole different feat to get so many things right one after the other; Holo seriously deserves more acclamation than it currently gets. However, this little change shall make Holo invincible! Let’s ditch KYC! Let’s rely on economics!

– The A Man