fix: adopt Sapling recipient validation and JNI regressions

Draft
FE
1d ago
+1328-36

Pin Rust to 88c01cfc29064c379e44637ff6235b1d91134dc7 to 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:

  • Both new regression cases passed against normal release JNI, using SDK fixtures and separately java-tron's production parameters.
  • The rejection test fails against the previous normal release JNI.
  • 35 existing SDK tests passed.
  • Seven node tests passed with both old and rebuilt JNI, including both transaction builders, ordinary encryption/decryption and historical ciphertext reading.

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: https://github.com/tronprotocol/librustzcash/pull/18 and https://github.com/tronprotocol/java-tron/pull/7133.