#BinanceVietnamSquare #CKB #Intent #opentransaction Intent lĂ má»t trend trừu tÆ°á»Łng, vĂ Ăt dá»± ĂĄn theo Äuá»i. NhÆ°ng ÄĂąy lĂ loáșĄi cĂŽng nghá» mĂ cĂł thá» "má»t bÆ°á»c thay Äá»i cỄc diá»n toĂ n ngĂ nh Blockchain".
CKB vĂ Äá»i ngĆ© ká»č sÆ° của há» ÄĂŁ lĂ m viá»c vá»i intent từ 2019 vĂ mĂŁi tá»i 2023 ngÆ°á»i ta má»i báșŻt Äáș§u manh nha phĂĄt triá»n Intent. Trong tháșż giá»i của CKB từ những ngĂ y Äáș§u, há» gá»i Intent lĂ Open transaction.
Open Transaction (OTX) hay Äá»nh dáșĄng giao dá»ch má» của Nervos CKB lĂ má»t concept Äá»t phĂĄ vĂ khĂł hiá»u. ÄĂąy ÄÆ°á»Łc xem lĂ con ngá»±a ĂŽ của Nervos trong cuá»c Äua giữa cĂĄc Layer1. HĂŁy cĂčng khĂĄm phĂĄ xem giao dá»ch má» (OTX) lĂ gĂŹ vĂ nĂł vi diá»u nhÆ° tháșż nĂ o qua má»t [ÄoáșĄn Reddit AMA giữa community member vĂ Jordan Mack](https://www.reddit.com/r/CryptoCurrency/s/Mf1qYLU3DR) - Co-founder vĂ cĆ©ng lĂ kÄ© sÆ° pháș§n má»m của Nervos vĂ o thĂĄng 9 nÄm 2023.
______
CĂąu há»i: TĂŽi cĂł má»t cĂąu há»i liĂȘn quan tá»i Open Transactions (OTX). á» thá»i Äiá»m hiá»n táșĄi, anh nghÄ© nhÆ° tháșż nĂ o vá» táș§m quan trá»ng của OTX tá»i sá»± phĂĄt triá»n của CKB vĂ cĂčng vá»i Cell model, OTX cĂł thá» ÄÆ°a kiáșżn trĂșc Äá»c ÄĂĄo của Nervos Äi xa nhÆ° tháșż nĂ o??
Hay nĂłi theo cĂĄch khĂĄc, OTX cĂł Ăœ nghÄ©a nhÆ° tháșż nĂ o cho tÆ°ÆĄng lai của cáșŁ há» sinh thĂĄi Nervos?
______
TráșŁ lá»i: Open Transaction (OTX) lĂ má»t thĂ nh pháș§n ráș„t quan trá»ng cho viá»c phĂĄt triá»n Dapp trĂȘn Nervos CKB. Trong láșp trĂŹnh smart contract vá»i UTXO nĂłi chung, cĂł những rĂ o cáșŁn lá»n phĂĄt sinh liĂȘn quan tá»i cĂĄc tráșĄng thĂĄi bá» dĂčng chung (vĂ dỄ tráșĄng thĂĄi tĂ i khoáșŁn trĂȘn blockchain). ChĂșng tĂŽi gá»i ÄĂł lĂ váș„n Äá» "tranh cháș„p tráșĄng thĂĄi", hoáș·c khi khĂĄc thĂŹ nĂł lĂ "aggregator problem". Má»i há» sinh thĂĄi UTXO khĂĄc nhau dĂčng những từ khĂła khĂĄc nhau nhÆ°ng táș„t cáșŁ Äá»u ĂĄm chá» vá» má»t váș„n Äá» chung trĂȘn.
Váș„n Äá» "tranh cháș„p tráșĄng thĂĄi" xáșŁy ra khi 2 giao dá»ch Äá»c láșp cĂčng cáșp nháșt má»t tráșĄng thĂĄi chung ngay trong cĂčng má»t khá»i(block), nhÆ°ng cáșŁ 2 hĂ nh Äá»ng trĂȘn láșĄi khĂŽng dung hoĂ mĂ xung Äá»t láș«n nhau.
CĂĄc giao dá»ch UTXOs vá»i Äáș·c tĂnh nháș„t quĂĄn(deterministic) cĂł lợi tháșż lá»n so vá»i cĂĄc loáșĄi giao dá»ch của Account model (của Ethereum) vĂŹ vá»i cĂĄc giao dá»ch UTXO, báșĄn biáșżt chĂnh xĂĄc káșżt quáșŁ của giao dá»ch ngay trÆ°á»c cáșŁ khi báșĄn gá»i nĂł lĂȘn blockchain.
Äiá»m báș„t lợi trong trÆ°á»ng hợp nĂ y lĂ chá»Â duy nháș„t 1 trong 2 giao dá»ch trĂȘn cĂł thá» chiáșżm ÄÆ°á»Łc lợi tháșż nĂ y trong má»i má»t block mĂ thĂŽi vĂŹ giao dá»ch ÄÆ°á»Łc xĂĄc nháșn trÆ°á»c sáșœ lĂ m giao dá»ch cĂČn láșĄi báș„t hợp lá» (state ÄĂŁ bá» thay Äá»i).
Äiá»u nĂ y gĂąy ra nhiá»u khĂł khÄn trong cĂĄch giáșŁi quyáșżt, Äá»ng thá»i cĂĄch giáșŁi quyáșżt cĆ©ng cá»±c kĂŹ thiáșżu trá»±c quan vĂ gĂąy rá»i cho cĂĄc nhĂ phĂĄt triá»n tá»i từ Ethereum.
CĂł nhiá»u cĂĄch khĂĄc nhau Äá» xá» lĂ váș„n Äá» tranh cháș„p tráșĄng thĂĄi nĂ y. NhÆ°ng Äiá»u khĂł khÄn á» ÄĂąy lĂ má»i má»t giáșŁi phĂĄp láșĄi ráș„t cỄ thá» vĂ chá» giĂ nh riĂȘng cho từng tĂŹnh huá»ng, Äiá»u nĂ y cĂł nghÄ©a lĂ developer khĂŽng thá» sá» dỄng chung má»t giáșŁi phĂĄp cho cĂĄc tĂŹnh huá»ng riĂȘng biá»t.
Open Transaction (OTX) lĂ giáșŁi phĂĄp tá»t nháș„t cho váș„n Äá» tranh cháș„p tráșĄng thĂĄi mĂ Nervos ÄÆ°a ra cho Cell model. GiáșŁi phĂĄp nĂ y hoáșĄt Äá»ng báș±ng cĂĄch táșĄo ra cĂĄc giao dá»ch má» (OTX) nÆĄi mĂ user chá» cáș§n diá»
n ÄáșĄt Ăœ muá»n của há» (intent) thay vĂŹ cáșŁ má»t giao dá»ch hoĂ n chá»nh.Â
Má»t giao dá»ch hoĂĄn Äá»i coin (coin swap) giữa 2 bĂȘn A vĂ B lĂ má»t vĂ dỄ tiĂȘu biá»u Äá» cĂł thá» hiá»u hÆĄn vá» OTX. Vá»i mĂŽ hĂŹnh UTXO truyá»n thá»ng khĂŽng cĂł OTX, viá»c hoĂĄn Äá»i coin chá» cĂł thá» thĂ nh cĂŽng an toĂ n cho cáșŁ 2 bĂȘn khi há» cĂčng Äá»ng Ăœ, vĂ kĂ lĂȘn cĂčng má»t giao dá»ch. Äiá»u nĂ y giá»ng nhÆ° khi tĂŽi nĂłi âtĂŽi muá»n Äá»i 2 Äá»ng A cho 3 Äá»ng B, nhÆ°ng pháșŁi lĂ 3 Äá»ng tá»i từ Matt cÆĄ, vĂ náșżu Matt Äá»i 3 coin B kia Äi vá»i ai ÄĂł trÆ°á»c thĂŹ thoáșŁ thuáșn 2 coin A láș„y 3 coin B giữa tĂŽi vĂ Matt xem nhÆ° cháș„m dứt. TĂnh nháș„t quĂĄn (determinism) ráș„t cĂł lợi trong má»t sá» trÆ°á»ng hợp, nhÆ°ng nĂł láșĄi táșĄo ra rĂ o cáșŁn ráș„t lá»n trong trÆ°á»ng hợp nĂ y.Â
OTX máș·t khĂĄc cho phĂ©p tĂŽi táșĄo ra má»t loáșĄi giao dá»ch Äáș·c biá»t diá»
n táșŁ ráș±ng âtĂŽi muá»n Äá»i 2 coin A nĂ y láș„y 3 coin Bâ vĂ tĂŽi khĂŽng cáș§n quan tĂąm 3 coin B kia tá»i từ ÄĂąu, hay ai mĂŽi giá»i cho cáșŁ. ÄĂąy lĂ má»t concept cá»±c kĂŹ toĂ n nÄng bá»i vĂŹ viá»c hoĂ n thiá»n giao dá»ch má» (Äiá»n khuyáșżt vĂ o OTX thĂŽng tin â3 coin B tá»i từ xyz âŠâ) khĂŽng bá» gĂČ bĂł bá»i má»t nhĂ phĂĄt triá»n pháș§n má»m hay má»t smart contract nĂ o cáșŁ. CĂĄc nhĂ phĂĄt triá»n pháș§n má»m cĂł thá» sá» dỄng giao thức nĂ y Äá» tĂŹm kiáșżm thanh khoáșŁn từ nhiá»u Dapp khĂĄc nhau hoáș·c má»t ngĂ y nĂ o ÄĂł, từ nhiá»u Blockchain khĂĄc nhau.
Ná»i trong há» sinh thĂĄi Nervos, OTX vừa lĂ má»t cĂŽng thức láșp trĂŹnh, vừa lĂ má»t tiĂȘu chuáș©n. KhĂŽng cĂł trá» ngáșĄi nĂ o ngÄn cáșŁn má»t nhĂ phĂĄt triá»n táșĄo ra Dapp của anh ta ngay bĂąy giá» vá»i OTX. Váș„n Äá» lĂ tiĂȘu chuáș©n OTX nĂ y váș«n chÆ°a ÄÆ°á»Łc chuáș©n hoĂĄ hoĂ n toĂ n, nghÄ©a lĂ náșżu má»t nhĂ phĂĄt triá»n táșĄo ra má»t giao dá»ch má» OTX, cĂĄc nhĂ phĂĄt triá»n khĂĄc khĂŽng thá» nĂ o khai thĂĄc OTX nĂ y ÄÆ°á»Łc trừ khi há» biáșżt chĂnh xĂĄc cĂĄch mĂ nhĂ phĂĄt triá»n Äáș§u tiĂȘn láșp trĂŹnh nĂł nhÆ° tháșż nĂ o. ThĂĄch thức lá»n nháș„t cho team Nervos lĂ nghiĂȘn cứu vĂ táșĄo ra má»t chuáș©n giao dá»ch má» (OTX standard) Äá» cĂĄc nhĂ phĂĄt triá»n cĂł thá» dĂčng chĂșng cho má»i loáșĄi Dapp.
ThĂ nh cĂŽng trong viá»c táșĄo ra chuáș©n giao dá»ch má» (OTX standard) nĂ y cĂł thá» cho phĂ©p cĂĄc láșp trĂŹnh viĂȘn táșĄo ra hĂ ng ngĂ n cĂĄc Dapp Äá»c láșp, khĂŽng liĂȘn quan gĂŹ tá»i nhau, nhÆ°ng láșĄi cĂł thá» hoáșĄt Äá»ng Äá»ng thá»i cĂčng vá»i nhau má»t cĂĄch nhá»p nhĂ ng.
ÄĂąy lĂ má»t concept toĂ n nÄng vá»i Ăœ nghÄ©a to lá»n cho toĂ n bá» há» sinh thĂĄi. ChĂșng ta cĂł thá» xĂąy dá»±ng những ứng dỄng ÄÆĄn giáșŁn hĂŽm nay, nhÆ°ng má» khoĂĄ ÄÆ°á»Łc toĂ n bá» tiá»m nÄng của CKB Cell model yĂȘu cáș§u má»t sá» thĂ nh pháș§n vĂ OTX lĂ nhĂąn tá» khĂŽng thá» thiáșżu. Khai phĂĄ ÄÆ°á»Łc háșżt tiá»m nÄng của Cell model sáșœ ÄÆ°a Nervos từ má»t ná»n táșŁng hợp Äá»ng thĂŽng minh táș§m táș§m, tá»i má»t tuyáșżn siĂȘu cao tá»c toĂ n cáș§u nÆĄi má»i thứ Äá»u ÄÆ°á»Łc cháșĄy qua.
______
Vá»i Ăœ tÆ°á»ng trĂȘn, hĂŁy cĂčng xem team Nervos CKB ÄĂŁ lĂ m ÄÆ°á»Łc những gĂŹ:
1. NÄm 2019, báșŻt Äáș§u nghiĂȘn cứu: https://talk.nervos.org/t/open-tx-protocol-brainstorm-1-otx-in-general/4010
2. Äá»nh dáșĄng OTX Äang dáș§n chuáș©n hoĂĄ: https://github.com/doitian/rfcs/tree/rfc-open-transaction
3. Cuá»i nÄm 2023, Thá» nghiá»m vĂ trĂŹnh diá»
n viá»c cĂĄc Dapp cháșĄy Äá»ng thá»i vá»i Äá»nh dáșĄng OTX: https://github.com/cryptape/ckb-transaction-cobuild-poc
______
HĂŁy cĂčng xem cá»ng Äá»ng crypto cĂčng cháșĄy theo tiĂȘu chuáș©n nĂ y vá»i từ khoĂĄ âintentâ nhÆ° tháșż nĂ o:
1. [Intent-Centric lĂ gĂŹ? GiáșŁi phĂĄp hÆ°á»ng tá»i mass-adoption](https://coin68.com/intent-centric-la-gi-giai-phap-huong-toi-mass-adoption/)