📜 [專欄新文章] Fraud and Data Availability Proofs
✍️ Brian Po-han Chen
📥 歡迎投稿: https://medium.com/taipei-ethereum-meetup #徵技術分享文 #使用心得 #教學文 #medium
這篇文章是被Kimi啟發,所以去研讀並且節錄一些重點還有我對這篇paper的理解
輕節點(Light clients, SPV clients)在整個區塊鏈網路中只下載少部分的資料來驗證區塊是否合法,而這個做法相比於全節點驗證全部資料來說,必須假設共識演算法中只有包含有效的區塊資料同時也假設大部分的全節點是誠實的.
如果讓全節點能夠產生 Fraud Proofs 來證明區塊確實違反了共識協定的規則同時搭配概率抽樣的方法來驗證全部的區塊資料可供下載,就可以大大的降低誠實節點的數量假設;藉由能夠保證鏈上資料都是可得並且有效,Fraud and Data Availability Proofs會是擴容技術(e.g., sharding, bigger blocks)的一大重點.
Erasure code and Reed-Solomon Codes
糾刪碼是將原來長度為k的訊息編碼成為長度為k+m的訊息,而原來的訊息可取編碼後的訊息子集來還原,也就是說這個技術可以容忍m個分散式節點故障,這邊就不詳述了,可參考Kimi的文章
Fraud Proofs
Block Structure
一個block header應該要包含以下元素
prevHash: 前一個block header的hash
dataRoot: 資料(e.g., transactions)組成Merkle tree的root hash
dataLength: 資料樹的葉節點數量
stateRoot: 狀態樹的root hash
additionalData: 額外的任意資料,像是nonce或是難度等等
2. State Root and Execution Trace Construction
transition function: 給一個state S並且去執行transaction T,成功則返回新的state S’ , 或者失敗了返回error
state witness: state tree中只有部分被transaction讀取或者改變的merkle proofs
rootTransition: 使用Merkle proofs來有效地表達一個子樹(root hash會跟整棵狀態樹一樣)
interRoot: rootTransition在一個區塊中執行每個transaction時產生暫時的state root,denote成trace
3. Data Root and Periods
shares: 資料樹的葉節點,包含一個完整個transaction, 部分的前一個transaction跟後一個transaction以及完整的transaction,這樣做法的好處是message parser不需要全部的message就可以建立message boundaries
利用parser將transactions取出之後就可以去驗證state transition是否正確
4. Proof of Invalid State Transition
一個不正常或者惡意的礦工可能會給出一個不正確的stateRoot,我們可以利用dataRoot下的資料(包含trace)來驗證部分的執行是有問題的;一個Fraud Proof 包含不正確state transition相關的shares, 這些shares的merkle proofs, 以及shares中的state witnesses
Verify function要檢查1. block hash跟client端存的是一樣的. 2. 每一個shares都在dataRoot底下. 3. parseShare執行完是整個區塊transition的子集. 4. 確認執行transaction後,trace_x會變成 trace_(x+1),執行無誤
Data Availability Proofs
惡意的區塊產生者為了避免全節點產生Fraud Proof,可能會扣留著資料而只送出block header,等到過了很久之後才送出資料,這樣可能會造成未來的transactions rollback,所以對於輕節點來說,高度保證正確的資料可得性是非常必要的
這篇paper提出一個基於Reed-Solomon erasure coding的data availability scheme,這個scheme假設網路上有足夠多的輕節點可以產生足夠數量shares來恢復完整資料
Strawman 1D Reed-Solomon Availability Scheme
首先,block producer將區塊資料編碼成k個shares並且利用RS編碼將資料擴展成2k個new_shares,在前面的RS coding中得知我們只需要隨機取得k個new_shares就可以恢復原來的資料.
如果block producer沒有正確的利用RS coding來擴展資料,則就算new_shares資料都可得,也無法正確的恢復原來的資料,也就是說客戶端必須把所有的資料重新編碼一次來判斷block producer有沒有正確產生dataRoot,也因此需要區塊大小的空間O(n)資料.
PS: 我認為要讓其他的全節點做驗證,因為輕節點沒有全部transaction資料
如果使用多維度的編碼則可以將proof size降到O(n^(1/d)),d為維度大小,簡單用2維空間來做解釋,但是實際的scheme是可以用到更高維
2. 2D Reed-Solomon Encoded Merkle Tree Construction
首先,將raw data 切成 k * k 個 new_shares
利用RS coding 將原來的資料水平以及垂直擴展,再將垂直擴展的shares再做一次RS coding就像fig 4.圖示,最後產生一個Matrix M_i for block i
計算每一個row, column所組成Merkle tree的root hash
最後計算rowRoot跟columnRoot的hash
最後資料樹的資料長度會是 2 * (2k)² 元素(經過編碼的new_shares),前半段的葉子點路徑包含row root,而後面一半則是包含column root;輕節點或是全節點可以透過所有的row root跟column root 去驗證 data root 是否正確,為了獲得資料可得性的保證,所有的輕節點都至少要下載區塊所有的row 及 column root,這樣才有辦法產生Fraud Proof
3. Random Sampling and Network Block Recovery
輕節點跟全節點協定如下
輕節點收到block header 以及 raw roots, column roots,驗證data root 是否正確,否則reject header
輕節點隨機取幾組座標(x, y),並且寄給一個或多個全節點
全節點如果有這組座標的shares以及相關的merkle proof就回傳給輕節點
輕節點檢查這個shares 以及相應的 merkle proof是否屬於相應的row root樹或者是 column樹
輕節點把shares 跟相應的merkle proof gossip給其他與他相連並且沒有這些shares資料的全節點
如果所有的proofs 都通過檢驗,則這個block被認為是可得的
4. Selectively Share Disclosure
如果區塊產生者有選擇性的釋出shares,儘管這些shares是unrecoverable,但是這個區塊還是會被認為是available;所以可以藉由假設網路上有足夠多的誠實節點並且有超過(k+1)²個shares 會被匿名的sample request呼叫來解決這個問題,也可以利用enhanced network model來強制不同sample的request不能給同一個client,請求順序也是隨機分布的.
5. Fraud Proofs of Incorrectly Generated Extended Data
如果一個全節點拿到足夠多的shares去recover特定的row或是column,並且發現recovered data不正確,那他就必須提出一個merkle proof包含足夠的shares可以recover那個data.(包含每個shares的merkle proof)
結論
這篇paper提出了一個data availabilty的方法,在額外的一些假設下(至少有一個誠實的節點會提出Fraud Proof,一定數量的輕節點會共同來恢復區塊),來讓輕節點的安全保證幾乎跟全節點一樣
Fraud and Data Availability Proofs was originally published in Taipei Ethereum Meetup on Medium, where people are continuing the conversation by highlighting and responding to this story.
👏 歡迎轉載分享鼓掌
同時也有6部Youtube影片,追蹤數超過9,750的網紅Dainghia25,也在其Youtube影片中提到,New PES 2021 PS4 Option File by PES Universe. It includes fully licensed of Premier League SkyBet Championship LaLiga Santander LaLiga SmartBank Serie...
「random error」的推薦目錄:
- 關於random error 在 Taipei Ethereum Meetup Facebook 的最佳解答
- 關於random error 在 FrostFire Facebook 的最佳解答
- 關於random error 在 雀斑樂團 Freckles Facebook 的最讚貼文
- 關於random error 在 Dainghia25 Youtube 的最讚貼文
- 關於random error 在 Biu Biu Youtube 的最讚貼文
- 關於random error 在 TaibeiMoto。台北摩多 Youtube 的最讚貼文
- 關於random error 在 Systematic and Random Error - YouTube 的評價
- 關於random error 在 Random Error | Introduction to Physics - YouTube 的評價
- 關於random error 在 Random Error, Systematic Error, Precision, Accuracy - YouTube 的評價
random error 在 FrostFire Facebook 的最佳解答
Our FIFA stars Kathires “InFamous9” & Boon Shin "Shige" will be in Sunway Pyramid this weekend for Gamers Hideout FIFA 19 Roadshow.Catch them in action and who knows you might be able to pick up a few tips from the pros :)
#FFWin #Frostfire #FrostFiremy #thepantheonmy #thermaltake #thermaltakemalaysia #ttesports #ttesportsmalaysia #FIFA19
Be the champion among champions and stand a chance to win a #PS4 Slim (not Pro edition, we apologize for the mistake on the poster) #FIFA19 Bundle by challenging and winning a match against the FIFA pro players 🙌🥅 on the 28-29 September at #GamersHideout FIFA 19 Roadshow event in Sunway Pyramid!
With collaboration with The Pantheon and the players FrostFire Boon Shin "Shige", FrostFire Kathires “InFamous9” and PRDG|Aksiz_ARIL.⚽ Also those who participate will get an OFFICIAL FIFA19 or PlayStation drawstring bag or #PlayStation shoe bag.
Date :
28th September : 5PM - 9PM
29th September : 1PM - 9PM
Terms and Conditions:
-Only Open for casual players and not "Pro" players that participate in tournaments. (Definition of Pro FIFA Players = Players that participated or won in tournaments with prize pool of above RM1000)
-Only valid during the stated period of time.
-Only allowed to participate once per person.
-Challenge with preset settings stated below.
-Players are allowed to change formations during the match such as all out attack or parking the bus.
-Players are not allowed to bring their own controller and must used the ones that are provided
-In the events of the match ending up in a draw, NO extra time or penalty will be given.
-No coaching allowed (Preferably people in the audience may not advise any Player while playing)
-If a game is interrupted intentionally by the Player, that Player will immediately be disqualified.
-If a game interruption is caused by outside circumstances such as a machine error or loss of power, the game will be reset
-With permission from the marshall, a Player can pause the game to change strategy, substitute and/or formation during the match
-Marshal decision shall be final.
-Gamers Hideout reserves all rights for any amendments or adjustments made without any prior notice.
Preset game settings:
1. Game type: Kick Off
2. Team category: Club/International
3. Difficulty level: Legendary
4. Half length: 5 minutes per half
5. Game speed: Normal
6. Injuries: Off
7. Offside: On
8. Bookings: On
9. Substitute: 7
10. Handball: Off
11. Referee: Random
12. Camera: Tele Broadcast
13. Camera Zoom = 0 , Height =20
14. Defending: Tactical Defending only
15. Keeper control: No
16. Time finishing: On
random error 在 雀斑樂團 Freckles Facebook 的最讚貼文
https://youtu.be/9M0kE3dq0zI
這一次參與3/10「不標準朋友」的共演樂團 沙沙小樂團 The Sasa Little Band的創作主腦 Elisa Lin 林依霖 老師,集錄音工程師、專業樂手(吉他鋼琴小提琴貝斯⋯)集專業唱片製作人於一身,不但為了我們製作了《不標準情人》之外,2007年發行的《我不懂搖滾樂》也是她為我們首次監製混音製作的作品!大家可以在我們《不標準情人》的PV製作花絮看到她的身影!
接下來還要介紹更多她與沙沙小樂團的新作!
大家週一趕快去搶預售票呀!
四人同行1800
省下您珍貴的50元
去德記買一塊香香脆脆的大蒜麵包帶來吃ㄅ
預售票連結 ➡️ 2/12中午12點正式開售
https://www.indievox.com/error/page-not-found
🎸 不標準朋友 Imperct Friends
3/10 The Wall Live House
隨性 Random 沙沙小樂團 雀斑樂團 Freckles
奇奇怪怪的什麼都有什麼都沒有 ❓
一起要你好看 👀
random error 在 Dainghia25 Youtube 的最讚貼文
New PES 2021 PS4 Option File by PES Universe. It includes fully licensed of Premier League
SkyBet Championship
LaLiga Santander
LaLiga SmartBank
Serie A TIM
FULL Bundesliga with created players, accurate faces & builds
Kits 2048 Px*
Highest Quality
*V1 is full 2048 so you’re gonna have to choose some things to not import as you won’t have all the space
*for PC it's save folder, replace it to \KONAMI\eFootball PES 2021 SEASON UPDATE\RANDOM NUMBER\
Download Link http://bit.ly/pesuniv2021
Credits to PESUniverse || Support them : https://www.pesuniverse.com
Tutotial
PES 2021 V1 – INSTALL – PS4
1. Download the option file & then navigate to the download destination (downloads or desktop folder usually but this despends on your PC)
2. When downloaded, right click on the file and choose ‘Extract to WEPES’ and the file will extract in a few seconds
3. Insert your USB key into your PC/MAC. Right click on the USB icon and select Format if needed (make sure it is set to FAT32)
4. Now return to the WEPES Folder (the one you just extracted) & right click on the WEPES folder & select ‘copy’ & then return to the USB folder
5. Open up the USB folder (double click to go to the USB root) and simply paste the WEPES folder (right click then select paste)
6. This will now copy over so wait a few minutes. Once complete you should have an open folder on your USB called WEPES
7. Now eject the USB from your PC/MAC & and insert it into your PS4. Follow all the instructions until you can go to Edit Mode.
8. When you first start PES 2021, there will be an import tutorial, just follow the intructions before you proceed with importing the Option File.
9. Once in Edit Mode, navigate to Import/Export and select Import Team.
10. Now select All files (PS4 square button) & select ‘Go to Detailed Settings’ and then press OK (DO NOT TICK ANY BOXES HERE)
11. This will import everything except Bundesliga Players so relax for 5-10 minutes while it does its thing. Once completed, return to the import screen
12. Now select all Bundesliga Teams (do not select Schalke, Bayern & Bayer Leverkusen) National Teams & Brazilian teams ONLY
13. Tick both boxes “Players” & “Overwriting images” & then Import by pressing OK. Return to the main Edit Menu
14. Select Import Competition, select All files (PS4 square button) & Go to Detailed Settings’ and then press OK (DO NOT TICK ANY BOXES HERE)
15. Return to main Edit Menu & go to competition structure, reduce the draw size for the Bundesliga to 18 and swap the teams across from other euros
Sometimes you might get an error, do not worry, simply follow the steps again & reimport
▶ Ủng Hộ Tớ (Donate) :
https://unghotoi.com/dainghia25
https://streamlabs.com/dainghia25
▶ SUBSCRIBE MY CHANNEL : https://goo.gl/VPOrGK
▶ RENUMBER LIKE, SUBSCRIBE AND SHARE MY VIDEO!!!
▶ Fanpage Facebook : https://www.facebook.com/dainghia25gaming
▶ Facebook : https://www.facebook.com/dainghia25
#dainghia25gaming #livestream #dainghia25

random error 在 Biu Biu Youtube 的最讚貼文
Error 404 teammate not found | Random Squad | PUBG Mobile
Hope you guys enjoy watching this video and don't forget to subscribe to this channel for more ??
Biu.
Follow me on Instagram:
https://www.instagram.com/biu1215/
Device: iPhone 8+
Screen Recorder: iOS Screen Recorder
#PUBGMOBILE

random error 在 TaibeiMoto。台北摩多 Youtube 的最讚貼文
* Jukin Media Verified *
Find this video and others like it by visiting https://www.jukinmedia.com/licensing/view/969448
For licensing / permission to use, please email licensing(at)jukinmedia(dot)com.
騎士操作失誤 100% personal error
[我的裝備 My Gear]
SBK短手套 AP6 Gloves
安全帽 Helmet Shark Raw
防摔夾克 Jacket BENKIA HDF-L24
Komine護胸 Komine Chest Protectors
Sas-Tec護背 Sas-Tec Back Protector
偶然部品護具牛仔褲 Sas-Tec骨盆和溪部護具 OURAN 602 Jeans with Sas-Tec Protectors
車輛 Vehicle: CPI SM250/
Suzuki DRZ400 SM/
Suzuki Address125ss/
SYM 野狼 Wolf125/
Yamaha 大兜風 Glide100
攝影機 Camera: Sony Action Cam 運動攝影機
HDR-AS15 /
HDR-AS200V /
RM-LVR2 WiFi遙控器
後製軟體 Editing Software: 威力導演/ Final Cut Pro X

random error 在 Systematic and Random Error - YouTube 的推薦與評價
... <看更多>