fix: pad Poseidon hashv inputs to 32 bytes for syscall compatibility#2373
Merged
ananas-block merged 1 commit intorelease-rustfrom Apr 16, 2026
Merged
fix: pad Poseidon hashv inputs to 32 bytes for syscall compatibility#2373ananas-block merged 1 commit intorelease-rustfrom
ananas-block merged 1 commit intorelease-rustfrom
Conversation
Contributor
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Solana mainnet now enforces all Poseidon syscall inputs to be exactly 32 bytes. Left-pad sub-32-byte inputs inside Poseidon::hashv() right before the syscall/library call. This preserves field element values (leading BE zeros are a no-op) and keeps AsByteVec and #[truncate] backwards compatible. Bumps light-hasher 1.1.0 -> 1.1.1, light-sdk 0.11.0 -> 0.11.1.
cc44cc4 to
0a393e6
Compare
SwenSchaeferjohann
approved these changes
Apr 16, 2026
ananas-block
added a commit
that referenced
this pull request
Apr 16, 2026
…2373) Solana mainnet now enforces all Poseidon syscall inputs to be exactly 32 bytes. Left-pad sub-32-byte inputs inside Poseidon::hashv() right before the syscall/library call. This preserves field element values (leading BE zeros are a no-op) and keeps AsByteVec and #[truncate] backwards compatible. Bumps light-hasher 1.1.0 -> 1.1.1, light-sdk 0.11.0 -> 0.11.1.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Solana mainnet now enforces all Poseidon syscall inputs to be exactly 32 bytes. Left-pad sub-32-byte inputs inside Poseidon::hashv() right before the syscall/library call. This preserves field element values (leading BE zeros are a no-op) and keeps AsByteVec and #[truncate] backwards compatible.
Bumps light-hasher 1.1.0 -> 1.1.1, light-sdk 0.11.0 -> 0.11.1.