濡備綍鐢∕ove缂栫▼璇█鏉ョ鐞嗘湰鍦版暟瀛楄祫浜х殑鐪熸鎵€鏈夋潈

鏅鸿兘鍚堢害鏄竴绫讳笓鐢ㄤ簬绠$悊鏈変环鍊兼暟瀛楄祫浜ф墍鏈夋潈鐨勭嫭鐗硅蒋浠躲€傚敖绠$幇鏈夌殑缂栫▼鐜鍙互鐢ㄦ潵璺熻釜璧勪骇鐨勬墍鏈夋潈锛屼絾鏄畠浠€氬父琚敤鏉ュ弽鏄犳墍鏈夋潈锛岃€岄潪鐩存帴瀹氫箟鎵€鏈夋潈銆傛櫤鑳藉悎绾︾殑鐙壒涔嬪鍦ㄤ簬锛屽畠浠墍浠h〃鐨勪环鍊煎線寰€鐩存帴浣撶幇鍦ㄥ畠浠墍缁存寔鐨勭姸鎬佷腑銆?/p>

鏅鸿兘鍚堢害鏄竴绫讳笓鐢ㄤ簬绠$悊鏈変环鍊兼暟瀛楄祫浜ф墍鏈夋潈鐨勭嫭鐗硅蒋浠躲€傚敖绠$幇鏈夌殑缂栫▼鐜鍙互鐢ㄦ潵璺熻釜璧勪骇鐨勬墍鏈夋潈锛屼絾鏄畠浠€氬父琚敤鏉ュ弽鏄犳墍鏈夋潈锛岃€岄潪鐩存帴瀹氫箟鎵€鏈夋潈銆傛櫤鑳藉悎绾︾殑鐙壒涔嬪鍦ㄤ簬锛屽畠浠墍浠h〃鐨勪环鍊煎線寰€鐩存帴浣撶幇鍦ㄥ畠浠墍缁存寔鐨勭姸鎬佷腑銆?/span>1IU鏄惧崱涔嬪

闅忕潃鍖哄潡閾剧殑鎸佺画鍙戝睍锛屼唬琛ㄦ墍鏈夋潈鐨勬満鍒朵篃鍦ㄤ笉鏂彂灞曘€傛瘮鐗瑰竵鏄敱“鏈娇鐢ㄧ殑浜ゆ槗杈撳嚭锛坲nspent transaction outputs锛?rdquo;鎴朥TXO鎵€瀹氫箟鐨勬墍鏈夋潈妯″瀷鏋勫缓鐨勩€?span style="display:none">1IU鏄惧崱涔嬪

铏界劧UTXO妯″瀷闈炲父楂樻晥锛屼絾瀹冧篃闈炲父澶嶆潅锛屽苟涓斿彲鑳戒細浜х敓涓€浜涘紓甯哥殑杈圭紭鎯呭喌锛屽洜姝thereum閲囩敤浜嗕竴绉嶆洿鐩存帴鐨凩edger妯″瀷銆?span style="display:none">1IU鏄惧崱涔嬪

褰揕ibra鍖哄潡閾惧彂甯冩椂锛屽洿缁曡椤圭洰鐨勪富瑕佸叧娉ㄧ偣鍦ㄤ簬Facebook寤虹珛鐨勫尯鍧楅摼鐨勬斂娌诲惈涔夛紝浣嗘垜浠繖缇ゆ繁鍏ョ爺绌舵妧鏈粏鑺傜殑浜哄嵈浠庝腑鍙戠幇浜嗕竴浜涘緢鏈夋剰鎬濈殑鏂版兂娉曘€?span style="display:none">1IU鏄惧崱涔嬪

灏ゅ叾鏄紝Libra鍥㈤槦浠ヤ竴涓柊鐨勬墍鏈夋潈妯″瀷涓哄熀纭€锛屼负浠栦滑鐨凪ove VM瀹氫箟浜嗘柊鐨勭紪绋嬫ā鍨嬨€傝鎵€鏈夋潈妯″瀷鐨勭伒鎰熸潵婧愬氨鏄嚎鎬х被鍨嬶紙Linear Types锛夛細璧勬簮锛圧esources锛夈€?span style="display:none">1IU鏄惧崱涔嬪

“Resources”鏄竴绉嶅湪缂栫▼璇█涓洿鎺ヨ〃绀鸿祫浜ф墍鏈夋潈鐨勬柊鏂规硶銆傚伐绋嬪笀浠父甯镐娇鐢?ldquo;鎵€鏈夋潈锛坥wnership锛?rdquo;杩欎釜鏈鏉ユ瘮鍠伙細璺熻釜鏌愪唬鐮佷互绠$悊鏌愮鏁版嵁缁撴瀯鎴栫郴缁熻祫婧愩€?span style="display:none">1IU鏄惧崱涔嬪

杩欑鎯呭喌鍦ㄧ紪绋嬬幆澧冧腑鏈€涓哄父瑙侊紝鍦ㄦ鐜涓紝鍐呭瓨绠$悊骞舵病鏈夊畬鍏ㄤ粠绋嬪簭鍛橀偅閲屾娊璞$嫭绔嬪嚭鏉ワ紝濡傛灉璇翠唬鐮佷腑鍐欎簡涓€涓璞★紝閭d箞灏辨剰鍛崇潃璇ヤ唬鐮佸繀椤荤鐞嗗苟閲婃斁鍒嗛厤缁欒瀵硅薄鐨勫唴瀛樸€?span style="display:none">1IU鏄惧崱涔嬪

濡備綍鐢∕ove缂栫▼璇█鏉ョ鐞嗘湰鍦版暟瀛楄祫浜х殑鐪熸鎵€鏈夋潈1IU鏄惧崱涔嬪

Resources灏嗚繖涓€姒傚康杩涜浜嗘墿灞曪紝鎴戜滑鍙互鍒╃敤涓€浜涙満鍒舵潵绠$悊浠ュ墠缂栫▼璇█涓殑“鎵€鏈夋潈”锛屽苟鐢ㄥ畠鏉ョ鐞嗘湰鍦版暟瀛楄祫浜х殑鐪熸鎵€鏈夋潈銆?span style="display:none">1IU鏄惧崱涔嬪

婧愬紩浜嶮ove绠€浠嬶細1IU鏄惧崱涔嬪

https://developers.libra.org/docs/move-overview#move-has-first-class-resources1IU鏄惧崱涔嬪

Move 鐨勫叧閿壒寰佹槸鑳藉瀹氫箟鑷畾涔夎祫婧愮被鍨嬶紙resource types锛夈€傝祫婧愮被鍨嬪彲鐢ㄤ簬瀵瑰叿鏈変赴瀵屽彲缂栫▼鎬х殑瀹夊叏鏁板瓧璧勪骇杩涜鍔犲瘑銆?span style="display:none">1IU鏄惧崱涔嬪

Move 绫诲瀷绯荤粺涓鸿祫婧愭彁渚涗簡鐗规畩鐨勫畨鍏ㄤ繚闅溿€侻ove璧勬簮涓嶈兘琚鍒躲€侀噸澶嶄娇鐢ㄦ垨涓㈠純銆傝祫婧愮被鍨嬪彧鑳界敱瀹氫箟璇ョ被鍨嬬殑妯″潡鍒涘缓鎴栭攢姣併€傝繖浜涗繚闅滄槸鐢盡ove铏氭嫙鏈洪潤鎬佹墽琛岀殑銆?span style="display:none">1IU鏄惧崱涔嬪

Libra璐у竵鏄綔涓轰竴绉嶈祫婧愮被鍨嬪疄鐜扮殑锛屽湪璇█涓苟娌℃湁鐗规畩鐨勫湴浣嶏紝姣忎釜Move璧勬簮閮戒韩鏈夊悓鏍风殑淇濇姢銆?span style="display:none">1IU鏄惧崱涔嬪

鏈€鍚庤繖涓ょ偣闈炲父閲嶈锛?span style="display:none">1IU鏄惧崱涔嬪

1. Resource 瀵硅薄鐨勭壒娈婄姸鎬佸繀椤荤敱杩愯鏃讹紙“Move铏氭嫙鏈?rdquo;锛夊己鍒舵墽琛岋紱濡傛灉鍏跺彧鏄紪璇戝櫒鎶借薄锛岄偅涔堟伓鎰忎唬鐮佸緢杞绘澗鍗冲彲鎵撶牬灞忛殰銆?span style="display:none">1IU鏄惧崱涔嬪

2.鐒惰€岋紒濡傛灉浣犺兘澶熸纭湴鎵ц杩欎簺瑙勫垯锛屽垯鍙互璁╃綉缁滀腑鏈€閲嶈鐨勮祫浜?mdash;—鏈満浠e竵——瀹夊叏鍦板瓨鍌ㄥ湪鐢辩敤鎴锋彁浜ょ殑浠g爜鎺у埗鐨勬暟鎹粨鏋勪腑銆傚帀瀹充簡锛?span style="display:none">1IU鏄惧崱涔嬪

1. 鍒板簳浠€涔堟槸Resource锛?span style="display:none">1IU鏄惧崱涔嬪

鎴戜滑鍙互閫氳繃涓€涓笉鍙浛浠d唬甯侊紙NFT锛夌殑绀轰緥锛堜緥濡侰ryptoKitty锛夋潵鐞嗚ВResource銆傛瘡涓狢ryptoKitty閮芥槸涓嶅彲鍒嗗壊銆佷笉鍙鍒剁殑锛屽苟涓旀湁涓€涓洿鎺ユ墍鏈夎€咃紝杩欎笌Resource缂栫▼缁撴瀯鏄浉鍚诲悎鐨勩€?span style="display:none">1IU鏄惧崱涔嬪

鍦ㄥ儚Ethereum杩欐牱鐨凩edger妯″瀷涓紝鎵€鏈夌殑CryptoKitties閮戒互宸ㄥ瀷鍒楄〃鐨勫舰寮忚瀛樺偍鍦ㄤ竴涓櫤鑳藉悎绾︿腑銆?span style="display:none">1IU鏄惧崱涔嬪

閫氳繃鍦ㄤ腑澶垎绫昏处涓瓨鍌ㄦ瘡涓墍鏈夎€呯殑甯愭埛ID鏉ヨ窡韪瘡涓狵itty鐨勬墍鏈夋潈锛屾洿鏀筀itty鎵€鏈夋潈鐨勫敮涓€鏂规硶鏄仈绯昏涓ぎ鍒嗙被璐﹀苟瑕佹眰鍏舵洿鏂颁笌璇itty鐩稿叧鐨勫笎鎴稩D銆?span style="display:none">1IU鏄惧崱涔嬪

contract KittyLedger {1IU鏄惧崱涔嬪

struct Kitty {1IU鏄惧崱涔嬪

priv let kitties锛?{Int锛?Kitty}1IU鏄惧崱涔嬪

fun transfer锛坘ittyId锛?Int锛?newOwner锛?AccountId锛?{1IU鏄惧崱涔嬪

if 锛坢sg.sender == kitties锛籯ittyId锛?owner锛?{1IU鏄惧崱涔嬪

kitties锛籯ittyId锛?owner = newOwner1IU鏄惧崱涔嬪

}1IU鏄惧崱涔嬪

}1IU鏄惧崱涔嬪

}1IU鏄惧崱涔嬪

transaction锛坰igner锛?Account锛?{1IU鏄惧崱涔嬪

// tells the central ledger to assign ownership of1IU鏄惧崱涔嬪

// myKittyId to a different account1IU鏄惧崱涔嬪

centralKittyLedger.transfer锛坢yKittyId锛?receiverAccountId锛?span style="display:none">1IU鏄惧崱涔嬪

}1IU鏄惧崱涔嬪

鍦≧esource妯″瀷涓紝Kitty鏈韩琚〃绀轰负涓€涓猂esource瀵硅薄锛岃鐩存帴瀛樺偍鍦ㄦ嫢鏈夊畠鐨勫笎鎴蜂腑銆傚氨鍍忓湪鐜板疄涓栫晫涓竴鏍凤紝閫氳繃鍗犳湁鏉ヨ〃绀烘墍鏈夋潈銆?span style="display:none">1IU鏄惧崱涔嬪

浣犳棤闇€閫氳繃涓ぎ鍒嗙被甯愭潵鏌ョ湅鑷繁鏄惁鎷ユ湁鏌愮墿锛屼綘鍙互鎶婂畠瀛樺湪鑷繁鐨勫笎鎴蜂腑锛屼篃鍙互涓嶅瓨銆傚鏋滀綘鎷ユ湁瀹冿紝浣犲氨鍙互瀵瑰叾杩涜杞Щ鎴栨帶鍒讹紱濡傛灉浣犳病鏈夋嫢鏈夊畠锛屽垯鏃犳硶鎹曡幏鎴栨敼鍙樺畠銆?span style="display:none">1IU鏄惧崱涔嬪

contract CryptoKitties {1IU鏄惧崱涔嬪

// Accounts store a collection in their account storage1IU鏄惧崱涔嬪

resource KittyCollection {1IU鏄惧崱涔嬪

// Each collection has functions to1IU鏄惧崱涔嬪

// move stored resources in and out1IU鏄惧崱涔嬪

fun withdraw锛坘ittyId锛?int锛夛細 CryptoKitty1IU鏄惧崱涔嬪

fun deposit锛坘itty锛?CryptoKitty锛?span style="display:none">1IU鏄惧崱涔嬪

}1IU鏄惧崱涔嬪

// The resource objects that can be stored in the collection1IU鏄惧崱涔嬪

resource CryptoKitty {}1IU鏄惧崱涔嬪

}1IU鏄惧崱涔嬪

transaction锛坰igner锛?Account锛?{1IU鏄惧崱涔嬪

// Removes the Kitty from signer‘s collection锛?and stores it1IU鏄惧崱涔嬪

// temporarily on the stack.1IU鏄惧崱涔嬪

let theKitty 銆? signer.kittyCollection.withdraw锛坘ittyId锛?myKittyId锛?span style="display:none">1IU鏄惧崱涔嬪

// Moves the Kitty into the receiver’s account1IU鏄惧崱涔嬪

let receiver = getAccount锛坮eceiverAccountId锛?span style="display:none">1IU鏄惧崱涔嬪

receiver.kittyCollection.deposit锛坘itty锛?銆?theKitty锛?span style="display:none">1IU鏄惧崱涔嬪

娉ㄦ剰锛氫负浜嗗皢閲嶇偣鏀惧湪鍒嗙被璐﹀拰鐩存帴鎵€鏈夋潈妯″瀷涔嬮棿鐨勫樊寮備笂锛屼笂闈㈢殑涓や釜渚嬪瓙閮藉拷鐣ヤ簡璁块棶鎺у埗銆佸畾涔夋瘡涓彉閲忋€佷互鍙婂疄鏃朵唬鐮佺浉鍏崇殑鍏朵粬鍥犵礌銆?span style="display:none">1IU鏄惧崱涔嬪

绠€鑰岃█涔嬶紝灏嗘煇涓笢瑗挎爣璁颁负Resource灏辨槸鍦ㄥ憡璇夌紪绋嬬幆澧冿細杩欎釜鏁版嵁缁撴瀯浠h〃浜嗘煇绉嶆湁褰㈢殑浠峰€硷紝涓庤鏁版嵁缁撴瀯杩涜浜や簰鐨勬墍鏈変唬鐮侀兘闇€瑕侀伒寰竴绯诲垪鐗规畩鐨勮鍒欙紝浠ョ淮鎶よ鏁版嵁缁撴瀯鐨勪环鍊笺€?span style="display:none">1IU鏄惧崱涔嬪

閭d箞锛岃繖浜涜鍒欓兘鏈変粈涔堝憿锛?span style="display:none">1IU鏄惧崱涔嬪

1.姣忎釜Resource 鍦ㄦ煇涓€鏃跺埢鍙兘瀛樺湪浜庝竴涓湴鏂广€俁esources涓嶈兘閫氳繃缂栫▼閿欒鎴栨伓鎰忎唬鐮佽繘琛屽鍒舵垨鎰忓鍒犻櫎銆?span style="display:none">1IU鏄惧崱涔嬪

2.Resource 鐨勬墍鏈夋潈鐢卞叾瀛樺偍浣嶇疆鍐冲畾銆傚湪纭畾鎵€鏈夋潈鏃讹紝鏃犻渶鏌ラ槄涓ぎ鍒嗙被璐︺€?span style="display:none">1IU鏄惧崱涔嬪

3.鍙湁鎵€鏈夎€呭彲浠ュResource涓婄殑鏂规硶杩涜璁块棶銆備緥濡傦紝鍙湁CryptoKitty鐨勬墍鏈夎€呮墠鍙互浜х敓鏂癒itty銆?span style="display:none">1IU鏄惧崱涔嬪

2. 涓轰粈涔圧esource闈炲父閲嶈锛?span style="display:none">1IU鏄惧崱涔嬪

灏卞儚绠€浠嬩腑鎻愬埌鐨勶紝鏅鸿兘鍚堢害鐗瑰埆閫傚悎绠$悊璐甸噸璧勪骇鐨勬墍鏈夋潈锛屼絾鏄ぇ澶氭暟缂栫▼璇█锛堢敋鑷虫槸涓撻棬涓烘櫤鑳藉悎绾﹁€岃璁$殑缂栫▼璇█锛夐兘娌℃湁浠讳綍鐢ㄤ簬绠$悊鎵€鏈夋潈鐨勬湰鏈烘娊璞★紙native abstractions锛夈€傚湪鍗忚绾т腑鍖呭惈杩欐牱鐨勬娊璞℃樉鐒舵剰涔夐噸澶с€?span style="display:none">1IU鏄惧崱涔嬪

浣嗘槸锛屼娇鐢≧esources杩樻湁涓€浜涘叾浠栧€煎緱涓€鎻愮殑濂藉锛?span style="display:none">1IU鏄惧崱涔嬪

· 鐘舵€佺閲戯紙State Rent锛?span style="display:none">1IU鏄惧崱涔嬪

鍙墿灞曠殑鏅鸿兘鍚堢害骞冲彴闇€瑕侀€氳繃鏌愮鏂瑰紡鏉ユ敹鍙栫姸鎬佺閲戯紙state rent锛夛紝浠ヤ究涓哄瓨鍌ㄥ湪鍖哄潡閾句笂鐨勬暟鎹敮浠樿垂鐢ㄦ垨灏嗗叾浠庡伐浣滈泦涓垹闄ゃ€?span style="display:none">1IU鏄惧崱涔嬪

鍦ㄥ垎绫昏处妯″瀷涓嬶紝寰堥毦鐭ラ亾璇ョ敱璋佹潵鏀粯杩欎簺绉熼噾銆備緥濡傦紝CryptoKitties鍚堢害浠h〃浜嗘暟浠ヤ竾璁$殑鐢ㄦ埛锛屾湁杩?00涓嘖itties鍜岃秴杩?11MB鐨勯摼涓婃暟鎹€侲thereum鏃犳硶鍏鍦板悜鎵€鏈夎繖浜汯itty鎵€鏈夎€呮敹鍙栫閲戙€?span style="display:none">1IU鏄惧崱涔嬪

閫氳繃浣跨敤Resource Types鐨勭洿鎺ユ墍鏈夋潈妯″瀷锛屽彲浠ュ皢姣忎釜Kitty閮斤紙涓庤鐢ㄦ埛鐨勫叾浠栬祫浜т竴璧凤級瀛樺偍鍦ㄥ叾鎵€鏈夎€呯殑璐︽埛涓€傛敮浠樺瓨鍌ㄤ粯璐圭殑璐d换鍗佸垎鏄庣‘銆傛澶栵紝涓汉鐢ㄦ埛锛堝湪鍏跺鎴风杞欢鐨勫府鍔╀笅锛夊彲浠ュ綊妗f湭浣跨敤鐨勮祫浜э紝浠ラ檷浣庢垚鏈苟鍑忓皯缃戠粶璐熻浇銆?span style="display:none">1IU鏄惧崱涔嬪

· 鐏垫椿鎵€鏈夋潈锛團lexible Ownership锛?span style="display:none">1IU鏄惧崱涔嬪

灏嗗垎绫昏处妯″瀷鐢ㄤ簬鎵€鏈夋潈浼氶檺鍒跺彲鐢ㄧ殑鎵€鏈夎€呭叧绯荤绫汇€備緥濡傦紝ERC-721涓篘FT瀹氫箟浜嗕竴涓墍鏈夋潈妯″瀷锛岃妯″瀷鍋囧畾鍙湁Ethereum鍦板潃鎵嶈兘鎷ユ湁NFT銆傜劧鑰岋紝鍦ㄦ煇浜涚敤渚嬩腑锛岃祫浜ф湰韬嫢鏈夊叾浠栬祫浜э紙姣斿CryptoKitty鎷ユ湁涓€鍓紓浜殑澧ㄩ暅锛夌殑鎯虫硶闈炲父鏈夋剰鎬濓紝杩欏氨闇€瑕佸垱寤烘柊鐨勮鑼冿紙ERC-998锛夈€?span style="display:none">1IU鏄惧崱涔嬪

涓嶅彲鍚﹁锛孍RC-998闈炲父寮哄ぇ锛屼絾瀹冧篃姣擡RC-721瑕佸鏉傚緱澶氥€傝鎯虫纭湴鎵ц璇ヨ鑼冩槸闈炲父鍥伴毦鐨勶紝鑰屼笖瀹為檯涓婏紝瑕佸皢鍏舵湁鏁堝湴搴旂敤浜庣幇鏈夌殑ERC-721璧勪骇鏄笉鍙兘瀹炵幇鐨勩€?span style="display:none">1IU鏄惧崱涔嬪

鐩存帴鎵€鏈夋潈妯″瀷鑳藉璁╀换浣曚娇鐢≧esource Types杩涜寤烘ā鐨勮祫浜у畨鍏ㄥ湴瀛樺偍鍦ㄧ郴缁熶腑鐨勪换浣曚綅缃紝鍖呮嫭鍏朵粬璧勪骇“鍐呴儴”锛堝鏋滈€傜敤鐨勮瘽锛夈€?span style="display:none">1IU鏄惧崱涔嬪

鎵€鏈夌殑瀹夊叏鎬у拰浠峰€间繚闅滈兘鍙互鐢辫繍琛屾椂绯荤粺杩涜缁存姢銆傚湪涓哄紑鍙戜汉鍛樻彁渚涚伒娲绘€х殑鍚屾椂锛屽張涓嶄細甯︽潵涓嶅繀瑕佺殑澶嶆潅鎬с€?span style="display:none">1IU鏄惧崱涔嬪

· 鍩轰簬鑳藉姏鐨勫畨鍏ㄦ€э紙Capability-Based Security锛?span style="display:none">1IU鏄惧崱涔嬪

Resource Types涓哄疄鐜板熀浜庤兘鍔涚殑瀹夊叏鎬фā鍨嬩腑鐨?ldquo;鍔熻兘锛圕apabilities锛?rdquo;姒傚康鎻愪緵浜嗘墍闇€鐨勪竴鍒囦繚闅溿€侰apabilities鏄畾涔夊畨鍏ㄧ郴缁熺殑寮哄ぇ鏈哄埗锛岃兘澶熻閬靛惊鏈€灏忕壒鏉冨師鍒欙紙Principle of Least Privilege锛夛紙瀹夊叏绯荤粺涓父瑙佺殑鏈€浣冲疄璺碉級鍙樺緱鏇村姞瀹规槗銆?span style="display:none">1IU鏄惧崱涔嬪

閫氬父璁や负锛屽熀浜庤兘鍔涚殑瀹夊叏鎬фā鍨嬪湪鎻愪緵浜嗘洿寮虹伒娲绘€х殑鍚屾椂锛屼篃鏇村鏄撹繘琛屾帹鐞嗭紙杩欏寮轰簡瀹夊叏鎬э級銆?span style="display:none">1IU鏄惧崱涔嬪

· 娑堥櫎鍙噸鍏ユ€ugs锛圗liminating Reentrancy Bugs锛?span style="display:none">1IU鏄惧崱涔嬪

Ethereum鍘嗗彶涓婃渶钁楀悕鐨勬櫤鑳藉悎绾ug鏄敱鍙噸鍏ユ€ч棶棰樺紩璧风殑锛孲olidity寮€鍙戜汉鍛橀渶瑕佷笉鏂彁楂樿鎯曪紝闃叉寮曞叆鏄撳彈鍙噸鍏ユ€ф敾鍑荤殑閫昏緫娴併€?span style="display:none">1IU鏄惧崱涔嬪

Ethereum鍘嗗彶涓婃渶钁楀悕鐨勬櫤鑳藉悎绾ug锛?span style="display:none">1IU鏄惧崱涔嬪

https://www.wired.com/2016/06/50-million-hack-just-showed-dao-human/1IU鏄惧崱涔嬪

骞歌繍鐨勬槸锛屽畾涔夊湪Resource瀵硅薄涓婄殑鏂规硶涓嶄細鎴愪负浠讳綍鍙噸鍏ユ€ug鐨勫彈瀹宠€呫€?span style="display:none">1IU鏄惧崱涔嬪

杩欎技涔庢槸涓€涓崄鍒嗗ぇ鑳嗙殑涓诲紶锛佺劧鑰岋紝瀹冧粎浠呮槸鑷劧鍦伴伒寰簡Resources鐨勫畾涔夋柟寮忥細姣忎釜Resources閮芥湁涓€涓崟鐙殑鎵€鏈夎€咃紝骞朵笖鍙湁鍏舵墍鏈夎€呭彲浠ヨ皟鐢≧esources涓婄殑鏂规硶銆傚鏋滀竴涓猂esources鏂规硶鍦?ldquo;鍫嗘爤涓?rdquo;锛岄偅涔堟垜浠氨鐭ラ亾璇ュ璞$殑鍗曚釜鎵€鏈夎€呭紩鐢ㄥ凡鍦ㄤ娇鐢ㄤ腑銆傛垜浠粠璇ユ柟娉曞唴閮ㄨ皟鐢ㄧ殑浠讳綍浠g爜閮戒笉鍙兘锛堝敖绠℃槸闂存帴鍦帮級鑾峰緱瀵硅瀵硅薄鐨勭浜屼釜寮曠敤浠ヨ繘琛屽彲閲嶅叆鏂规硶璋冪敤銆?span style="display:none">1IU鏄惧崱涔嬪

褰撶劧锛岀洿鎺ヤ娇鐢ㄥ叏灞€鍏变韩鐘舵€侊紙缁曡繃Resource瀵硅薄鐨勪娇鐢級浠嶇劧鍙兘鍒涘缓鏄撳彈鍙噸鍏ユ€ug褰卞搷鐨勪唬鐮併€?span style="display:none">1IU鏄惧崱涔嬪

杩欏氨鏄儻鐢ㄧ殑Cadence style瀵规墍鏈夊叡浜姸鎬佷娇鐢≧esources鐨勫師鍥狅紝绮鹃€歊esources鐨勬櫤鑳藉悎绾︿綔鑰呮棤闇€鍐嶆媴蹇у彲閲嶅叆鎬ч敊璇棶棰橈紒1IU鏄惧崱涔嬪

Flow鐨勭紪绋嬭瑷€Cadence浣跨敤Resources1IU鏄惧崱涔嬪

鍘诲勾锛屽湪瀵规洿濂界殑鏅鸿兘鍚堢害璇█杩涜浜嗗鏈爺绌跺悗锛孎low寮€鍙戝洟闃熻皟鏌ヤ簡鍖哄潡閾剧幆澧冧笅Linear Types鐨勪娇鐢ㄣ€傚嚑涔庡湪鍚屼竴鏃堕棿锛孡ibra鐨勫洟闃熷彂甯冧簡鍏舵渶鍒濆叕鍛婏紝鍏朵腑鍖呮嫭MoveVM鐨勬妧鏈粏鑺傘€?span style="display:none">1IU鏄惧崱涔嬪

瀛︽湳鐮旂┒锛?span style="display:none">1IU鏄惧崱涔嬪

http://www.cs.cmu.edu/~balzers/publications/digital_contracts_as_session_types.pdf1IU鏄惧崱涔嬪

Resource Types鐨勫己澶у姛鑳戒护鎴戜滑闇囨儕锛屽畠鏄疐low鐨勬櫤鑳藉悎绾︾紪绋嬭瑷€Cadence鐨勫畾涔夊姛鑳戒箣涓€銆俁esources瑙i攣浜嗘瘮EVM鎴朩ASM鏇翠赴瀵岀殑鍙粍鍚堟€ч€夐」锛屾槸鏁板瓧璧勪骇鐨勫畬缇庨€夋嫨锛堝挨鍏舵槸NFT锛侊級1IU鏄惧崱涔嬪

鍙粍鍚堟€э細1IU鏄惧崱涔嬪

https://hackernoon.com/software-composability-in-crypto-a705700c38161IU鏄惧崱涔嬪

Cadence鍏锋湁鑸掗€傜殑銆佺鍚堜汉浣撳伐绋嬪鐨勮娉曪紝鏄撲簬闃呰銆傚畠閫氳繃涓€涓己澶х殑闈欐€佺被鍨嬬郴缁熸潵鏈€澶х▼搴﹀湴鍑忓皯杩愯鏃堕敊璇紝骞朵笖鍏佽鎵€鏈夋柟娉曘€佹帴鍙e拰浜嬪姟鍖呭惈鍓嶇疆鍜屽悗缃潯浠讹紝浠ュ己鍒舵墽琛岄鏈熺殑琛屼负銆傛垜浠涓猴紝杩欎細浣胯瑷€鍙樺緱鏇存槗浜庡涔犲拰瀹℃牳锛屾渶缁堬紝浼氭瘮鐜版湁鐨勬墍鏈夐€夋嫨閮芥洿鍔犻珮鏁堛€?span style="display:none">1IU鏄惧崱涔嬪
璐d换缂栬緫锛泎l1IU鏄惧崱涔嬪

鐩稿叧鎺ㄨ崘