Skip to main content

Module transfer

Module transfer 

Source
Expand description

Bounded content-block transfer under shared receive/storage/verify credit (SVC-01.13 partial).

One ReservationLedger charge covers receive+store+verify (not three). Retries charge that parent again (io/work). Old and new generations each occupy admit credit until the old slot is released. Packages remain open.

Structs§

SuperBlockManifestBridge
Chunk-to-SuperBlock manifest bridge (NET-20 / R08).
TransferTable
Eight-slot table of admitted (manifest, block, generation) transfers.

Constants§

MAX_BLOCKS
Occupied transfer slots this wave (not a swarm).
MAX_BLOCK_BYTES
Per-block byte ceiling (u32). Partial blocks still charge len.
SUPERBLOCK_CHUNKS_MAX
Maximum 16 KiB transport chunks bridging one 40,960-byte .q42 SuperBlock.

Functions§

admit_block
Admit one bounded block. One ledger charge covers receive+store+verify.
admit_block_with_digest
Admit one bounded block with a per-block content digest for verify_block.
admit_manifest_block
Admit using an exact ByteRange from a bound ContentManifest.
block_verified
A block is usable only after verify_block matches authenticated bytes.
manifest_block_range
Exact range for block_index on manifest, if it fits one transfer block.
release_block
Release one generation’s admit reservation. Other generations are kept.
retries_charge_parent
Retries charge the parent ReservationLedger, not a free extra budget.
retry_block
Retry the same (manifest, block_index, generation): charges parent io/work again. Does not allocate a new slot when the slot exists.
shared_receive_storage_verify_is_one_charge
Receive, storage, and verify share one admit charge (not triple-counted).
verify_block
Verify payload against the admitted slot. Uses the admit charge.
verify_chunk_to_superblock_bridge
Verify that each transport chunk matches its SHA-384 digest, the concatenated SuperBlock matches superblock_sha256, and every 48-byte NQuin satisfies 5-field XOR parity (s ^ p ^ o ^ c ^ m == parity) (R08).