LNP-BP / LNPBPs

LNP/BP standards for bitcoin layer 2 & 3 protocols
https://standards.lnp-bp.org
202 stars 39 forks source link

RGB24: decentralized global naming #144

Closed dr-orlovsky closed 1 year ago

dr-orlovsky commented 1 year ago

This is the last bit in what I was considering a valid use cases for RGB. The rest - BiFi - would be actually a layer on top of RGB, composable of RGB20-24 schemata with nothing more needed.

RGB24 - a better & valid analog of ENS, solving problems of DNS, the problems ENS was not able to solve - is the checkpoint for myself on RGB and Contractum readiness.

For two years I was not able to write a valid code in terms of RGB which would be able to express business logic necessary to run that sort of solution.

Finally, I was able to do that. I understand that it would be probably quite hard to understand what the code means - but this is so far is the state of the art what can be achievable with Contractum and RGB at all. I tried to make it as readable as possible.

The code demonstrates:

Basically, this is a recursive RGB contract interacting with other contracts with two-way recursion.

PS. Just compare the amount of code here with the amount of code in the ENS!!!