Skip to content

feat: Added a feature guard for raw message fallback#203

Open
jCabala wants to merge 1 commit into
mainfrom
fix-undesirable-message-deserialization-fallback
Open

feat: Added a feature guard for raw message fallback#203
jCabala wants to merge 1 commit into
mainfrom
fix-undesirable-message-deserialization-fallback

Conversation

@jCabala

@jCabala jCabala commented Jul 1, 2026

Copy link
Copy Markdown
Member

Feature-guard the raw-byte challenge() fallback behind raw-message-fallback so production builds reject malformed/non-PallasMessage inputs (previously silently signed as Testnet/legacy) while tests keep the permissive path.

We couldn't use #[cfg(test)] because the tests needing the fallback live in other crates that compile mina-tx as a normal (non-test) dependency, so #[cfg(test)] would be inactive there. The feature is enabled only via dev-dependency edges, keeping it off in the real binary.

Ideally we remove this feature guard in the future, but that requires fixing many tests. I added an issue for this - #202

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.

2 participants