nim-codex/codex/utils
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
..
addrutils.nim Improving proc/func formatting consistency (#454) 2023-06-22 08:11:18 -07:00
asyncheapqueue.nim Slot queue (#455) 2023-07-25 12:50:30 +10:00
asynciter.nim Wire sampler (#676) 2024-01-17 11:24:34 -08:00
asyncspawn.nim [marketplace] Load sales state from chain (#306) 2023-03-08 14:34:26 +01:00
asyncstatemachine.nim Reverts logging-proxy, commit 27f585eb6f (#660) 2023-12-20 13:24:40 +11:00
digest.nim Build slots (#668) 2024-01-11 08:45:23 -08:00
exceptions.nim [marketplace] Availability improvements (#535) 2023-09-29 14:33:08 +10:00
fileutils.nim Reverts logging-proxy, commit 27f585eb6f (#660) 2023-12-20 13:24:40 +11:00
json.nim Reverts logging-proxy, commit 27f585eb6f (#660) 2023-12-20 13:24:40 +11:00
keyutils.nim Reverts logging-proxy, commit 27f585eb6f (#660) 2023-12-20 13:24:40 +11:00
optionalcast.nim [utils] Add operator `as` for optional casting 2022-10-25 15:10:35 +11:00
poseidon2digest.nim Build slots (#668) 2024-01-11 08:45:23 -08:00
stintutils.nim feat: bigint uses decimal over hex encoding (#452) 2023-06-21 07:46:18 +02:00
then.nim Cancel and wait for asyncstatemachine futures when stopping (#493) 2023-07-31 15:09:34 +10:00
timer.nim Rework merkle tree (#654) 2023-12-21 06:41:43 +00:00
trackedfutures.nim Reverts logging-proxy, commit 27f585eb6f (#660) 2023-12-20 13:24:40 +11:00