Skip to content

v2.1: rounded, trimmed results, reader allowlist, Linux-reproducible enclave - #5

Merged
Dami904 merged 3 commits into
mainfrom
v2.1-privacy
Nov 13, 2026
Merged

Dami904 merged 3 commits into
mainfrom
v2.1-privacy

Conversation

@Dami904

@Dami904 Dami904 commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Live on testnet; this PR brings the site and docs in line.

Enclave (f3173709…, active on OutLayer; standby release enclave-v3)

  • Every new tally commits a trimmed mean rounded to an eighth of a point and the spread rounded to a quarter. Exact results let two colluding funds in a four-fund round solve for the other two marks; rounded, each is a range about a point wide.
  • Rounds committed before rounding are still delivered exactly, as committed.
  • Built by aggregator/build.sh in a digest-pinned Linux container; CI's reproduce job now runs on Ubuntu.

Contract (36e01373…, from d8f5b58, redeployed in place on nema-v2.testnet)

  • Reader allowlist: the council can limit paid reads to approved readers (off by default, up to 128). Free copies for counted funds and their auditors are never limited. No state migration.

Site: rounding explained on the result, a "Who can buy a read" card on the panel, runs of the earlier enclave still accepted as genuine.

Checked: 224 contract, 42 enclave, 10 browser tests; 12 new guards each removed once and caught; live round 3 passed every smoke check (94.375 ± 1.75). SourceScan verification of the new contract build is still to do.

Includes #4 (roadmap and partner docs).

…ract; enclave built in a pinned Linux container

Enclave: every new tally commits a trimmed mean (one mark dropped from each end
from five funds, two from nine) rounded to an eighth of a point, and the spread of
all valid marks rounded to a quarter. Exact results let two colluding funds in a
four-fund round solve for the other two marks; rounded, each is a range about a
point wide. Delivery still serves a round committed before rounding with the
exact result it was committed to. The buyer's copy names its method.

Contract: the council can limit paid reads to readers it approves (AddReader,
RemoveReader, SetReadersOnly; off by default, at most 128 readers). Kept outside
the state struct, so the redeploy needs no migration; new proposal kinds are
appended so stored proposals keep their borsh tags. Free copies for counted funds
and their auditors are never limited.

Build: aggregator/build.sh builds the enclave in a digest-pinned rust:1.96.0
container, so its hash reproduces on any machine with Docker; CI checks it on
Ubuntu. The site accepts runs of the earlier enclave build as genuine.
…lave (f3173709) live; round 3 passed every check

The contract was redeployed in place on nema-v2.testnet; the OutLayer project
runs the new enclave from FastFS with the enclave-v3 release as standby; the
secret lock accepted both builds during the switch and now accepts only the new
one. Round 3 published the rounded, trimmed consensus (94.375 +/- 1.75), and the
free, paid and audit reads, the fund split and the council's pay all checked out.
Roadmap, claims, limitations, threat model and API notes updated.
@vercel

vercel Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
nema Ready Ready Preview Nov 13, 2026 9:19am UTC

@Dami904
Dami904 merged commit afa17f5 into main Nov 13, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant