Expand description
Qualia-native WebTorrent seeder — HTTP web seeds for Permissive Commons
.q42 volumes and legacy .c.q42 ontology artifacts.
This is Commons ICN transport, not a dump of every Q42 file. Unified .q42
volumes are classified before they enter the registry: Sanctuary, medical,
bilateral, mixed, and unmarked personal volumes are refused. They travel
on SocialWebNet (pairwise DID / WireGuard) or stay local.
Browser WebTorrent clients leech via the ws= magnet parameter pointing at
/torrent/webseed/{info_hash}. One file, one SHA-1 info-hash. A Q42 volume
set publishes the root plus each child as its own magnet.
Structs§
Functions§
- build_
magnet_ uri - Builds a
magnet:?xt=urn:btih:URI with display name and aws=webseed pointing at the local daemon. - deprecate_
seed - Marks the seed deprecated;
truewhen it existed. - ensure_
magnet_ webseed - Returns
magnetunchanged when it already carries aws=webseed; otherwise builds one viabuild_magnet_uri. - get_
bandwidth_ policy - Current bandwidth policy.
- list_
active_ seeds - All currently active (non-deprecated) seed records.
- lookup_
seed SeedRecordforinfo_hash, orNone.- normalize_
info_ hash - Trims and lowercases a btih info-hash string.
- record_
bytes_ served - Accumulates served bytes for
info_hashin telemetry. - record_
full_ download - Increments the full-download counter for
info_hash. - register_
seed - Validates the file exists, classifies unified
.q42volumes as Commons/Sanctuary bycommons_asserted, and records the seed. - set_
bandwidth_ policy - Replaces the global seeder bandwidth policy.
- sha1_
file - Streams
paththrough SHA-1 (8 KiB blocks) and returns lowercase hex. - sync_
from_ workbench - Reload active seeds from
{storage}/Index/workbench.jsonlon daemon boot. - telemetry
- Snapshot of global seeder telemetry.
- unregister_
seed - Removes the seed for
info_hash;truewhen it existed.