Post
Topic
Board Альтернативные криптовалюты
Re: [IOTA] Крипто-токен для "интернета вещей" (Internet-of-Things)
by
Krypt
on 10/04/2017, 08:42:21 UTC
критика ёты в других ветках всё же иногда заставляет Chat-for-Ban слезть с Олимпа и нет-нет да и преподать мастеркласс ...
Неделю назад Chat-for-Ban провёл второй мастеркласс, на этот раз - о яблоках.
Quote
Chat-for-Ban [April 4th 7:36 PM]
So let's look at scenario with apples...

Most of time a node receives and shares transactions with neighbors. It cares about tangle topology only when it's time to generate a transaction or to accept a payment.
Imagine that now it's 16:04 and Bob decides to send a message
He creates a transaction that reference 2 transactions:
- one deposits 1 iota to Alice address
- the other spends 1 iota from Alice address
This doesn't lead to a double-spending so at 16:07 he stops creating a transaction containing his message
90 minutes later bad guy Charlie decides to reference Bob's transaction and another transaction that spends 1 iota from Alice address
At 17:44 he finishes generating a transaction that references a subtangle with an illegal state (ledger)
None of us cares about that, we don't know about bad guy Charlie because our nodes keep receiving all transactions and sharing them among us
At 19:15 good girl Diana decides to send a message to her mother, she analyzes Tangle and sees that she shouldn't reference Charlie's transaction so she references Bob's transaction instead.
Her transaction is not special, so it's not shown in the picture
Few minutes later smart girl Eva decides to send a message to her boyfriend. She is good but she is also smart and decides to troll bad guy Charlie...
She finds a transaction that deposits 1 iota to Alice address. She references that transaction and also the transaction of Charlie. We see Eva's transaction at 19:21
Later someone else generating a transaction will reference Eva's transaction without any issues because she "fixed" the problem created by Charlie.
As we can see in this scenario during a short period of time ledger can be inconsistent
Everything will be fine as long as 67%+ of hashing power is controlled by benevolent users.

PS: It's worth emphasizing that in IOTA we don't care about the order of transactions. For ledger validation we can traverse the transactions in any order. This boosts performance and helps to scale to much higher TPS than a ledger with ordering would allow.
EDIT: овца таки добавила на форум: https://forum.iota.org/t/iota-double-spending-masterclass/1311