From 51e999de34bfc8a8a4be2af6302f108a5c4a2ab5 Mon Sep 17 00:00:00 2001 From: Mandeep Sekhon Date: Sat, 3 Apr 2021 09:48:18 +1100 Subject: [PATCH] Update 4-UTXO_and_account_models.md --- en/2-wallet/4-UTXO_and_account_models.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/2-wallet/4-UTXO_and_account_models.md b/en/2-wallet/4-UTXO_and_account_models.md index 6db0a02..4eabfc0 100644 --- a/en/2-wallet/4-UTXO_and_account_models.md +++ b/en/2-wallet/4-UTXO_and_account_models.md @@ -14,7 +14,7 @@ Sum(NEO_i) + Sum(GAS_i) = Sum(NEO_o) + (Sum(GAS_I) - Sum(GAS_sys_fee) - Sum(GAS_ In this sense, UTXOs are not really created or destroyed, but are instead recycled into new ones. Inclusion of UTXOs allows for parallel transaction execution, as each UTXO is unique and therefore is impossible to double spend. ## Account Model -The account model, which is adopted by other blockchain platforms such as Ethereum, creates a global state for each account which has funds. Instead of having a set of UTXOs which can be used for a transaction, you would simply have a balance of 10 associated with your account. Because of this, the global state of all acounts must be store locally on the nodes in the network. Transactions are interpreted by the virtual machine in the network, and make the corresponding state changes to all accounts in the global state. +The account model, which is adopted by other blockchain platforms such as Ethereum, creates a global state for each account which has funds. Instead of having a set of UTXOs which can be used for a transaction, you would simply have a balance of 10 associated with your account. Because of this, the global state of all acounts must be store locally on the nodes in the network. Transactions are interpreted by the virtual machine in the network, which makes the corresponding state changes to all accounts in the global state. NEP-5 token contracts deployed on the NEO network typically follow the account model of balance storage. They do not have any associated UTXO data, and changes in balance state are handled via smart contract executions. These executions are interpreted by the NEO virtual machine, and recorded in the smart contract storage area.