---
name: ches-reproducibility
description: Use when recording traces, setups, bitstreams, builds, and randomness for TCHES work so that a rebuttal or a major revision one or two issues later can be served. Does not release.
---

# CHES reproducibility

Use this before the first trace. A major revision may come half a year later, with the probe in another drawer.

Submission page: https://ches.iacr.org/2027/papersubmission.php

## Setup sheet, one per session

Photograph of probe position with a scale. Device id and batch marking. Board changes (capacitors removed, shunt). Clock source, supply. Scope, amplifier, settings as a saved file. Trigger. Temperature, time. Who.

```bash
S=sessions/$(date -u +%Y%m%dT%H%MZ); mkdir -p "$S"
for k in device batch board_changes clock supply probe position scope amplifier bandwidth rate trigger temperature operator; do echo "$k: "; done > "$S/setup.txt"
git rev-parse HEAD > "$S/commit" 2>/dev/null || echo "NO GIT" > "$S/commit"
git status --porcelain 2>/dev/null > "$S/dirty"; test -s "$S/dirty" && echo "LOOK: uncommitted changes"
for f in build/*.elf build/*.hex build/*.bit; do [ -f "$f" ] && (sha256sum "$f" 2>/dev/null || shasum -a 256 "$f"); done > "$S/binaries.sha256"
for t in arm-none-eabi-gcc riscv64-unknown-elf-gcc clang yosys vivado; do command -v $t >/dev/null && { echo "$t $($t --version 2>&1 | head -1)"; }; done > "$S/tools"
echo "fill in $S/setup.txt, add the photograph, keep the scope settings file beside it"; ls "$S"
```

## Binaries are evidence

Keep the exact file which ran on the device. Another compiler version moves a spill to the stack and masks break. The disassembly of the critical routine goes into the repository, and the paper's listing is taken from it.

## Traces

Raw, with metadata per trace: plaintext, key id, masks if known, session, device. HDF5 or Zarr, checksums. Derived sets are built by scripts. Storage for the period of a revision, at least a year. If volume forbids: the sets behind each figure and a random sample of others.

## Randomness

Source of masks on the device. Seeds for simulations. Key list. The positive control session is kept next to the main one.

## FPGA and ASIC

Constraints, seeds, tool version, strategy, reports. All runs, not the best. Netlists for the version that was measured. ASIC: what may be shown by contract.

## Analysis

One command per figure from stored sets. Environment pinned. For learning: splits as files by device, architecture search log, weights.

## Author order and AI

Author list is binding in principle. Put contributions in writing early. AI log with version, prompts, what entered the paper or the code.

## Output

```text
[CHES record] sessions <n>, photographs <n of n>, settings files <n of n>
[Binaries] hashed, disassembly in repository
[Traces] raw <TB>, metadata, kept until <date>
[Positive control] session <id>
[FPGA seeds] <n>, all reports
[Figures] one command each, tested by <who>
[AI log] versions and prompts
```

## Reverify each cycle

- Length of the revision window.
