Be a crypto hero in the market by logging in

Don't you have an account? Sign in

Token price

  • BTC

    12,494,457.9KRW

    -0.5%

  • ETH

    265,474.8KRW

    -0.6%

  • XRP

    387.6KRW

    -0.5%

  • LTC

    117,263.3KRW

    0.4%

  • BCH

    376,658.4KRW

    -1.4%

  • BNB

    37,374.6KRW

    2.5%

  • USDT

    1,178.7KRW

    -0.3%

  • EOS

    5,069.9KRW

    1.0%

  • BSV

    202,441.1KRW

    -3.6%

  • TRX

    34.5KRW

    0.3%

  • XLM

    107.5KRW

    -1.5%

  • ADA

    73.0KRW

    -0.9%

  • XMR

    99,364.2KRW

    -0.6%

  • DASH

    140,120.9KRW

    0.3%

  • NEO

    15,315.5KRW

    -0.9%

  • XTZ

    1,328.0KRW

    4.4%

  • ETC

    7,563.2KRW

    5.1%

  • XEM

    80.0KRW

    -0.9%

  • MKR

    673,534.5KRW

    0.7%

  • ONT

    1,211.0KRW

    -1.0%

  • ZEC

    88,828.0KRW

    -0.9%

  • BTG

    30,557.8KRW

    -3.5%

  • USDC

    1,179.2KRW

    -0.2%

  • DOGE

    3.6KRW

    -0.0%

  • VET

    7.2KRW

    1.8%

  • BAT

    297.3KRW

    0.4%

  • QTUM

    3,735.1KRW

    -1.9%

  • DCR

    34,916.1KRW

    1.3%

  • OMG

    2,015.3KRW

    -0.7%

  • HT

    5,311.7KRW

    3.0%

  • RVN

    60.9KRW

    9.3%

  • TUSD

    1,181.4KRW

    -0.1%

  • PAX

    1,178.6KRW

    -0.2%

  • LSK

    1,727.3KRW

    -2.7%

  • AOA

    29.7KRW

    1.9%

  • NANO

    1,459.8KRW

    4.9%

  • NPXS

    0.8KRW

    8.1%

  • BCD

    966.7KRW

    -5.2%

  • ICX

    366.0KRW

    -4.3%

  • WAVES

    1,728.1KRW

    -1.3%

  • ZRX

    285.4KRW

    0.3%

  • LINK

    485.1KRW

    2.0%

  • DGB

    14.0KRW

    0.0%

  • REP

    15,066.7KRW

    0.2%

  • HC

    3,781.1KRW

    -2.7%

  • KMD

    1,412.1KRW

    -1.8%

  • BCN

    0.9KRW

    -2.1%

  • MONA

    2,335.3KRW

    3.8%

  • KCS

    1,708.0KRW

    1.5%

  • BTS

    54.7KRW

    0.8%

  • BTM

    145.8KRW

    -1.9%

  • BTM

    145.8KRW

    -1.9%

  • SC

    3.5KRW

    -0.9%

  • IOST

    10.9KRW

    0.4%

  • THETA

    146.9KRW

    1.7%

  • QNT

    10,425.0KRW

    2.9%

  • XIN

    258,741.2KRW

    -0.2%

  • XIN

    258,741.2KRW

    -0.2%

  • ZIL

    13.5KRW

    -0.7%

  • INB

    334.0KRW

    -0.6%

  • XVG

    7.3KRW

    0.8%

  • AE

    364.8KRW

    -1.4%

  • STEEM

    299.2KRW

    2.4%

  • DAI

    1,178.0KRW

    -0.3%

  • XZC

    11,924.3KRW

    4.6%

  • SNT

    25.2KRW

    1.1%

  • WTC

    2,057.9KRW

    -0.3%

  • MAID

    189.0KRW

    -0.3%

  • MCO

    5,412.2KRW

    -1.6%

  • ARDR

    83.3KRW

    5.0%

  • ENJ

    106.7KRW

    2.0%

  • ELF

    159.2KRW

    0.1%

  • GNT

    79.6KRW

    -4.4%

  • WAX

    76.4KRW

    -3.2%

  • STRAT

    689.8KRW

    1.3%

  • DENT

    0.9KRW

    1.2%

  • NEXO

    113.0KRW

    -1.3%

  • ETN

    6.1KRW

    -3.7%

  • ODE

    242.2KRW

    1.0%

  • R

    113.7KRW

    -0.0%

  • ELA

    3,391.6KRW

    -2.5%

  • PAI

    36.7KRW

    1.4%

  • PAI

    36.7KRW

    1.4%

  • RDD

    1.7KRW

    -2.5%

  • FCT

    4,993.0KRW

    -2.8%

  • PPT

    868.5KRW

    0.5%

  • LOOM

    57.2KRW

    2.8%

  • ARK

    391.1KRW

    3.8%

  • MOAC

    688.4KRW

    2.7%

  • LRC

    47.0KRW

    -1.1%

  • POWR

    96.7KRW

    0.6%

  • BNT

    593.4KRW

    -0.0%

  • AION

    109.8KRW

    -0.5%

  • PIVX

    603.9KRW

    5.1%

  • POLY

    70.2KRW

    3.2%

  • TTC

    88.4KRW

    -0.2%

  • ANT

    868.4KRW

    -2.5%

  • CNX

    364.5KRW

    -0.5%

  • REPO

    175.0KRW

    33.6%

  • LKY

    381.3KRW

    --%

  • PAY

    162.2KRW

    -2.1%

  • HUM

    0.4KRW

    -1.8%

  • COSM

    24.9KRW

    8.4%

  • APIS

    1.8KRW

    0.2%

  • CPT

    5.5KRW

    0.7%

  • AERGO

    136.8KRW

    -1.6%

  • MBL

    3.2KRW

    3.5%

  • GUSD

    1,172.0KRW

    -0.2%

  • TEMCO

    3.1KRW

    -8.9%

  • UPP

    21.2KRW

    -0.5%

  • BAAS

    1.4KRW

    21.4%

  • MVL

    0.7KRW

    2.0%

  • PTON

    0.6KRW

    -8.5%

  • ABL

    15.7KRW

    2.8%

  • AID

    13.5KRW

    0.8%

  • CLB

    6.4KRW

    -0.5%

  • DCC

    0.9KRW

    --%

  • WET

    16.2KRW

    -1.4%

  • VRA

    0.8KRW

    0.3%

  • eDEL

    2.4KRW

    -0.7%

  • XRA

    12.1KRW

    20.6%

  • PUB

    0.5KRW

    24.9%

  • KARMA

    0.2KRW

    2.0%

  • SEAL

    0.9KRW

    -0.1%

  • PUT

    7.8KRW

    4.5%

  • NPER

    3.4KRW

    --%

  • HORUS

    0.3KRW

    -57.5%

  • KNT

    0.1KRW

    -50.5%

  • IQ

    11.1KRW

    19.5%

  • RBTC

    12,474,935.9KRW

    -0.5%

  • BLACK

    3.0KRW

    26.5%

  • CET

    21.0KRW

    4.1%

  • MEETONE

    2.6KRW

    0.8%

  • RCD

    3.0KRW

    --%

  • MCC

    10.7KRW

    27.0%

  • INC

    63.9KRW

    -11.5%

  • FNB

    191.1KRW

    5.9%

  • BZKY

    0.3KRW

    0.9%

  • BORA

    33.3KRW

    5.3%

  • CRE

    3.0KRW

    -1.3%

Community

What is CounterFactual?

Ontology Gas | 07.12| 24

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?