Skip to content
charlesreid1Public

About

DEF CON 34 badge genetics population simulator https://dc34sim.com

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

badge-genetics-sim

A browser simulation of the DEF CON 34 badge's population-genetics system: 10,000+ virtual badges evolving in your tab, plus a widget that can talk to your physical DC34 badge over the QR exchange.

Live at dc34sim.com.

popsim tab: 100×100 evolving population grid with the six-tab strip above and the control panel to the right

Open index.html in a browser. No install, no build step, no camera required.

Want the standalone, browser-native static HTML page so you can tinker with it and run it locally? It lives on the gh-pages branch — view it on GitHub, or grab just that branch with:

git clone -b gh-pages --single-branch https://github.com/charlesreid1/dc34sim.git
python3 -m http.server 8000

Then visit http://localhost:8000.

Tabs

Six tabs, each a different lens on the same genetics core:

  • popsim - evolve a whole population of badges. Click any cell to inspect it.
  • vim gene - edit one badge's genome (a diploid: 2 x 9 bytes) and mint QRs a real badge will accept.
  • skeet - take one diploid and enumerate every gamete it can produce (all 2^5 = 32), then pick one and seal it into a QR for a real badge.
  • eggstraction - non-destructive genome readout of a physical badge: mint nonces, collect the badge's sealed gametes, and reconstruct its diploid from the accumulated statistics.
  • borg - same as popsim, but every mating uses one frozen partner, ROOT.
  • badgecestry - decode one badge's ancestry composition with a two-stage hidden Markov model.

the six-tab strip: POPSIM, VIM GENE, SKEET, EGGSTRACTION, BORG, BADGECESTRY

Any specimen inspector can send its selected badge to vim gene, skeet, or badgecestry, so the tabs compose into a pipeline: evolve a population, pull out an individual, edit it, enumerate its gametes, seal one, then hand the QR to a physical badge.

Docs

  • faq.md - user-facing FAQ, keyed by tab.
  • synthetic-population-genetics.md - the genetics core (haploids, loci, mutation, meiosis, mating).
  • gene-exchange.md - the three-phase QR protocol for talking to a physical badge.
  • borg-genetics.md - the ROOT-partner colony variant.
  • badgecestry.md - the two-stage HMM used for ancestry decoding.
  • skeet.md - the gamete-enumeration tab: genetics primer + physical-badge exchange.
  • eggstraction.md - inverse of skeet: reconstruct a physical badge's diploid from many observed gametes (mutation-aware).

Related repositories

Acknowledgements

  • Huge thanks to Bunnie Huang - creator of the DC34 badge and chip - and to the entire DEF CON 34 badge team, without whom none of this would exist.
  • badgecestry - the two-stage HMM ancestry decoder draws on techniques described in Ancestry.com's U.S. Patent 12,626,778, "Accelerated hidden Markov models for genotype analysis".

License

See LICENSE.

About

DEF CON 34 badge genetics population simulator https://dc34sim.com

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages