Content pfp
Content
@
0 reply
20 recasts
20 reactions

Varun Srinivasan pfp
Varun Srinivasan
@v
@vrypan raises an important point about the tradeoffs of snapchains design. If we only have 10 nodes that can validate messages isn’t that bad for decentralization? Let’s start with the problem that Snapchain is solving. Our deltagraph network lets any hub add a new message at any time. As the network grows, failures between nodes increase and delays become inevitable. You have to be able to “check” your sync state with a large percentage of the network in a short amount of time and this breaks down quickly. When it does, users will complain about messages moving very slowly between apps, which will make them less likely to use Farcaster, and less likely for apps to be built.
5 replies
29 recasts
184 reactions

Varun Srinivasan pfp
Varun Srinivasan
@v
cc @vrypan.eth
1 reply
0 recast
1 reaction

shazow pfp
shazow
@shazow.eth
Have you considered doing something like an L3 and leveraging existing consensus rather than building your own? For example, nodes could race to commit a merkle root of messages for the next epoch, let the rollup consensus decide who wins.
2 replies
0 recast
0 reaction

Varun Srinivasan pfp
Varun Srinivasan
@v
Most of the complexity of consensus lies in getting agreement on who gets to commit the merkle root and whether messages are valid
1 reply
0 recast
1 reaction

vrypan |--o--| pfp
vrypan |--o--|
@vrypan.eth
@shazow.eth you may want to take a look at https://gist.github.com/vrypan/1ae6a60ecb3741ab031b5b06c974acab I'm trying to identify its week spots, and fix them if possible, so that it can be considered an alternative to snapchain.
1 reply
0 recast
1 reaction

shazow pfp
shazow
@shazow.eth
I did read through it when you first shared it too! Just took another look, some thoughts: 1. Agreed that bond to join writing-hubs set makes sense (but I'm generally pro-bonds, even if it's not money and even if it's not slashable). 2. Agreed that a kind of "mempool" is necessary. 3. I like that this can be implemented as a smart contract, e.g. on a rollup (rather than a standalone L1) 4. I worry about spamming OCEC as a DoS, especially if this is used as a metric for winning the next block. Could be a censorship attack vector. But we can imagine other metrics for scoring, for example: a. Block that contains *oldest* message that hasn't been included yet b. Randomness is always good for thwarting attacks that rely on consecutive blocks, but need to avoid devolving into PoW. Maybe use RANDAO value to influence selection onchain.
1 reply
0 recast
0 reaction

vrypan |--o--| pfp
vrypan |--o--|
@vrypan.eth
OCEC can't be spammed. It's the number of onchain events, and it is defined by the OP chain where our contracts are deployed. What am I missing? If you can construct an attack scenario, it would help a lot! Messages do not have age, and the timestamp can be set arbitrarily. This is ok in case of adding/removing reactions, where the user is free to decide what comes first, but it's not reliable.
1 reply
0 recast
0 reaction