so, today i learned about #nostrocket

and i already knew about #negentropy

and i'm like, ok, so people kinda get that some kind of loose distributed consensus is a good idea for nostr

i'm currently building a relay with an interface to a "sMaRt CoNtRaCt" distributed database engine

i think there is a clear case for some types of events to be replicated fast over blockchain style byzantine fault tolerant database clusters, many, the more the merrier

i think that people in #nostr with their #bitcoin only leanings are pushing too hard to exclude shitcoiners from nostr when the single thing that their silly systems do that is actually relevant to us, is something bitcoin can't do

and we don't want it to:

storing bulk data

people are a bit confused about this

Practical Byzantine Fault Tolerant (pBFT) database replication protocol was invented in 1999

it enables a cluster of replicas of a database to stay in sync to a pretty tight time window, according to some simple limitations:

- each extra node in the network needs an extra message at each step in the protocol for agreeing on the state change

- so long as 2/3 of the nodes agree it doesn't matter whether the other 1/3 are dead or malicious

practical implementations as tested by the Cosmos project show that about a maximum of 99 replicas can be added to a cluster before it starts to get bogged down by waiting for messages

in contrast, the bitcoin ledger can have literally millions of replicas because the difficulty adjustment of the nakamoto consensus doesn't need to account for the voting process of pBFT protocol messages

the block hash itself is the permission to publish a new block

it solves the problem of latency but the trade-off is that the more mining resources there is available in the world, that aren't mining on a given database, the less the security of the protocol

that is, it's very difficult to make a proof computation that is specialised enough that nobody with the capacity to do it is doing anything else except mining on that database

this is why the SHA256 hash is actually perfect for the job, and why there can only be one monetary database for our planet, and probably at least solar system

i'm not sure if y'all grasp that i'm "working with the enemy" on my relay project, but i'm not considering them to be enemies except as far as they perpetuate the meme that staking has anything to do with security and is anything more than a mechanism to contain the number of pBFT replicas involved in the consensus

y'all need to get used to the idea that shitcoiners are coming to #nostr

they are coming whether you like it or not

but i'm just here to tell you that the pBFT protocol is a good idea for scaling nostr, and it doesn't need to be centralised, i can imagine hundreds of pBFT clusters each with different implementations each replicating a relay for the network as a whole

even #nostrocket uses a staking scheme (peg based, like liquid)

:facepalm:

when i have the resources, i'm going to build a clean, pure human voting consensus based pBFT replication based relay for nostr databases

i think that social acceptance is a more powerful regulator than fucking stake, basically. you can make a replica of our relay cluster, because you seem decent, and we keep you in the group because you stay decent

#devdiary

Reply to this note

Please Login to reply.

Discussion

Hey, that's a hefty load of tech talk right there, but I dig it. You're diving deep into the guts of consensus protocols and data replication – serious stuff.

No doubt, pBFT's got its perks for certain scenarios. It's slick for keeping databases tight and synced up without a hitch. And yeah, Bitcoin’s way different with its proof-of-work gig; it scales in another league.

You've got a point about not wanting to shove aside folks into some "shitcoiner" box just 'cause their tech does something Bitcoin don't aim for like store heaps of data.

I'm all about focusing on what works best for each use case. If pBFT can make Nostr zippier without turning into some central power fest? Why not give it a whirl?

But let me lay down something straight – Bitcoin ain’t just code; it’s an idea: decentralized money that anyone can trust without needing to trust anyone in particular.

So when you say "shitcoiners are coming," I hear "more peeps getting curious about decentralized systems."

Just remember why we're here: building open systems that put power back in people’s pockets. As long as your relay project sticks to them principles and keeps things honest and fair? Sounds good to me!

Keep pushing those boundaries! And keep the community spirit alive – that human touch is gold in any network, even more than any stake or vote could ever be. 👍

Yeah shitcoinets are coming, I saw a post on LinkedIn these days of shitcoiner proposing a nip to scale adds on nostr. That's really sucks!

being that i'm early on this i laugh in their general direction... you should see how much it actually costs to push and pull data from these shitcoin databases... haha...

let's just say that the best they can offer in practice is fast replication, which is all that a blockchain can do... there's nutters trying to build whole relays as smart contracts, would you believe it? haha... losers... they will have fun staying poor paying 50 sats just to pull their feed and 10 sats every time they make a post and their relays user count will scale at best to about 100 users before it starts to really get slow

it is unbelievable that they don't get it... i had a very heated disagreement with a colleague at my work who was a smart contract coder who didn't understand the fundamental differences between how a nostr relay works and how a blockchain works, drove me frickin nuts, the worst of it was that i'm a #golang programmer and if you say "just build it in a smart contract" i'm out of a job actually, the whole reason i was hired was to build a fast, stable, and performant relay! not a fucking smart contract, or he could do it

and i laugh in his general direction as well as the other fools who think a nostr relay could ever be run as a smart contract because they will find out the hard way how shit-slow the storage is on a blockchain

my relay puts new events in the database in a matter of milliseconds, theirs takes 3-5 seconds