REPOSITORY CODING · MEDIUM
Multiply and invert bytes in GF(256) using polynomial 0x11d, preserving zero multiplication and exact field identities
Multiply and invert bytes in GF(256) using polynomial 0x11d, preserving zero multiplication and exact field identities. Trace the native model, algorithm services, repository snapshot and HTTP preview. Repair the incident while preserving the other contracts. All explicit fixtures and mandatory regression groups are available with bash test/run.sh.
erasure-codingReed Solomon shard recovery laboratory
Work through a real codebase.
Choose an environment, investigate the existing implementation and use the tests to check your change. Sign in to open a workspace; execution and Ono usage follow your plan’s allowances.
Task requirements and environments
Django · 55 minute session
- Multiply and invert bytes in GF(256) using polynomial 0x11d, preserving zero multiplication and exact field identities.
- Make the first k generator rows systematic and recover from the actual indices of any k verified shards, including parity-only selections.
- Trim recovered data by the saved original byte length, retaining intentional trailing zero bytes, and roll back failed shard mutations atomically.
- At most thirty-two data bytes, k from one through five and n from k through eight. Missing shard values are removed; corrupted shards fail their saved hashes and count as erasures. Reconstructed bytes must match the saved digest. Native SQLite/Django transactions persist tenant-scoped codewords; no external storage service is used.
Flask · 55 minute session
- Multiply and invert bytes in GF(256) using polynomial 0x11d, preserving zero multiplication and exact field identities.
- Make the first k generator rows systematic and recover from the actual indices of any k verified shards, including parity-only selections.
- Trim recovered data by the saved original byte length, retaining intentional trailing zero bytes, and roll back failed shard mutations atomically.
- At most thirty-two data bytes, k from one through five and n from k through eight. Missing shard values are removed; corrupted shards fail their saved hashes and count as erasures. Reconstructed bytes must match the saved digest. Native SQLite/Django transactions persist tenant-scoped codewords; no external storage service is used.
Python · 55 minute session
- Multiply and invert bytes in GF(256) using polynomial 0x11d, preserving zero multiplication and exact field identities.
- Make the first k generator rows systematic and recover from the actual indices of any k verified shards, including parity-only selections.