[Synthetic Client] Add retrieval client #95
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why are these changes needed?
Test Retrieval of Chunks from operators
Changes
TestResult
Environment: EigenDA-TestNet
EigenDA SyntheticClient:3f1e027d-b6d8-437c-b6b5-fb5c327f3f9f 2023/12/01 16:41:39 Verify Retrieve Dispersed Blob Using Disperser Endpoint Against Dispersersed Blob EigenDA SyntheticClient:3f1e027d-b6d8-437c-b6b5-fb5c327f3f9f 2023/12/01 16:41:39 Try Blob using Retrieval Client status:CONFIRMED info:{blob_header:{commitment:"$\x7f\x03\x01\x01\nCommitment\x01\xff\x80\x00\x01\x01\x01\x07G1Point\x01\xff\x82\x00\x00\x00#\xff\x81\x03\x01\x01\x07G1Point\x01\xff\x82\x00\x01\x02\x01\x01X\x01\xff\x84\x00\x01\x01Y\x01\xff\x84\x00\x00\x00\x17\xff\x83\x01\x01\x01\x07Element\x01\xff\x84\x00\x01\x06\x01\x08\x00\x00Q\xff\x80\x01\x01\x04\xf8\xfb\x89f\x9db\x0c\xaa1\xf8\xabP\x81\x0c\x05pZ\xe1\xf8\xecƻ\xb3\xbf\xf0ǝ\xf8\t\xd6\xf5\xe2jD~>\x01\x04\xf8\xf4\x82\xbaI\xb6wr_\xf80\x81\x1eZd\x1f\xcc\xe3\xf8P\xff'\xaaH\xb4\xbe\xf8\xf8\x1d\xb8\xfc\xediP\xf2\xba\x00\x00" data_length:3 blob_quorum_params:{adversary_threshold_percentage:25 quorum_threshold_percentage:50 quantization_param:1 encoded_length:60}} blob_verification_proof:{batch_id:43307 blob_index:14 batch_metadata:{batch_header:{batch_root:"8\x98\xdbxZRz\xcbv<9\xaa\x8c\x07H\x1c\x97\xa6DF\xa6\x1d\x8f\x9cr\xebԄ_\x13\xe3\x8d" quorum_numbers:"\x00" quorum_signed_percentages:"]" reference_block_number:10139750} signatory_record_hash:"\x92$\xb1\x88\xb4\xf7\xf8\x9ba\xad\xcf\xc0\xe2>\xdb\xc7\x12\xa9\x9f\xc3\x17\x11\xad\x8a\xa1$\xd3l)~\xf2\xab" fee:"\x00" confirmation_block_number:10139755 batch_header_hash:"\xf0\xf5\xe5?^\x91U<z\xa1\x86Z/\xeai\xc8)\xa7W9\xedh\x94\x0eo\xda\xdd؋\xb2s\xb7"} inclusion_proof:"\xc4\xc9{+\x9f\xabTW\xf3v\x84\xdf8\x9a\x84\t]X\xec\x1d\xf1\x010\x9e\xfb\xed\xffJ\xb8\xffR\x96\xa4\xa6\x152\x11\x0bB\x9d\xcc\xda#(;Z%Ѐ\xe4\x19\xfb\xbf\xc3W\xa4\x11\xd4\x1b\x19[#鶄I\xbd\x00=\xd4G\x7fx\xe7\xad>\xed\xc1\xb2\x97\xa3\t\xb2\x88\xd0(\x8e\xfb\x8e-\\F\x99\xda\x01\xa5\x9a\x93\x03 \x7f\xddj\xc0\x95~\x15w\x93\x07\xbb\xbf:Ө\xe9\xb9n\xf8\x02\xdex\x12W\xb6KS}2\xa7\x8e1뱄\xa5{\x8f\xd1\xfba\xea\x1d*\xed\x9eح\x1f\xa9\x8a\x90\x9fX4\\\xee\xbc}\x18" quorum_indexes:"\x00"}} EigenDA SyntheticClient:3f1e027d-b6d8-437c-b6b5-fb5c327f3f9f 2023/12/01 16:41:39 RetrievalClient:GetBatchHeaderHash() [240 245 229 63 94 145 85 60 122 161 134 90 47 234 105 200 41 167 87 57 237 104 148 14 111 218 221 216 139 178 115 183] EigenDA SyntheticClient:3f1e027d-b6d8-437c-b6b5-fb5c327f3f9f 2023/12/01 16:41:39 RetrievalClient:GetBlobIndex() 14 EigenDA SyntheticClient:3f1e027d-b6d8-437c-b6b5-fb5c327f3f9f 2023/12/01 16:41:39 RetrievalClient:GetReferenceBlockNumber() 10139750 EigenDA SyntheticClient:3f1e027d-b6d8-437c-b6b5-fb5c327f3f9f 2023/12/01 16:41:39 RetrievalClient:GetBatchRoot() [56 152 219 120 90 82 122 203 118 60 57 170 140 7 72 28 151 166 68 70 166 29 143 156 114 235 212 132 95 19 227 141] 2023/12/01 16:41:44 Table with params: DimE=128 CosetSize=1 does not exist 2023/12/01 16:41:44 Generating the table. May take a while 2023/12/01 16:41:44 ... ... 2023/12/01 16:41:44 Precompute finishes using 103.283812ms ------------------------------------- Validation of Data to Blob fetch from RetrieverClient -------------------------- EigenDA SyntheticClient:3f1e027d-b6d8-437c-b6b5-fb5c327f3f9f 2023/12/01 16:41:44 Validate BlobReply [35 163 178 253 186 164 110 128 140 177 37 189 0 61 20 76 149 41 84 180 238 180 97 102 210 38 66 180 216 32 62 35 140 250 160 106 254 67 246 46 71 234 187 243 85 43 199 227 187 60 93 70 222 194 119 221 240 207 79 146 190 44 128 26 157 16 172 238 105 140 92 149 212 244 210 210 203 16 45 167] is equal to inputData [35 163 178 253 186 164 110 128 140 177 37 189 0 61 20 76 149 41 84 180 238 180 97 102 210 38 66 180 216 32 62 35 140 250 160 106 254 67 246 46 71 234 187 243 85 43 199 227 187 60 93 70 222 194 119 221 240 207 79 146 190 44 128 26 157 16 172 238 105 140 92 149 212 244 210 210 203 16 45 167] EigenDA SyntheticClient:3f1e027d-b6d8-437c-b6b5-fb5c327f3f9f 2023/12/01 16:41:44 Blob using Retrieval Client status:CONFIRMED info:{blob_header:{commitment:"$\x7f\x03\x01\x01\nCommitment\x01\xff\x80\x00\x01\x01\x01\x07G1Point\x01\xff\x82\x00\x00\x00#\xff\x81\x03\x01\x01\x07G1Point\x01\xff\x82\x00\x01\x02\x01\x01X\x01\xff\x84\x00\x01\x01Y\x01\xff\x84\x00\x00\x00\x17\xff\x83\x01\x01\x01\x07Element\x01\xff\x84\x00\x01\x06\x01\x08\x00\x00Q\xff\x80\x01\x01\x04\xf8\xfb\x89f\x9db\x0c\xaa1\xf8\xabP\x81\x0c\x05pZ\xe1\xf8\xecƻ\xb3\xbf\xf0ǝ\xf8\t\xd6\xf5\xe2jD~>\x01\x04\xf8\xf4\x82\xbaI\xb6wr_\xf80\x81\x1eZd\x1f\xcc\xe3\xf8P\xff'\xaaH\xb4\xbe\xf8\xf8\x1d\xb8\xfc\xediP\xf2\xba\x00\x00" data_length:3 blob_quorum_params:{adversary_threshold_percentage:25 quorum_threshold_percentage:50 quantization_param:1 encoded_length:60}} blob_verification_proof:{batch_id:43307 blob_index:14 batch_metadata:{batch_header:{batch_root:"8\x98\xdbxZRz\xcbv<9\xaa\x8c\x07H\x1c\x97\xa6DF\xa6\x1d\x8f\x9cr\xebԄ_\x13\xe3\x8d" quorum_numbers:"\x00" quorum_signed_percentages:"]" reference_block_number:10139750} signatory_record_hash:"\x92$\xb1\x88\xb4\xf7\xf8\x9ba\xad\xcf\xc0\xe2>\xdb\xc7\x12\xa9\x9f\xc3\x17\x11\xad\x8a\xa1$\xd3l)~\xf2\xab" fee:"\x00" confirmation_block_number:10139755 batch_header_hash:"\xf0\xf5\xe5?^\x91U<z\xa1\x86Z/\xeai\xc8)\xa7W9\xedh\x94\x0eo\xda\xdd؋\xb2s\xb7"} inclusion_proof:"\xc4\xc9{+\x9f\xabTW\xf3v\x84\xdf8\x9a\x84\t]X\xec\x1d\xf1\x010\x9e\xfb\xed\xffJ\xb8\xffR\x96\xa4\xa6\x152\x11\x0bB\x9d\xcc\xda#(;Z%Ѐ\xe4\x19\xfb\xbf\xc3W\xa4\x11\xd4\x1b\x19[#鶄I\xbd\x00=\xd4G\x7fx\xe7\xad>\xed\xc1\xb2\x97\xa3\t\xb2\x88\xd0(\x8e\xfb\x8e-\\F\x99\xda\x01\xa5\x9a\x93\x03 \x7f\xddj\xc0\x95~\x15w\x93\x07\xbb\xbf:Ө\xe9\xb9n\xf8\x02\xdex\x12W\xb6KS}2\xa7\x8e1뱄\xa5{\x8f\xd1\xfba\xea\x1d*\xed\x9eح\x1f\xa9\x8a\x90\x9fX4\\\xee\xbc}\x18" quorum_indexes:"\x00"}} --- PASS: TestDisperseBlobEndToEnd (50.15s)
Checks