nim-codex/codex
Dmitriy Ryajov 72da534856
Wire sampler (#676)
* Setting up testfixture for proof datasampler

* Sets up calculating number of cells in a slot

* Sets up tests for bitwise modulo

* Implements cell index collection

* setting up slot blocks module

* Implements getting treeCID from slot

* implements getting slot blocks by index

* Implements out-of-range check for slot index

* cleanup

* Sets up getting sample from block

* Implements selecting a cell sample from a block

* Implements building a minitree for block cells

* Adds method to get dataset block index from slot block index

* It's running

* splits up indexing

* almost there

* Fixes test. Implementation is now functional

* Refactoring to object-oriented

* Cleanup

* Lining up output type with updated reference code.

* setting up

* Updates expected samples

* Updates proof checking test to match new format

* move builder to own dir

* move sampler to own dir

* fix paths

* various changes to add support for the sampler

* wip sampler implementation

* don't use upraises

* wip sampler integration

* misc

* move tests around

* Various fixes to select correct slot and block index

* removing old tests

* cleanup

* misc

fix tests that work with correct cell indices

* remove unused file

* fixup logging

* add logscope

* truncate entropy to 31 bytes, otherwise it might be > than mod

* forwar getCidAndProof to local store

* misc

* Adds missing test for initial-proving state

* reverting back to correct slot/block indexing

* fix tests for revert

* misc

* misc

---------

Co-authored-by: benbierens <thatbenbierens@gmail.com>
2024-01-17 11:24:34 -08:00
..
blockexchange Wire sampler (#676) 2024-01-17 11:24:34 -08:00
contracts bump ethers, remove upraises from callbacks (#664) 2024-01-09 15:51:34 +11:00
erasure Contracts handler (#672) 2024-01-15 08:45:04 -08:00
manifest Build slots (#668) 2024-01-11 08:45:23 -08:00
merkletree Build slots (#668) 2024-01-11 08:45:23 -08:00
purchasing Build slots (#668) 2024-01-11 08:45:23 -08:00
rest Build slots (#668) 2024-01-11 08:45:23 -08:00
sales Wire sampler (#676) 2024-01-17 11:24:34 -08:00
slots Wire sampler (#676) 2024-01-17 11:24:34 -08:00
stores Wire sampler (#676) 2024-01-17 11:24:34 -08:00
streams Reverts logging-proxy, commit 27f585eb6f (#660) 2023-12-20 13:24:40 +11:00
utils Wire sampler (#676) 2024-01-17 11:24:34 -08:00
blockexchange.nim Change every dagger to codex (#102) 2022-05-19 13:56:03 -06:00
blocktype.nim Build slots (#668) 2024-01-11 08:45:23 -08:00
chunker.nim Reverts logging-proxy, commit 27f585eb6f (#660) 2023-12-20 13:24:40 +11:00
clock.nim feat: update expiry when data downloaded and slot filled (#619) 2023-11-22 10:09:12 +00:00
codex.nim Contracts handler (#672) 2024-01-15 08:45:04 -08:00
codextypes.nim Build slots (#668) 2024-01-11 08:45:23 -08:00
conf.nim Rework merkle tree (#654) 2023-12-21 06:41:43 +00:00
contracts.nim feat: contract address management (#405) 2023-05-03 09:24:25 +02:00
discovery.nim Reverts logging-proxy, commit 27f585eb6f (#660) 2023-12-20 13:24:40 +11:00
erasure.nim Improving proc/func formatting consistency (#454) 2023-06-22 08:11:18 -07:00
errors.nim Build slots (#668) 2024-01-11 08:45:23 -08:00
formats.nim Reverts logging-proxy, commit 27f585eb6f (#660) 2023-12-20 13:24:40 +11:00
indexingstrategy.nim Wire sampler (#676) 2024-01-17 11:24:34 -08:00
manifest.nim Update multicodecs (#665) 2023-12-22 13:04:01 +01:00
market.nim chore: improve log information (#656) 2023-12-19 04:29:18 +00:00
merkletree.nim Build slots (#668) 2024-01-11 08:45:23 -08:00
namespaces.nim Blockexchange uses merkle root and index to fetch blocks (#566) 2023-11-14 13:02:17 +01:00
node.nim Wire sampler (#676) 2024-01-17 11:24:34 -08:00
periods.nim Validator (#387) 2023-04-19 15:06:00 +02:00
purchasing.nim Storage/purchases endpoint (#609) 2023-11-13 11:30:27 +00:00
rng.nim track latest nim-libp2p's master branch (#248) 2022-11-02 11:40:28 -06:00
sales.nim Wire sampler (#676) 2024-01-17 11:24:34 -08:00
slots.nim Wire sampler (#676) 2024-01-17 11:24:34 -08:00
stores.nim Rework merkle tree (#654) 2023-12-21 06:41:43 +00:00
streams.nim adding AsyncStreamWrapper (#110) 2022-06-14 09:19:35 -06:00
systemclock.nim Blockstore maintenance (#347) 2023-03-08 16:04:54 +01:00
units.nim Update multicodecs (#665) 2023-12-22 13:04:01 +01:00
utils.nim Rework merkle tree (#654) 2023-12-21 06:41:43 +00:00
validation.nim Reverts logging-proxy, commit 27f585eb6f (#660) 2023-12-20 13:24:40 +11:00