Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 2.88 KB

model-comparison.md

File metadata and controls

23 lines (13 loc) · 2.88 KB
description
This page compares Anoma's resource model with the account and UTXO model.

Model Comparison

The advantages of the resource model are best understood by comparison with other widely used state models: the account model and the UTXO model.

Resource ModelUTXO ModelAccount Model
State RepresentationImplicitImplicitExplict
State ScopeLocal, fragmented among resourcesLocal, fragmented among UTXOsGlobal, unified across all accounts
State UpdatesConsumption & creation of resourcesConsumption & creation of UTXOsDirect modification of global state
State LookupAggregation of resources (e.g., by kind or owner)Aggregation of UTXOs (e.g., by owner)Direct lookup in the account
Logic PredicatesArbitrary logic per resourceThe same logic for each UTXOArbitrary logic per account
AppsGeneral application & intentsLimited applications (e.g., payments)General applications
App DistributionConsumption & creation of resourcesConsumption & creation of UTXOsAccount deployment to an address to each chain
Used byAnomaBitcoin, ZcashEthereum, Solana, Cosmos, Polkadot
A transaction consuming and creating different resources of different kind in the resource model.resource-model.png
A transaction consuming and creating UTXOs in the UTXO model.utxo-model.png
A transaction updating the state in a smart contract in the account model.account-model.png