Bringing custom sidechain

Слайд 2

Blockchain

Blockchain – is immutable storage / ledger with decentralized peers and

Blockchain Blockchain – is immutable storage / ledger with decentralized peers and
own consensus rules. All changes are made through the transactions.

Слайд 3

Append new transaction

node

validator

Client broadcast the unconfirmed tx to all known peers. No

Append new transaction node validator Client broadcast the unconfirmed tx to all
guarantees, that leader will receive it first.

Client broadcast the tx

Validator validate the tx alongside with other txs in pool. Then form block by timer or by size.

Validator validate the tx

1

2

Validator mint block and replicate it over all known peers.

Validator mint block

3

node

Слайд 4

Delays between tx has been broadcasted and validator received it

Latency

Higher fee –

Delays between tx has been broadcasted and validator received it Latency Higher
higher chances to be included in next block

Fees

1

2

We have to wait, until blockchain will validate enough txs, or timer will be triggered

Block mint delay

3

Time issues

Which factors can impact on new transaction to be included in block?

Слайд 5

Off-chain

Off-chain is a pattern, where some operations, related to blockchain, are performed

Off-chain Off-chain is a pattern, where some operations, related to blockchain, are
out of blockchain on custom platform

Слайд 6

Off-chain concept

TX1: Alice->Bob (5 coins) TX2 Alice-> Mike (5 coins)

Alice

TX1: Bob->Mike (2 coins)

Bob

1

2

TX1:

Off-chain concept TX1: Alice->Bob (5 coins) TX2 Alice-> Mike (5 coins) Alice
Mike->Alice (2 coins)

Mike

3

5 coins

10 coins

2 coins

2 coins

DELTA
Alice: -13 coins
Bob: +3 coins
Mike +10 coins

Transaction

Слайд 7

Off-chain implementations

General backend

sidechain

Off-chain implementations General backend sidechain

Слайд 8

Sidechain

Sidechain is a pattern, which allows to use certain blockchain tokens on

Sidechain Sidechain is a pattern, which allows to use certain blockchain tokens
another blockchain / platform with an ability to move these tokens to original chain

Слайд 9

Sidechain

GCR Token clone

Send to platform account (holder)

Holder send tokens back to account

GCR

Sidechain GCR Token clone Send to platform account (holder) Holder send tokens
Token

Platform mint new tokens

Слайд 10

Cluster components

State machine

Consensus Engine

Run all rules against tx

Form global state of system

Properties

Replicate

Cluster components State machine Consensus Engine Run all rules against tx Form
all data across the cluster

Take care of collisions

Properties

Слайд 11

Full EVM machine, as on Parity and Geth clients

Full EVM support

Can connect

Full EVM machine, as on Parity and Geth clients Full EVM support
via web3

Integrated client

1

2

Mint block per each performed action

Quick block minting

3

State machine

State machine with Ganache

Слайд 12

MOKKA use single leadership model for making changes to RSM, however each

MOKKA use single leadership model for making changes to RSM, however each
follower may hold unconfirmed changes and replicate them (via gossip protocol).

CP algorithm

MOKKA use internal timers for checking latency and timeouts (strategy nested from RAFT).

Sync system

1

2

Due to single leadership model, MOKKA appends changes quite slow, as all of these changes have to be processed by single leader first.

Performance

3

Consensus Mokka

Слайд 13

Workflow

Send to platform account (holder)

The transaction about token transfer

Transaction validation

Consensus replicates all

Workflow Send to platform account (holder) The transaction about token transfer Transaction
data

Node send new events to service

Слайд 14

Real example

https://github.com/ega-forever/mokka/tree/master/examples/node/decentralized-ganache

Distributed ganache

Real example https://github.com/ega-forever/mokka/tree/master/examples/node/decentralized-ganache Distributed ganache

Слайд 15

Опрос

https://otus.ru/polls/6416/

Опрос https://otus.ru/polls/6416/
Имя файла: Bringing-custom-sidechain.pptx
Количество просмотров: 28
Количество скачиваний: 0