fix: reject degenerate Sapling output encryption inputs
Sapling output generation accepted the identity recipient public key and a zero ephemeral secret, both of which yield a public encryption shared secret. Reject these inputs before randomness, circuit construction or proving-state mutation. Compare the decoded point so alternate encodings cannot bypass the check.
The existing boolean ABI and unchanged-output/context contract are preserved. Key agreement, note commitments, historical decryption, Sprout and proof-verification rules are unchanged. A companion java-tron change rejects identity shared secrets before sender-side encryption, covering both transaction builders even with SDK 1.0.0.
This branch builds on #17; the final commit contains only 15 lines in the output prover and its header contract. Its prerequisite commits remain visible until merged.
Validation on macOS x86_64 / JDK 8:
- 26 Rust library tests passed; one existing parameter-fixture test ignored. Normal release Rust/JNI built successfully.
- New real-JNI regressions fail against the previous library and pass with this revision. They cover both identity encodings, order-four and malformed points, zero ephemeral secrets, sentinel outputs, nonempty-context retry, valid proofs and final binding verification.
- Both native regression cases passed with SDK fixtures and with java-tron's production parameters.
- 35 existing SDK tests passed against rebuilt normal release JNI.
- Node sender and historical-reading tests passed with old and rebuilt SDK libraries.
The companion SDK PR pins this commit and carries the JNI regressions. Four-platform release artifacts still require a combined rebuild and final JAR validation.
Companion PRs: https://github.com/tronprotocol/java-tron/pull/7133 and https://github.com/tronprotocol/zksnark-java-sdk/pull/25.