Designing Blockchain #2: Accounts and State
dev.to·4h·
Discuss: DEV
Flag this post

Intro

In the previous article, we created a simple blockchain from scratch, covering the fundamentals of blocks, hashing, and chain validation, but we left our transactions in a very primitive way. So, today we’ll fix them, but before we do, we need to dive deeper into one of the most critical components of any blockchain system: accounts and state management.

Accounting models

There are two most popular accounting models for blockchains: UTXO and account-based.

It’s worth mentioning that Sui blockchain implements a different approach — an object-centric data model, where everything is an object, but to my taste it’s more like a customised UTXO model than truly something new.

UTXO

UTXO (…

Similar Posts

Loading similar posts...