Expand description
Canary shard tripwires for distribution compromise detection.
A canary shard is an extra shard planted in a honeypot location. It cannot complete Reed-Solomon reconstruction on its own (not counted in K), but access to it signals that the distribution has been compromised.
Functionsยง
- generate_
canary_ shard - Generate a canary shard that looks plausible but cannot participate in real Reed-Solomon reconstruction.
- is_
canary_ shard - Check whether a given shard is the canary by verifying its data matches
the SHA-256 marker derived from the
canary_id.