-
Notifications
You must be signed in to change notification settings - Fork 0
Open
0 / 30 of 3 issues completedOpen
0 / 30 of 3 issues completed
Copy link
Labels
Description
Overview
Implement program-aware preprocessing configuration as defined in RFC-0001.
Problem
Current hardcoded preprocessing defaults (n_triples=10, n_random_shares=20) are arbitrary and can cause silent runtime failures.
Solution
Automatically analyze compiled bytecode to determine preprocessing requirements:
- Count MUL instructions → n_triples = mul_count + 2 (safety margin)
- Apply formula: n_random_shares = 2 + 2 * n_triples
- Allow explicit override via
.with_preprocessing()or CLI flags
Implementation Phases
- SDK Changes (stoffel-rust-sdk) - Sub-issue STO-XXX
- CLI Changes (Stoffel) - Sub-issue STO-XXX
- Documentation (docs) - Sub-issue STO-XXX
Related
- RFC-0001 PR
- stoffel-rust-sdk#1 - Original review comment