Be a crypto hero in the market by logging in

Don't you have an account? Sign in

Token price

  • BTC

    12,452,909.6KRW

    -0.9%

  • ETH

    264,993.6KRW

    -0.9%

  • XRP

    385.0KRW

    -1.2%

  • LTC

    116,826.8KRW

    -0.3%

  • BCH

    375,418.1KRW

    -2.1%

  • BNB

    37,050.3KRW

    1.8%

  • USDT

    1,179.6KRW

    -0.1%

  • EOS

    5,045.6KRW

    0.4%

  • BSV

    202,367.4KRW

    -4.0%

  • TRX

    34.3KRW

    -0.9%

  • XLM

    107.7KRW

    -1.3%

  • ADA

    72.6KRW

    -1.6%

  • XMR

    99,759.4KRW

    -0.5%

  • DASH

    140,332.0KRW

    0.4%

  • NEO

    15,235.4KRW

    -1.7%

  • XTZ

    1,356.7KRW

    6.6%

  • ETC

    7,610.3KRW

    5.5%

  • XEM

    80.0KRW

    -0.7%

  • MKR

    675,707.9KRW

    1.1%

  • ONT

    1,206.2KRW

    -1.8%

  • ZEC

    88,820.2KRW

    -1.1%

  • BTG

    30,442.3KRW

    -3.6%

  • USDC

    1,179.6KRW

    0.0%

  • DOGE

    3.6KRW

    -0.7%

  • VET

    7.3KRW

    1.9%

  • BAT

    298.9KRW

    0.9%

  • QTUM

    3,728.4KRW

    -2.4%

  • DCR

    34,840.8KRW

    1.0%

  • OMG

    2,011.1KRW

    -1.5%

  • HT

    5,384.2KRW

    4.8%

  • TUSD

    1,182.5KRW

    0.2%

  • RVN

    59.9KRW

    7.5%

  • PAX

    1,178.7KRW

    -0.0%

  • LSK

    1,719.4KRW

    -3.1%

  • NANO

    1,449.7KRW

    3.3%

  • AOA

    29.2KRW

    0.0%

  • BCD

    999.4KRW

    -2.3%

  • ICX

    367.0KRW

    -4.1%

  • NPXS

    0.7KRW

    2.8%

  • WAVES

    1,724.1KRW

    -1.3%

  • ZRX

    284.9KRW

    0.1%

  • LINK

    485.1KRW

    2.0%

  • DGB

    13.9KRW

    -0.6%

  • BCN

    0.9KRW

    2.6%

  • HC

    3,804.6KRW

    -2.0%

  • REP

    14,914.4KRW

    -1.0%

  • KMD

    1,407.6KRW

    -2.4%

  • MONA

    2,324.3KRW

    3.2%

  • KCS

    1,702.8KRW

    1.3%

  • BTS

    53.9KRW

    -0.8%

  • BTM

    146.2KRW

    -2.2%

  • BTM

    146.2KRW

    -2.2%

  • SC

    3.4KRW

    -1.7%

  • IOST

    10.8KRW

    -0.8%

  • THETA

    147.3KRW

    1.9%

  • QNT

    10,144.7KRW

    -1.1%

  • INB

    335.2KRW

    -0.4%

  • XIN

    258,045.8KRW

    -0.7%

  • XIN

    258,045.8KRW

    -0.7%

  • ZIL

    13.5KRW

    -1.1%

  • XVG

    7.2KRW

    0.1%

  • AE

    363.5KRW

    -1.7%

  • STEEM

    298.0KRW

    1.8%

  • DAI

    1,174.4KRW

    -0.5%

  • XZC

    11,717.2KRW

    2.7%

  • SNT

    25.2KRW

    1.0%

  • WTC

    2,060.6KRW

    -0.1%

  • MCO

    5,434.1KRW

    -1.2%

  • MAID

    188.1KRW

    -0.9%

  • ARDR

    84.2KRW

    5.9%

  • ELF

    165.4KRW

    3.9%

  • ENJ

    105.6KRW

    1.0%

  • GNT

    78.7KRW

    -5.3%

  • WAX

    76.4KRW

    -3.5%

  • STRAT

    686.4KRW

    0.7%

  • DENT

    0.9KRW

    0.9%

  • NEXO

    112.6KRW

    -1.7%

  • ETN

    6.1KRW

    -3.0%

  • ODE

    239.6KRW

    -0.7%

  • R

    112.1KRW

    -1.6%

  • ELA

    3,400.5KRW

    -2.6%

  • PAI

    36.6KRW

    0.5%

  • PAI

    36.6KRW

    0.5%

  • RDD

    1.7KRW

    -3.2%

  • FCT

    4,987.9KRW

    -3.0%

  • LOOM

    57.1KRW

    2.1%

  • PPT

    844.5KRW

    -2.0%

  • ARK

    388.3KRW

    3.0%

  • MOAC

    683.5KRW

    1.5%

  • LRC

    46.9KRW

    -1.3%

  • POWR

    96.2KRW

    0.3%

  • BNT

    582.7KRW

    -1.9%

  • AION

    108.9KRW

    -2.0%

  • PIVX

    600.4KRW

    4.5%

  • POLY

    71.8KRW

    5.5%

  • TTC

    87.8KRW

    -1.6%

  • ANT

    897.8KRW

    0.6%

  • CNX

    361.6KRW

    -1.2%

  • REPO

    174.2KRW

    33.1%

  • LKY

    380.9KRW

    --%

  • PAY

    162.6KRW

    -1.5%

  • HUM

    0.4KRW

    -3.7%

  • COSM

    24.7KRW

    7.2%

  • APIS

    1.7KRW

    -0.1%

  • CPT

    5.5KRW

    1.0%

  • AERGO

    136.2KRW

    -1.8%

  • MBL

    3.2KRW

    4.5%

  • GUSD

    1,176.2KRW

    0.2%

  • TEMCO

    3.1KRW

    -8.0%

  • UPP

    20.9KRW

    -2.5%

  • BAAS

    1.4KRW

    20.7%

  • MVL

    0.7KRW

    4.5%

  • PTON

    0.6KRW

    -8.5%

  • ABL

    15.7KRW

    2.3%

  • AID

    13.5KRW

    0.7%

  • CLB

    6.4KRW

    -0.9%

  • DCC

    0.9KRW

    --%

  • WET

    16.3KRW

    -0.7%

  • VRA

    0.8KRW

    -1.0%

  • eDEL

    2.4KRW

    -0.7%

  • XRA

    12.1KRW

    20.6%

  • PUB

    0.5KRW

    24.5%

  • KARMA

    0.2KRW

    5.2%

  • SEAL

    0.9KRW

    -0.4%

  • PUT

    7.5KRW

    0.6%

  • NPER

    3.4KRW

    --%

  • HORUS

    0.3KRW

    -57.7%

  • KNT

    0.1KRW

    -51.4%

  • IQ

    11.1KRW

    19.7%

  • RBTC

    12,439,359.2KRW

    -1.0%

  • BLACK

    3.0KRW

    26.1%

  • CET

    20.8KRW

    2.7%

  • MEETONE

    2.7KRW

    2.5%

  • RCD

    3.0KRW

    --%

  • MCC

    9.6KRW

    13.8%

  • INC

    63.9KRW

    -12.0%

  • FNB

    190.2KRW

    4.9%

  • BZKY

    0.3KRW

    0.9%

  • BORA

    29.7KRW

    -7.6%

  • CRE

    3.1KRW

    3.6%

Community

What is CounterFactual?

Ontology | 07.12| 25

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?