Spacemesh Code Review: PoST Consensus
analysis

Spacemesh Code Review: PoST Consensus

THELOGICALINDIAN - n-a

Actually absolutely adamantine to call from their website what this Spacemesh cipher analysis is all about. A column on their folio talks about the PoST accord (more in a second) but the amount seems to be that they apprehend to bear scaling, security, decentralization (yes, all three) PLUS, delay for it, candor and inclusiveness, and sustainability. Important concepts, but that’s bristles goals back two are a claiming for most.

Anyway – on with the cipher review.

“Spacemesh is a fair blockmesh operating arrangement advised to run general-purpose acute affairs at web-scale. It is powered by a atypical accord agreement that is secure, affidavit of assignment chargeless and awful incentive-compatible”

No absolute detail on the website, let’s jump into whitepaper.

“Proof of Space Time (PoST)”, I actual hardly like time based protocols, they are too accessible to dispense (I did like Solana’s one though), let’s see what these guys did.

“…to accord to the security … via bare accumulator sspace on their adamantine drives.”

“Using PoST provers appearance that they accept aloof a allocation of their accumulator for a defined time. The aloof accumulator cannot be acclimated for annihilation else… a user can prove that she aloof 100GB for a month”

But why? Ok, so this accord apparatus makes aught faculty to me. How does dedicating 100 GB of hardrive amplitude for an general bulk of time accord amount to awful transactions? I don’t anticipate aggravating to accept the whitepaper is activity to advice me, instead, let’s go to code.

spacemesh-app and go-spacemesh. Really? No go-spacemesh and app-spacemesh or spacemesh-app and spacemesh-go. Moving on.

go-spacemesh first.

We alpha from main.go which credibility to app/main.go, beeline forward, but absorbing if this was a arena up design. Lots of functionality congenital in.

P2P, config setup, GRPC and JSON API servers. Lot’s of code, acceptable commenting, lot’s of substance. I started out pessimistic, but I like. Let’s coursing bottomward accord to amount out how it works

We ample a set bulk of committed data, I assumption I array of accept what they are aggravating to do, with PoW the damage is the CPU I’m application to defended the block, actuality the damage is absent deejay space. I’m analytical how it will combat; if I accomplish the space, again artlessly architecture and redo. But that’s area time comes in, so let’s accumulate looking. TLDR of the aloft is; set abreast anchored amplitude and ample it with anchored data.

Creates the abstracts book to ample the deejay space.

Creates the table. This wasn’t what I was attractive for, activity to accumulate digging.

Accounts is straightforward. (I don’t appetite to abatement the code, it’s acceptable code, able-bodied designed, able-bodied written, able-bodied documented, and able-bodied commented, it’s aloof not what I’m attractive for appropriate now though.)

Store is good, but straightforward.

API is good, but aboveboard (I anticipate I’m activity to be repeating this for a while)

Filesystem is good, but aboveboard (I know…)

And we are larboard with Merkle and P2P. Ok, so I’m not award the accord part. Let’s go aback to the whitepaper.

Ok, so two proofs, the one is back I lock up the deejay space, and two is back I prove I did it. Does that displace the timer? Can I aloof accumulate accumulator and accumulate sending affected transactions? Can I aloof recalculate the accumulator as anon as I’m asked for the proof? How can I be punished for accomplishing affected transactions?

I’m not seeing what amount this new accord apparatus adds over the absolute solutions.

Spacemesh Code Review Conclusion:

Good code, abstraction doesn’t absolutely accomplish faculty and doesn’t do abundant aberration in this amplitude (see what I did there?) It was absolutely acceptable code, but it’s aloof addition HelloWorld blockchain.

Disclaimer: Crypto Briefing code reviews are performed by auditing what is on affectation in the adept annex of the repo’s fabricated available. This was performed as an educational analysis and any comments in the commodity are the assessment of the writer. It is accustomed for cipher to change rapidly, appropriately we timestamp our cipher reviews so that they present a snapshot at a moment in time. Information independent herein should not be acclimated as any animadversion or admonition on the activity as a whole.

Spacemesh Code Review Timestamp: June 21st, 2024 at 14:00 GMT