Skip to main content

Module canary

Module canary 

Source
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.