Be a crypto hero in the market by logging in

Don't you have an account? Sign in

Token price

  • BTC

    11,962,190.5KRW

    -0.1%

  • ETH

    249,116.1KRW

    -3.6%

  • XRP

    329.8KRW

    -4.7%

  • BCH

    363,943.4KRW

    -2.3%

  • LTC

    85,989.0KRW

    -1.6%

  • USDT

    1,200.0KRW

    0.3%

  • EOS

    4,513.6KRW

    -5.8%

  • BNB

    24,278.9KRW

    -3.4%

  • BSV

    140,806.1KRW

    -4.0%

  • XLM

    80.8KRW

    -6.2%

  • XMR

    86,742.9KRW

    -0.5%

  • ADA

    57.3KRW

    -7.0%

  • TRX

    19.9KRW

    -7.6%

  • HT

    4,798.5KRW

    -1.2%

  • DASH

    110,245.5KRW

    -1.9%

  • XTZ

    1,257.9KRW

    -0.8%

  • ETC

    7,147.1KRW

    -2.0%

  • NEO

    10,873.4KRW

    -3.8%

  • MKR

    628,923.4KRW

    -3.8%

  • ONT

    927.3KRW

    -4.4%

  • XEM

    53.1KRW

    -2.0%

  • USDC

    1,200.2KRW

    0.2%

  • ZEC

    55,171.4KRW

    -3.7%

  • DOGE

    3.1KRW

    -0.1%

  • BAT

    231.9KRW

    -8.5%

  • DCR

    26,514.8KRW

    -1.8%

  • PAX

    1,200.2KRW

    0.2%

  • VET

    4.8KRW

    -3.0%

  • QTUM

    2,483.0KRW

    -3.7%

  • TUSD

    1,201.8KRW

    0.3%

  • BTG

    12,081.1KRW

    -4.0%

  • OMG

    1,284.7KRW

    -4.0%

  • RVN

    39.3KRW

    -6.5%

  • LINK

    485.1KRW

    2.0%

  • ZRX

    282.0KRW

    -2.5%

  • KCS

    1,809.5KRW

    -0.4%

  • NANO

    1,084.9KRW

    -2.1%

  • REP

    12,736.1KRW

    -0.5%

  • LSK

    1,135.8KRW

    -7.2%

  • INB

    386.2KRW

    1.1%

  • BCD

    720.5KRW

    -4.4%

  • QNT

    10,203.1KRW

    -1.8%

  • ICX

    238.3KRW

    -3.3%

  • WAVES

    1,172.4KRW

    -4.2%

  • DGB

    9.4KRW

    -3.8%

  • XIN

    247,891.4KRW

    0.0%

  • XIN

    247,891.4KRW

    0.0%

  • HC

    2,511.1KRW

    -2.1%

  • THETA

    125.9KRW

    -2.0%

  • BTS

    39.9KRW

    -1.5%

  • BCN

    0.6KRW

    -3.5%

  • DAI

    1,203.1KRW

    0.1%

  • MAID

    226.6KRW

    -0.5%

  • SC

    2.3KRW

    3.8%

  • NPXS

    0.4KRW

    -1.9%

  • BTM

    96.1KRW

    -2.4%

  • BTM

    96.1KRW

    -2.4%

  • IOST

    7.8KRW

    -5.7%

  • KMD

    809.3KRW

    -2.5%

  • MONA

    1,316.6KRW

    -4.8%

  • XVG

    5.2KRW

    -2.9%

  • ARDR

    77.6KRW

    6.0%

  • AOA

    11.2KRW

    2.5%

  • AE

    255.3KRW

    -1.6%

  • GNT

    72.7KRW

    -2.9%

  • ZIL

    8.0KRW

    -3.2%

  • STEEM

    196.9KRW

    -1.0%

  • NEXO

    118.1KRW

    -3.0%

  • ENJ

    82.1KRW

    -1.9%

  • SNT

    18.2KRW

    -0.7%

  • MCO

    3,942.3KRW

    -0.4%

  • XZC

    6,283.6KRW

    -4.8%

  • ELF

    98.6KRW

    -0.6%

  • WTC

    1,174.2KRW

    -2.5%

  • ETN

    5.0KRW

    0.4%

  • RDD

    1.6KRW

    -2.7%

  • ELA

    2,783.2KRW

    -0.9%

  • STRAT

    417.9KRW

    -3.9%

  • DENT

    0.5KRW

    -4.0%

  • LRC

    43.9KRW

    1.1%

  • FCT

    3,884.8KRW

    3.0%

  • PAI

    25.5KRW

    -4.6%

  • PAI

    25.5KRW

    -4.6%

  • FNB

    132.4KRW

    0.5%

  • WAX

    42.5KRW

    -3.1%

  • R

    71.5KRW

    -2.4%

  • ANT

    1,112.4KRW

    4.7%

  • AION

    93.8KRW

    -3.5%

  • ODE

    133.1KRW

    -1.6%

  • ARK

    265.2KRW

    -1.7%

  • BNT

    474.9KRW

    -4.2%

  • LOOM

    28.2KRW

    -2.2%

  • POWR

    65.3KRW

    -2.5%

  • PPT

    460.1KRW

    -3.7%

  • MOAC

    388.2KRW

    -4.4%

  • PAY

    202.1KRW

    2.1%

  • TTC

    53.6KRW

    -1.1%

  • PIVX

    308.9KRW

    -3.1%

  • POLY

    39.7KRW

    -1.7%

  • CNX

    309.2KRW

    -1.3%

  • HUM

    0.4KRW

    --%

  • REPO

    115.5KRW

    11.6%

  • GUSD

    1,193.9KRW

    0.1%

  • CPT

    3.2KRW

    -6.4%

  • LKY

    182.5KRW

    -1.4%

  • AERGO

    83.9KRW

    -3.5%

  • COSM

    12.1KRW

    -2.1%

  • MBL

    2.1KRW

    -1.0%

  • APIS

    0.9KRW

    4.9%

  • AKRO

    10.6KRW

    -0.4%

  • TEMCO

    1.5KRW

    -1.9%

  • UPP

    13.8KRW

    -3.2%

  • MEETONE

    1.9KRW

    -5.2%

  • BAAS

    0.8KRW

    2.4%

  • MVL

    0.4KRW

    -1.5%

  • ABL

    10.6KRW

    -7.9%

  • DCC

    0.9KRW

    --%

  • eDEL

    2.4KRW

    -0.7%

  • AID

    11.2KRW

    -2.3%

  • PTON

    0.2KRW

    -26.4%

  • WET

    11.4KRW

    1.6%

  • VRA

    0.7KRW

    -5.9%

  • CLB

    2.9KRW

    -1.2%

  • XRA

    11.6KRW

    -0.1%

  • KARMA

    0.2KRW

    -1.5%

  • SEAL

    1.0KRW

    --%

  • PXL

    8.8KRW

    -0.8%

  • HORUS

    0.5KRW

    -14.0%

  • PUB

    0.3KRW

    -23.1%

  • NPER

    3.5KRW

    --%

  • PUT

    2.3KRW

    -23.4%

  • CCH

    0.1KRW

    -10.6%

  • KNT

    0.1KRW

    -39.1%

  • IQ

    6.2KRW

    -8.2%

  • RBTC

    11,955,552.0KRW

    -0.1%

  • BLACK

    1.3KRW

    -3.6%

  • CET

    23.0KRW

    2.7%

  • RCD

    3.0KRW

    --%

  • MCC

    3.0KRW

    --%

  • INC

    2.4KRW

    1.0%

  • BZKY

    0.3KRW

    --%

  • BORA

    17.1KRW

    -4.8%

  • CRE

    2.9KRW

    0.6%

Community

What is CounterFactual?

Ontology | 07.12| 71

When people see something happening in real life, they tend to create possible alternatives that are contrary to what actually occurred. This tendency is named “Counterfactual thinking” by Daniel Kahneman, a Nobel laureate in Economics. You might wonder what CounterFactual has to do with blockchain?

In this article, the author would like to share some of his thoughts on blockchain CounterFactual and what it can do for us.

What is CounterFactual?

CounterFactual (CF) thinking is, as it states: “counter to the facts”. These thoughts consist of the “What if?” and the “If I had only…” that occur when thinking of how things could have turned out differently. CounterFactual thoughts include things that–in the present–now could never happen in reality because they solely pertain to events that have occurred in the past.

From the perspective of blockchain, CounterFactual means: the transaction result could be obtained on-chain, but in reality, the execution result is not obtained on-chain.

In the off-chain scaling technology of blockchain, CF refers to CounterFactual Instantiation, which is derived from a state channel-based off-chain scaling technology proposed by L4Lab. It is widely studied and promoted as a type of blockchain scaling design in the field of blockchain research.

CounterFactual Instantiation means that smart contracts can be deployed on the off-chain CF state channel, instead of being counterfactually instantiated on the blockchain. As long as all participants of smart contracts follow the methods defined in the CF state channel protocol, the execution results of the operations in the state channel are fully equivalent to those executed on the blockchain.

Simply put, off-chain CF state channels can achieve the same results as the blockchain, which include not only the state data of smart contracts but also the trustless feature of the blockchain (traceability and irreversibility at its core). Since the results are the same, why not move most smart contract operations off of the chain, considering the limited blockchain performance and the cost-effectiveness of the off-chain solution.

CounterFactual State Channel

In the L4 Paper, the CF state channel protocol is defined as below:

Roughly speaking, for any on-chain operation X that can be channelized, we use counterfactual X to talk about the case where

1. X could happen on-chain, but doesn’t;

2. The enforcement mechanism allows any participant to unilaterally make X happen;

3. Participants can act as though X has happened.

A Closer Look

As a coder, when I see an application protocol, the first reaction is to verify the completeness of the protocol, analyze its feasibility, create its application boundary, and then think about how to implement it.

Let’s now take a closer look at the 3 criteria in the definition of CF state channel:

1. First, CF state channel and blockchain execution environment are equivalent. Any operations in the state channel must be fully equivalent to those in the blockchain execution environment. Therefore, which execution environment users choose is irrelevant to the protocols;

2. Based on the first criterion, the second criterion defines the fairness and trustless feature of CF state channel, or simply “being secure”. State channels are fair to all participants. State modification caused by each operation must be viewable and verifiable to all participants. Based on the first criterion, anyone can directly synchronize the state modification on-chain. Therefore, for state channel participants, CF state channels are as secure as blockchain;

3. The third criterion defines the consistency and finality of CF state channel. Operations and channelized state within the channel must be consistent to all participants and must be instantly finalized. This can ensure the traceability and irreversibility of the state channel for all participants.

Afterword

From the above, we can see that CF state channels fully possess the existing blockchain properties, such as consistency, irreversibility, security, and finality. Using CF state channels as an off-chain scaling technique will not compromise the security of blockchain applications.

In the next articles, we will dive into the CF state channel protocol and take a look at its application boundary.

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


What is CounterFactual? 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?