profile: gate the legacy prf fallback on LEGACY_SIGS #195
Loading…
Reference in a new issue
No description provided.
Delete branch "onionwire/t_e31d85e7-gate-profile-prf-legacy-signature-accept"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #193 (t_438331aa).
profile::verifywas the last site still accepting the untagged v1 layout unconditionally.Change
src/profile.rs: the legacy branch is nowv2 || (crate::pay::legacy_sigs() && v1), the same shape asloc::verify. Emit side untouched:profile::signstill tags.tests/app_sig.rs: addslegacy_off_rejects_untagged_prf(untagged rejected with legacy off, tagged still verifies, acceptance returns after the scoped override).legacy_untagged_prf_still_verifiesstays green.docs/PROTOCOL.md: theprfrow now reads "(legacy only)" like the other frames; the "not yet gated" paragraph and the note in theprfsection are gone.No change to the
prftag string, frame layout, or theLEGACY_SIGSdefault (true).Verification
cargo test --locked --target x86_64-unknown-linux-gnu— full suite green (exit 0).cargo clippy --locked --all-targets --target x86_64-unknown-linux-gnu -- -D warnings— green.legacy_untagged_prf_still_verifies... ok,legacy_off_rejects_untagged_prf... ok.Base
#193 is still open, so this targets
onionwire/t_438331aa-close-the-legacy-signature-surface-and-d. Rebase tomainonce #193 merges.Note: the
LEGACY_SIGSdoc comment insrc/pay.rsstill says "(prfis not yet gated)". That file was explicitly out of scope on this card; it is a one-line comment cleanup for whoever touches it next.