Skip to content

ivanss-git/dnarchive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dnarchive

DNArchive simulates DNA-inspired archival storage. It encodes binary data into constrained DNA base sequences and decodes them back into the original data with integrity verification.

The project emphasizes correctness, modular design, and extensibility rather than biological accuracy.


Current Features

  • Bit-to-DNA base mapping (2-bit bijection)
  • Byte-level DNA encoding and decoding
  • One’s-complement checksum for data integrity
  • DNA sequence constraint validation
  • Versioned packet format abstraction
  • Runtime CLI sanity checks
  • Unit tests using pytest

Goals

  • Explore DNA-based data encoding concepts
  • Practice systems-style design (formats, packets, validation)
  • Build a clean, testable, extensible codebase
  • Emphasize correctness and separation of concerns

Status

Core encoding, decoding, packet formatting, and integrity checks are implemented and tested.
The project is stable at the component level, with planned expansion for error modeling, redundancy, and higher-level simulations.


Project Structure

  • archive.codec.mapping — canonical bit/base mapping
  • archive.codec.encoder — bytes to DNA encoding
  • archive.codec.decoder — DNA to bytes decoding
  • archive.codec.constraints — sequence validation
  • archive.codec.checksum — integrity computation and verification
  • archive.codec.format — packet structure and versioning
  • archive.cli — runtime demonstrations and sanity checks
  • tests/ — unit tests mirroring implementation modules
  • scripts/ — development helper scripts

Running Tests

./scripts/run_tests.sh

Running Runtime Checks

./scripts/run_checks.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors