Skip to content

Commit

Permalink
test: new bee sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
nugaon committed Sep 18, 2023
1 parent 8d47eb9 commit f97b6a7
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 78 deletions.
154 changes: 77 additions & 77 deletions test/claim-proofs.ts
Original file line number Diff line number Diff line change
@@ -1,121 +1,121 @@
export const node5_proof1 = {
hash: '0x8bc6f4c6f35b654a43f40b4d963a98e7a2145878bfbad8453f89598d41aa593d',
depth: '0x00',
hash: '0xcf27be680f2dada5bcc45506997f54804e583650e48c28514ccc95234ef4f9f3',
depth: '0x01',
proof1: {
proofSegments: [
'0x00207d2672318ca87baca044d2fed85c068d44abfdd94666c7eafa7fce7bc8ce',
'0x65f1f929878b318eeb284115ed6818262d1c116ad6b3b9022842c2e09af1d01c',
'0x23297fe16f77bfb5dc921de31dcec72f959784c21eeab6a5d6b21f9eac1c699e',
'0x8d702459b9a53df7c3b5c8a12e2734b6cf355949973fd4fdcd0c0bd3eb7911ad',
'0x151f62c868655b38e4570710bf4415a89bb26cc61e5352792e029e13572d1553',
'0x000057515f1f37c0136197a45bd50b4618e3ebe272c4fb34b7f00e8972b84630',
'0x24d4e8fa9840ee525cf13d85ec07ad6b6ac88a180c5e420a7e57f9a3bf0a0578',
'0x85e4c229f557648ecbd01e0d768a1786bd3df8bb248a395c5768fad9d8d56f74',
'0x19042aeaca66e2bf5e961ff1429b51d0b566700e94154d3ff2addea8910a857f',
'0x931e95ed8ea3efe7c961602b8b7888b59947124f190da163b85246c1d8dc28bc',
'0x0eb01ebfc9ed27500cd4dfc979272d1f0913cc9f66540d7e8005811109e1cf2d',
'0x887c22bd8750d34016ac3c66b5ff102dacdd73f6b014e710b51e8022af9a1968',
],
proveSegment: '0x8c877d302793c60bb4e9178519011a8dee9f9cddc795eb1e1eb92881eb8ea10c',
proveSegment: '0x78fbc965b296a7e146ae2cfb03f4df22a84779078538905dde74327bf4e36545',
proofSegments2: [
'0x0f7329491b663ed5278b0b74d0cdb08736f4d4af42bd8d89721e85a2e5cb0c5a',
'0xdfd51beaff635f0f0871b509f8ca0b070b50e04a5834e21acdb11eb886f5c9d6',
'0xd9e4472baa57828cfb174f32e1e7cf26e53a6a448fc6ecad7df690953c088bd9',
'0x48a53375ed5a22acac6b9f9f15a1ff52de6264dc6e3dfa10b6f7b1a001be3568',
'0x9d586fdeb366e351776ff51043b1d7680f6874c6af8b7afeee1e3490dbbad348',
'0x9dbc33f2dd344c63aa20614a8b090c7794228425501ebd2a36689b708d74d10f',
'0x02effc56e300847551a2b179bd47209abddd19f6c2f471e124f4359126d87c50',
'0x6e21b55f5f30ea3d77ca7ee24fe43928f309f19916978a98eb75bd8dfbf9e9fb',
'0xe82ab3bce42ee51c670eadc57c5d7eab70a902e977ac2a820d82d1910b49c30a',
'0x0abb1479acb3314a30ecdc03016e6ef8900aa48882885f33918b8740d7766e26',
'0xb07cfba2224b8d59a81006711d8a4c1b8e342e7bfc8355cb7a1907793663b7cb',
'0xecf121c97385aed4648d1eca4eda8b7d4d1e7094c9a29b44ec8cd759b562bba8',
'0x03dac69fb24d1c455fe32e866dec762944d198a7fb38aa5744030a8b0157edf1',
'0x6eb22b1022d18748bd1f3b2f0afe6ec82d7457406012ea91728452602ebc44b2',
],
proveSegment2: '0x7bb946bebe0e0157fd3725c0c533d28543e0fdd0ef3263da7cb459ff1ba1810b',
proveSegment2: '0x575c434071a58a272ed3d3c9c73782c66b680650540409b53c05db21a21db577',
chunkSpan: 4096,
proofSegments3: [
'0x0f7329491b663ed5278b0b74d0cdb08736f4d4af42bd8d89721e85a2e5cb0c5a',
'0x7ee7dbcd2b77c1aed34a59803177d0e766e3f4f4123e98b85d1fe5aaad56273c',
'0x3c4498970a537ab450ea38590b5fba0f58fcbd8f9be136a3d9edc467c97908ef',
'0x1df75ceebb37f37422f514561f917b1e6c93530b87d8696623251dbb59872dcf',
'0x2b7c562d9bb2102b103bb16c558506842d4eb57eebf68965b8270256b0522b23',
'0x9894e82693f807444437821b3bdc2676efc217fd93c4d8a906caf0d4ac104697',
'0x1417fc2f6c91cb9252756974553d4f70e0247fbe9a5fa15c7ac67b85f89cf973',
'0x6e21b55f5f30ea3d77ca7ee24fe43928f309f19916978a98eb75bd8dfbf9e9fb',
'0x3ff0f0743b3d169981cc5f67cbcf8725917e43dd4aea9bfee4e22abe4d18ecf9',
'0x50ffd8a56337e576f0b56c2563082dc4776d099503479bb918548f21b0d55daa',
'0x3ccc3ad084a22f20f06e9b388ddcfeda2c6781f9c9f0e4e6c896ab78e9c1270e',
'0xb5fdcfb93b778f5ae8fa2564633e31f195b518c63d00831d9a57556ac43760db',
'0x04ad7a29fe63d0373e47f0184950cb538dd82482a23c757095b4adac2a5a9357',
'0xc2ef7172b9c978b3e579a3424d03db71f907932fc9b9b031bfa5c7dd9713ba64',
],
signature:
'0xbb487a8df270ba63571f341eb27a9a6a86dafda8e89366ee3e6704a8ee1720cb15cdd320d71056b10cc2814b77e974e7c971476650cc93e2d905a4f75a2e63d61c',
chunkAddr: '0x8c877d302793c60bb4e9178519011a8dee9f9cddc795eb1e1eb92881eb8ea10c',
'0xf6b2fbdaf5a59b55303e98d9cfb8f5d730cd4cec601abf28f62cbd2c2e3f0dcc3d2c82144b2332c52961290b3a64dd25231fc5afa3ad31541c6a0a64ee1954ac1c',
chunkAddr: '0x78fbc965b296a7e146ae2cfb03f4df22a84779078538905dde74327bf4e36545',
postageId: '0x5bee6f33f47fbe2c3ff4c853dbc95f1a6a4a4191a1a7e3ece999a76c2790a83f',
index: '0x00008c8700000000',
timeStamp: '0x178508b573b54945',
index: '0x000078fb00000017',
timeStamp: '0x1785462106d88f33',
socProofAttached: [],
},
proof2: {
proofSegments: [
'0x002d6c1b5126036e6b7b96849ef1b2a009ff31cad297e8963b28bddbc5eae574',
'0x8896bb62d5fe8374c11d99558f648c00e83340f2e7542105816fd44123bbc675',
'0x2d69446b70dca762411331adf8b228d8b3f56a89283ada74425e82cc561dcb01',
'0x3c277c2b5a7254ae0b1782c53fa106337d7b43b052c015de76ce431decf9b57f',
'0xd4cfd733bcb68b4313d8cc4b4b03915ddbe9910d3c766e534fa2443c10cebc10',
'0x00009dab88dcb65c9eb3028506d26b918b33b740d689e2c8d215a675c4fa8891',
'0xf85d5e81948dbb24f33bbf6af7efceb547c47d5a64e8b11f676b893751a1bfd0',
'0x7d1b3e453e4c08496f30ed71a866ac28916e27cd3885a16a961d1dc87c8befa8',
'0xbb651df2741f07c6aed8a68af8d08c32ab556bb05403473dc6ab3d0d68087785',
'0x931e95ed8ea3efe7c961602b8b7888b59947124f190da163b85246c1d8dc28bc',
'0x0eb01ebfc9ed27500cd4dfc979272d1f0913cc9f66540d7e8005811109e1cf2d',
'0x887c22bd8750d34016ac3c66b5ff102dacdd73f6b014e710b51e8022af9a1968',
],
proveSegment: '0x75b264c6c8b631a3ec54893750c19c5c4633bc636c153ec3513e05ff0a84a6e5',
proveSegment: '0x724fc91ed7318f5c04ce30d33cc9444eb4937974285af8cbc87097a40edccd09',
proofSegments2: [
'0x2849855eb5e81e0542b1768291e375c59d58fa42d749da40b2bcbf52e7824c08',
'0xe5da978cff1dafeb13f52b732e7071b493b3c146061f882e502e72c44f962547',
'0x8674bb05b408edc33d427e49e8accebc218da3f10eca2731209bb4f6cd78ac63',
'0xd1e062c6efa05d904b1d7b434fcbdcbd308ff9f7efff930bcd73e309936e7160',
'0x45e4a1264625b75b01b0589ba3a811bc786243aefdd321fbd4ab820bc1369633',
'0x8db9ba92eb1df428f5e5f33b851e1ea81b8e5fa7a1a84061955cec3943e22f91',
'0xf427f41bec196740cc28e71f3105cc3c5d9da1c2240805780d592bbec053578a',
'0xa5853628094e0da25bc9f8ef2e56e0b43367e8f1644781eab6f0d8adceb37de1',
'0x8c7699a136deeef563d257530044ad3421ebea67faadbe5670c6a53b1da95681',
'0x37141d349d016b61787ea8d50d246d40d5c47dafd2b618150eb2735c9e147336',
'0xd620b8cba4e9c6d0258d900756f0156a92baf7093fd71101c2205a1ee11484a5',
'0x33482c710b3838c0db16022f226aa1aa5dc449d7b086e42e39220ef38cc8b9b9',
'0xf345ba3b2bae408d46585568803ba75a5b551701f488172449455700ec1a0f97',
'0x634dded701a03c7b13b8d3180df87fbbfa185f5f9b8dafad09d2f297a2b45e31',
],
proveSegment2: '0x7df4093097c6457eed2cd697c8233a8ffc9fcb2c55cdadcc2145c6b585b6e860',
proveSegment2: '0xeff9bac0c51082ff8d4380bf8cdca4fa9c20bcdc4190f2a2f3a999726d77f9f1',
chunkSpan: 4096,
proofSegments3: [
'0x2849855eb5e81e0542b1768291e375c59d58fa42d749da40b2bcbf52e7824c08',
'0xe8ddd4a8fc88f2629683c311aa62112340fbedf88b50fcdd459b692c9b320fd1',
'0xd14062a5d3547c2bc8e13d80ced6b33fc9471f0777711c49225f58a36cf86d66',
'0x9f8b0785d2a12d36556373169293088fbf60ec613553b347b0d48bdbaf5d9b8b',
'0x8490dca43c55c66bad5e4235967e3cc286bb5c58b1d578b2591713740729a13e',
'0x419634e8701a88d1e0acf72e373360837b1554e536092b72f58832fcdb4bebc8',
'0x18209930ca9c4f619179b06eec4e6b9c47126bf5978eb9691a0e78e096de9660',
'0xa5853628094e0da25bc9f8ef2e56e0b43367e8f1644781eab6f0d8adceb37de1',
'0xd453c8dca4cf42a72f1839330b5714b1f06eb476a4085d6dd65725b39544ed5c',
'0x73dc1145525816ba07842f433c81e2d9afd088fbff91b41f8378e04ecdccd2c0',
'0xff12b1e18bca6906208368d3572f6bc8c1ea638621c4a448424e1a190ad2aadd',
'0x3e6d67361b3762a2b0a15cf3af86681bbead5ee282c19dab5fa96df5b398685b',
'0x6bd935f8dcbd319861b13f1c0283d699b454bb20b5492393fec71ba6bc67d8a7',
'0x5bcf6be70e14ef138cb6f686163cf19406f943312679f1ae3f9573f0205dcdb9',
],
signature:
'0x024b59cfea5eb55326cff17f298d653620a266c5bc5343e468b758e0b9da227034e094c5951b43ffaf25f932ea37206ba64f531580d124f2e2da0b5b6765dbed1b',
chunkAddr: '0x75b264c6c8b631a3ec54893750c19c5c4633bc636c153ec3513e05ff0a84a6e5',
'0x0d683b47c584585f00462c943c745d317d6354841b5fa78e8f50793e01e0f0ee7f6cb4a320e45382b92ecdbe6e3db380e309ce1279c8b15a2ab6e09a94f752f21c',
chunkAddr: '0x724fc91ed7318f5c04ce30d33cc9444eb4937974285af8cbc87097a40edccd09',
postageId: '0x5bee6f33f47fbe2c3ff4c853dbc95f1a6a4a4191a1a7e3ece999a76c2790a83f',
index: '0x000075b200000000',
timeStamp: '0x178508b4e21d0347',
index: '0x0000724f00000023',
timeStamp: '0x178551f31887a7e0',
socProofAttached: [],
},
proofLast: {
proofSegments: [
'0x0030191b23a393472f6e8b705a0f466d1e2cb3cfc7fea18bcce998570cc7bd1d',
'0xed1021627c2cc8ad5899501ab8871b878f347aa19963bcbd07c7ecf937d9dde5',
'0x8078b6f8ffb6ddf718f3ab214a6bad16a18759d57de40da136e808d28ce39879',
'0x3c277c2b5a7254ae0b1782c53fa106337d7b43b052c015de76ce431decf9b57f',
'0xd4cfd733bcb68b4313d8cc4b4b03915ddbe9910d3c766e534fa2443c10cebc10',
'0x0000a386b3d729becb0f7c5a938eff58dc4c5b45cb48876c0aabe38b3ec61511',
'0x13b90286a980a173a93f8d99f91eceaa5cfba622b787d7e47d799c93b728d8f0',
'0xe9d29a6a168d71c4601b5a03f0250ffff95dea7a89a0eeea57270fc14b5e28f0',
'0xbb651df2741f07c6aed8a68af8d08c32ab556bb05403473dc6ab3d0d68087785',
'0x931e95ed8ea3efe7c961602b8b7888b59947124f190da163b85246c1d8dc28bc',
'0x0eb01ebfc9ed27500cd4dfc979272d1f0913cc9f66540d7e8005811109e1cf2d',
'0x887c22bd8750d34016ac3c66b5ff102dacdd73f6b014e710b51e8022af9a1968',
],
proveSegment: '0x5d9c8dcff9a571a8c3304010c7011a794d299b901bc12f72d6aa219c99fceebd',
proveSegment: '0x7cfd4723785c35784b3a9fc7e9627e05b4ba2d175bb27cc36457c5abfa3487b7',
proofSegments2: [
'0xb8f3ac13eaff37d8e9e7d865927f5713949d5eca64cf6648fa57362a075cae18',
'0x87f80f5a9c85febb20ac68b1800815b2d749ddc548a1c7a6ff292cdadeee90c7',
'0x071c75d3c507d0a2ca66a4df922fe745d25c1a1805e326d53c09353c47715296',
'0x63f421c31406f73f9b7f95553bada7a98e8e63c416f882d6f3a5954b4d15f8f4',
'0xbd5e90862c992de772c29bc3fc364d28f896c1a07e4e0c64d5079d8ba1f4bd95',
'0x0af8c1a984a28b313dccbb033dcd1c52ac1e5b7df44b340145d5a2cca15bed8b',
'0x6efcb13d6c32305f4d19170f3bda0d8a58b52d0292baefdbdf39df1752205d36',
'0x09b6a9039fd92221244a46d66c5daa640ce2b4df4d8664c60393c006c8466241',
'0x926473068fb33428e2ba2b5ef06a4030f7d28840b3f6c39ff39e5c29c3c3d572',
'0xe280f788a94a73ba383aef1a375ce551c50397457631b7f192a094cf93754df2',
'0x7cae69170533f9610e78b1872811feb26765bedef8194232d1f83b3d6c4f0550',
'0x45603497bee8141ce3a62fe57500d1857e4c9be9c88a435e688f9d79031ac200',
'0xa5d5238098387e9fb8a0d2f834f06e32a941949cc8981e7001b4f237540dc72d',
'0x66854bd0e7aecd6abbe45b5f65944b54cc2cf6162ea821d03c1a766997d047ba',
],
proveSegment2: '0xf361d6adb24c28b2777d5aee17e7d635e233d69c59e64c262b45a417a37b62da',
proveSegment2: '0x318aa90994bc17e443e67fd083d8ab251c1d17ced4e8ab983ddf02890d002605',
chunkSpan: 4096,
proofSegments3: [
'0xb8f3ac13eaff37d8e9e7d865927f5713949d5eca64cf6648fa57362a075cae18',
'0xd0a7e1e8903b34f997c38e3e8a2209f62f0f889b91443c6840c89ce25b943e71',
'0x6db9ca410bead525b621b743be91376248e9de420e641cbbcff98f3f0912d393',
'0x1cc700ee5637d929139af746e0a6b5cec845a5b0bfc36f3c5e9ca35dfe2bf010',
'0x54ec39d621b684b93438b1cb3679160415efc4be6858df32de5695311ae80c32',
'0xc03a29ad6ee0dcb5a0135686582265e12222c96837c34a5769e1e5e820f7b7ac',
'0x39980c5c5ea0d97b339591afcbbdfbb6fe962e558ed67e63f87f5492ff4ce1f8',
'0x09b6a9039fd92221244a46d66c5daa640ce2b4df4d8664c60393c006c8466241',
'0x1243fc9df50961e8024851eb386470b4fe740a696c4dc5f06ac3ae268abaaf93',
'0x1a3bb6274281c057e5c5cf67316a36919c7796dc2db102137f936b7641cbe1ff',
'0x43047f57784dc25563f3049ebf918d8a8da731a2c98c6d8ea1883dc0a3e815b2',
'0x4a28eaa92b6b420cfd863f49e69ce3399f239d4c708a9747f7fdf2d4435605e4',
'0x4f3dd2aad4e6357ebc9d0bec8107601b7203dd32c279036a37b1823f976d3172',
'0xfe68d10d01f82c29eb44448659fed31a5f89d49dc7a553f23be89cc67d5bdece',
],
signature:
'0x402322d1afe878297398a608013822f11bc96330c6a32dadae5753f12eacdddf599159d33aee624de233a14a3ff0f8efca03f69729e1b82c28dcdb7d07740e771b',
chunkAddr: '0x5d9c8dcff9a571a8c3304010c7011a794d299b901bc12f72d6aa219c99fceebd',
'0x185e49bdb4c3a50178d8e14da8f402b0df7f7608b6658e92e6e0c2dc1a653e7c14e8e9d4ccd743019ed78bf6ad1733f065ec7540f717dea4d0ae389bb15bc2841c',
chunkAddr: '0x7cfd4723785c35784b3a9fc7e9627e05b4ba2d175bb27cc36457c5abfa3487b7',
postageId: '0x5bee6f33f47fbe2c3ff4c853dbc95f1a6a4a4191a1a7e3ece999a76c2790a83f',
index: '0x00005d9c00000001',
timeStamp: '0x178508219c662f7c',
index: '0x00007cfd00000020',
timeStamp: '0x178548a18495b42a',
socProofAttached: [],
},
};
1 change: 0 additions & 1 deletion test/util/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ type AwaitedTransaction = ContractTransaction & {
blockNumber: number;
};


/** returns byte representation of the hex string */
export function hexToBytes(hex: string): Uint8Array {
if (hex.startsWith('0x')) {
Expand Down

0 comments on commit f97b6a7

Please sign in to comment.