Skip to main content

Module fingerprint

Module fingerprint 

Source
Expand description

Structural fingerprinting for Microscope Memory.

Each block gets a structural fingerprint at index time: Shannon entropy + byte distribution hash. Blocks with similar fingerprints are linked in links.bin — creating “wormholes” between structurally similar but spatially distant blocks.

Binary format: fingerprints.idx (FGP1), links.bin (LNK1)

Structs§

BlockFingerprint
Structural fingerprint for a single block.
FingerprintStats
LinkTable
Link table — mmap-friendly storage of structural links.
StructuralLink
A structural link between two blocks.

Functions§

compute_fingerprint
Compute the structural fingerprint of a block’s content.
fingerprint_similarity
Compute similarity between two fingerprints (0.0..1.0).