Be a crypto hero in the market by logging in

Don't you have an account? Sign in

Token price

  • BTC

    10,105,235.0KRW

    0.6%

  • ETH

    195,626.4KRW

    1.9%

  • XRP

    276.0KRW

    2.7%

  • BCH

    400,823.7KRW

    4.3%

  • BSV

    365,989.0KRW

    15.9%

  • USDT

    1,166.5KRW

    0.6%

  • EOS

    4,281.3KRW

    3.4%

  • LTC

    54,759.1KRW

    -0.5%

  • BNB

    20,367.2KRW

    2.4%

  • XLM

    72.8KRW

    -0.9%

  • ADA

    52.9KRW

    5.7%

  • XMR

    76,433.0KRW

    2.5%

  • TRX

    19.7KRW

    2.9%

  • XTZ

    1,798.1KRW

    5.0%

  • DASH

    131,812.4KRW

    10.7%

  • ETC

    10,408.7KRW

    8.9%

  • ATOM

    5,294.3KRW

    2.0%

  • NEO

    13,018.4KRW

    0.9%

  • HT

    3,764.8KRW

    3.8%

  • HEDG

    2,821.7KRW

    10.5%

  • MKR

    556,013.1KRW

    -0.2%

  • ZEC

    62,232.7KRW

    7.3%

  • USDC

    1,168.4KRW

    0.7%

  • ONT

    766.8KRW

    2.2%

  • XEM

    43.7KRW

    1.1%

  • VET

    6.9KRW

    0.9%

  • BAT

    258.4KRW

    4.5%

  • DOGE

    2.8KRW

    -0.2%

  • PAX

    1,171.6KRW

    0.6%

  • DCR

    22,561.7KRW

    5.4%

  • BTG

    13,362.2KRW

    8.3%

  • QTUM

    2,272.5KRW

    2.5%

  • INB

    573.8KRW

    0.0%

  • REP

    16,541.1KRW

    6.9%

  • LINK

    485.1KRW

    2.0%

  • ZRX

    275.6KRW

    2.4%

  • RVN

    31.1KRW

    3.3%

  • TUSD

    1,163.7KRW

    0.3%

  • ALGO

    278.7KRW

    -0.1%

  • CNX

    2,468.1KRW

    0.6%

  • BCD

    726.3KRW

    7.6%

  • OMG

    924.0KRW

    2.3%

  • XIN

    270,433.0KRW

    2.9%

  • XIN

    270,433.0KRW

    2.9%

  • THETA

    132.1KRW

    1.6%

  • NANO

    803.8KRW

    2.6%

  • WAVES

    1,016.4KRW

    -0.4%

  • DGB

    7.8KRW

    1.2%

  • LSK

    810.4KRW

    1.7%

  • KCS

    1,193.4KRW

    -0.0%

  • MCO

    5,982.6KRW

    6.4%

  • ICX

    180.8KRW

    7.6%

  • BTM

    91.8KRW

    1.1%

  • BTM

    91.8KRW

    1.1%

  • MONA

    1,327.0KRW

    0.4%

  • KMD

    715.5KRW

    0.3%

  • IOST

    6.3KRW

    1.5%

  • SC

    1.8KRW

    2.9%

  • HC

    1,660.9KRW

    1.1%

  • STEEM

    203.8KRW

    8.8%

  • XVG

    4.5KRW

    3.7%

  • ENJ

    88.6KRW

    2.7%

  • ABBC

    123.4KRW

    0.1%

  • BCN

    0.4KRW

    4.9%

  • NEXO

    116.6KRW

    -7.1%

  • BTS

    21.8KRW

    2.7%

  • ZIL

    6.0KRW

    1.6%

  • XZC

    6,087.0KRW

    1.2%

  • AE

    187.7KRW

    3.5%

  • ARDR

    51.4KRW

    2.7%

  • MATIC

    19.7KRW

    3.4%

  • QNT

    3,845.6KRW

    4.6%

  • MAID

    98.2KRW

    10.4%

  • ETN

    4.4KRW

    0.9%

  • MANA

    40.9KRW

    -2.3%

  • SNT

    12.1KRW

    2.9%

  • STRAT

    405.8KRW

    4.6%

  • ELF

    70.6KRW

    0.7%

  • GNT

    38.8KRW

    2.4%

  • TOMO

    540.5KRW

    1.3%

  • NPXS

    0.2KRW

    2.8%

  • DAI

    1,169.1KRW

    0.9%

  • ELA

    1,833.3KRW

    1.5%

  • AION

    82.3KRW

    2.1%

  • FET

    43.9KRW

    0.9%

  • LRC

    29.4KRW

    -2.8%

  • WTC

    538.7KRW

    -3.1%

  • TRUE

    307.0KRW

    2.6%

  • WAX

    23.9KRW

    6.3%

  • RDD

    0.8KRW

    8.5%

  • PAI

    15.2KRW

    2.5%

  • PAI

    15.2KRW

    2.5%

  • LAMB

    31.3KRW

    0.3%

  • PPT

    402.4KRW

    3.7%

  • FCT

    2,420.4KRW

    3.5%

  • ARK

    181.2KRW

    1.0%

  • ANT

    678.4KRW

    -1.1%

  • R

    43.1KRW

    5.8%

  • POWR

    48.2KRW

    1.0%

  • FTM

    11.4KRW

    2.8%

  • PIVX

    358.1KRW

    20.5%

  • LOOM

    20.6KRW

    3.0%

  • BNT

    254.5KRW

    1.2%

  • MOAC

    253.8KRW

    2.6%

  • DENT

    0.2KRW

    1.8%

  • ABT

    150.8KRW

    -0.5%

  • CET

    16.8KRW

    0.7%

  • OCEAN

    42.0KRW

    -2.0%

  • ODE

    64.7KRW

    0.2%

  • TTC

    33.1KRW

    7.4%

  • AOA

    1.8KRW

    0.6%

  • POLY

    21.2KRW

    1.0%

  • REPO

    75.4KRW

    14.9%

  • PAY

    46.2KRW

    0.7%

  • CPT

    1.9KRW

    10.2%

  • MBL

    1.7KRW

    0.4%

  • INS

    190.6KRW

    -0.5%

  • BORA

    9.0KRW

    1.5%

  • BCV

    6.1KRW

    0.1%

  • COSM

    8.1KRW

    11.1%

  • BAAS

    1.0KRW

    -0.2%

  • GUSD

    1,155.3KRW

    0.3%

  • UPP

    14.5KRW

    29.6%

  • FLETA

    9.3KRW

    -0.9%

  • FNB

    2.2KRW

    -1.7%

  • AERGO

    32.1KRW

    10.6%

  • HUM

    7.0KRW

    7.0%

  • RBG

    1.0KRW

    8.5%

  • EOSC

    2.9KRW

    -2.0%

  • MVL

    0.4KRW

    -2.9%

  • DCC

    0.9KRW

    0.6%

  • LKY

    48.8KRW

    0.6%

  • eDEL

    2.4KRW

    -0.7%

  • VRA

    0.5KRW

    14.5%

  • ABL

    6.7KRW

    -2.0%

  • TEMCO

    0.5KRW

    0.2%

  • MEETONE

    0.7KRW

    5.5%

  • AMON

    1.8KRW

    -9.7%

  • AID

    2.2KRW

    -1.7%

  • PXL

    21.1KRW

    1.6%

  • XRA

    7.8KRW

    0.7%

  • AKRO

    0.8KRW

    -0.2%

  • CLB

    1.4KRW

    3.4%

  • WET

    4.0KRW

    1.5%

  • RBTC

    10,069,952.5KRW

    0.5%

  • HORUS

    0.5KRW

    145.6%

  • WIKEN

    1.5KRW

    -5.7%

  • SEAL

    0.7KRW

    -0.5%

  • PTON

    0.0KRW

    41.2%

  • NEWS

    1.5KRW

    3.3%

  • NPER

    3.4KRW

    0.6%

  • PUB

    0.1KRW

    3.1%

  • KARMA

    0.0KRW

    0.6%

  • PUT

    1.5KRW

    1.0%

  • CCH

    0.0KRW

    33.3%

  • KNT

    0.0KRW

    -14.3%

  • APIX

    0.6KRW

    0.6%

  • IQ

    3.1KRW

    0.6%

  • BLACK

    0.5KRW

    9.2%

  • RCD

    3.0KRW

    --%

  • MCC

    4.4KRW

    0.6%

  • INC

    0.2KRW

    12.9%

  • BZKY

    0.3KRW

    0.6%

  • CRE

    1.4KRW

    -1.1%

Community

How does Ontology’s Multichain Design Prevent Side-Chain Malicious Act

Ontology | 08.14| 172

Foreword

As a distributed ledger technology, blockchain can be used in various sectors, such as finance, health care, supply chain, and asset management. However, limited throughput and scalability and network isolation prevent blockchain projects from better serving business applications. Among these limitations, network isolation hinders the collaboration between different blockchains and significantly limits what blockchain can do.

Introduction

In the previous Tech Point articles, we gave a detailed introduction to the 6 components of the Ontology multichain design and how do they work. We believe these articles will help you gain a basic understanding of the Ontology multichain design.

In today’s article, we will introduce the problems and challenges today’s cross-chain solutions are facing and what Ontology has done to overcome them.

Side-Chain Malicious Act

An important security issue involved in cross-chain interaction is how to prevent side-chain validators from acting maliciously——side-chain malicious act.

In Cosmos, side-chains are an autonomous system, and side-chain validators are elected by the side-chain itself; whereas in Polkadot, the side-chain validators are managed by the Polkadot main chain. Whether the election is autonomous or decided by the main chain, a fundamental problem is that these side-chain validators are not necessarily reliable. If the asset value of the interacting chains is greater than the value of the validators’stake on the main chain, the validators will have enough motivation to act maliciously.

For example, a dApp developer deploys smart contracts on both the main chain and the sidechain, hoping to achieve cross-chain asset interaction. When dApp users transfer a part of their assets to the side-chain, the side-chain validators can directly transfer the assets to themselves if they find out that the asset value is greater than the value of their stake on the main chain. Then they can transfer the assets onto the main chain and sell them on the exchange.

Of course, the side-chain validators’stake on the main chain will be used to compensate the users. Nonetheless, if the value of users’assets is greater than the value of the validators’stake on the main chain, then there is a high possibility the validators will make a colluded attempt to steal the assets.

How Malicious Act is Performed

Existing cross-chain solutions mostly adopt Merkle Tree Proof, that is, side-chains will generate in each block a State Root containing the state of all the transactions in the current block, and side-chain validators will sign that State Root. When a cross-chain transaction is taking place, the cross-chain state can be validated by validating the State Root.

If the asset value of the interacting chains is greater than the value of the validators’stake on the main chain, then the side-chain validators can forge a State Root based on the current block, which means they ignore the executed results of the current block and create a State Root in their favor, so as to steal users’ assets locked on the main chain.

How to Prevent Side-Chain Malicious Act

In response to the inconsistency of State Root of the current block, we can set a challenge period during which anyone can do the following:

(1) Submit the block where the malicious act takes place;

(2) Submit the previous state proof right before the malicious transaction;

(3) Submit the malicious smart contract;

(4) Check whether the State Root generated in the corresponding virtual machine is consistent with the State Root of the current block.

We can see that validators act maliciously by making a colluded attempt to forge a State Root in the current block and the transactions in the block cannot be altered as user signatures cannot be forged. Based on this, we have come up with an idea to solve this problem. During the challenge period, if a malicious transaction is spotted, we can run the malicious block, transaction in the block, the previous state of the transaction in the block, and the malicious smart contract on the corresponding virtual machine, and then compare the State Root generated to the State Root of the malicious block to see if that State Root is valid or not.

In the meantime, whether there are cross-chain transactions taking place or not, the Relayer will monitor the side-chains in real time. If the Relayer discovers that there are two block headers at the same block height or the State Root of the current block header is inconsistent with the State Root that is actually in operation, it can immediately submit the proof to the main chain, prove the malicious behavior on the side-chain, and receive the incentives the side-chain validators staked on the main chain.

We can see that the method of validating the State Root in the block is quite complex, especially for heterogeneous chains. In addition, the challenge period is not user-friendly enough. We will continue to improve on this solution and come up with more feasible and efficient ones.

Afterword

We have shared the details about the Ontology multichain design in several articles and we hope you now have a clear idea of what is the Ontology cross-chain solution and how does it work. Please let us know if you have any questions or suggestions.

Also, the Ontology cross-chain TestNet was launched in May and we have prepared detailed Developer Manual and video tutorials for fellow developers. Try developing on the TestNet and give us your feedback.

Ontology Multichain Documentation Link:

Ontology Multichain Developer Manual

Cross-Chain Tutorial

Video Tutorials Link:

Ontology Multichain TestNet

Ontology Cross-chain Contract Development

About the Ontology Research Institute

Ontology set up the research institute in order to focus more on the research and development of core blockchain technology and strengthen the ability to explore, reflect on, and apply emerging technologies, as well as make contributions to the entire industry. At present, there is more than 10 R&D personnel in the Ontology Research Institute.

Are you a developer? Make sure you have joined our tech community on Discord. Also, take a look at the Developer Center on our website, there you can find developer tools, documentation, and more.

Find Ontology elsewhere

Ontology website / Ontology GitHub / ONTO website / OWallet (GitHub)

Telegram (English)Discord

Twitter / Reddit / FacebookLinkedIn


How does Ontology’s Multichain Design Prevent Side-Chain Malicious Act was originally published in OntologyNetwork on Medium, where people are continuing the conversation by highlighting and responding to this story.

Comment 0

delete

Are you sure you want to delete this post?