Repository navigation
fix: adopt Sapling recipient validation and JNI regressions - #25
Draft
Federico2014 wants to merge 4 commits into
Draft
Federico2014 wants to merge 4 commits into
Federico2014 wants to merge 4 commits into
Conversation
This was referenced Nov 30, 2026
3for
reviewed
Dec 1, 2026
| @BeforeClass | ||
| public static void initialize() throws Exception { | ||
| String path = System.getProperty("recipient.test.library"); | ||
| Assume.assumeNotNull(path); |
There was a problem hiding this comment.
[SHOULD] Make both NativeRecipientTest cases mandatory for the four-platform release build.
Could we run both NativeRecipientTest cases against the normal JNI library that will be packaged in the final JAR on each of the four supported platforms?
Please explicitly set recipient.test.library to the freshly built JNI library and require both test cases to execute and pass on every platform. The release validation should fail if the test report is missing, either test case is skipped, or either test case fails.
This suite does not require a fault-injection build, so it can be included directly in the standard release workflow.
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.
Pin Rust to
88c01cfc29064c379e44637ff6235b1d91134dc7to reject identity recipient public keys and zero ephemeral secrets during Sapling output proving. JNI returns the existing boolean false; Java and native signatures remain unchanged.Add NativeRecipientTest with real initialized parameters: reject alternate identity encodings, order-four/malformed points and zero secrets, preserve outputs, retry a nonempty context, verify valid outputs and the final binding signature. Retain historical commitment and key-agreement behavior. Give the shared test fixture loader empty defaults for its optional properties.
This branch builds on #24; the final commit contains this integration and its tests. Only the mode-160000 Rust gitlink is updated, with no submodule sources copied.
Validation on macOS x86_64 / JDK 8:
Draft for release integration: the four bundled platform binaries are unchanged. Rebuild the combined fixes and verify the final JAR before release. See docs/recipient-validation.md for the opt-in native regression command.
Companion PRs: tronprotocol/librustzcash#18 and tronprotocol/java-tron#7133.