Skip to content

Move usecases to ZeroJ 0.1.0-pre14, JuLC 0.1.0-pre22, CCL 0.8.0-pre8 - #13

Draft
satran004 wants to merge 2 commits into
mainfrom
build/zeroj-pre14-julc-pre22
Draft

satran004 wants to merge 2 commits into
mainfrom
build/zeroj-pre14-julc-pre22

Conversation

@satran004

Copy link
Copy Markdown
Member

Moves every usecase to the next release set: ZeroJ 0.1.0-pre14, JuLC 0.1.0-pre22 and cardano-client-lib 0.8.0-pre8.

Merge after ZeroJ 0.1.0-pre14 is published. CI resolves ZeroJ from published repos. Until pre14 is out, the ZeroJ dependency won't resolve, and the four updated negative tests rely on pre14's builder range checks.

Includes #11 (commit f5ccbea, cherry-picked unchanged). It replaces blst-java with Bls12381Codecs, which is required because ZeroJ ADR-0062 removed blst-java. #11 can be closed once this PR merges.

Changes

  1. blst-java removal (Compress Groth16 points without blst-java (ZeroJ ADR-0062) #11): the ProofCompressor classes in identity-kyc, nft-ownership, personhood-airdrop and selective-disclosure now use Bls12381Codecs. The account-ownership ProofCompressorTest now checks py_ecc known answers.
  2. JuLC pre22 JULC0012: the compiler rejects switch arms of different types (PlutusData vs PlutusData.IntData). The inlineDatum helpers in 8 validators now return a shared PlutusData local, and script behaviour is unchanged. Affected validators:
    • OwnershipProofValidator
    • DppPassport
    • CreditGatePolicy
    • ChainLib
    • SolvencyVault
    • VoteZkMintingPolicy
    • ReserveAttestation
    • BbsKycClaimValidator
  3. ZeroJ pre14 input range checks: the typed Inputs builders now throw IllegalArgumentException before witness generation.
    • Four negative tests now assert that exception: DPP ClaimCircuitTest, pedersen NoteCircuitTest and SolvencyCircuitTest, and voting BallotCircuitTest.
    • Each test still checks that the circuit refuses the out-of-range value when the builder is bypassed through the raw witness map.
  4. CCL pre8 bignum encoding: large integers in PlutusData are now tag 2 plus a definite-length bytestring, where pre5 used an indefinite-length one. Both forms decode to the same value. proof-of-reserves/src/test/resources/customer-check-fixtures.json was regenerated with RESERVES_REGENERATE_FIXTURES=true, and only the inlineDatum hex changed.
  5. Version pins updated:
    • version.properties
    • gradle/usecase-versions.gradle (fallbacks)
    • account-ownership/cli/build.gradle (defaults)
    • the CLAUDE.md version table

Verification (local, Yaci DevKit running)

The run used ZeroJ main 362744e, published to mavenLocal as 0.1.0-pre14-362744e-SNAPSHOT. It was run with --rerun-tasks -Dkyc.e2e=true plus frontend builds where present, the same as CI.

  • Builds: all 14 pass.
  • Tests: 363 run, 0 failed, 4 skipped. The skips are account-ownership opt-in tests.
  • E2E: all 13 DevKit E2Es run and pass (usecase-ci.py check-e2e).
  • Frontend: the proof-of-reserves frontend tests pass, 31/31.
  • Resolved versions: zeroj-api 0.1.0-pre14-362744e-SNAPSHOT, julc-stdlib 0.1.0-pre22, cardano-client-core 0.8.0-pre8.
  • account-ownership FlowsE2ETest (opt-in, -Daor.e2e=true): passes. It produces 9,951,996 constraints, with the same circuit fingerprint as the November benchmark.

pedersen-commitments takes about 20 minutes locally. On #11, its CI job hit the 60-minute job timeout. If that happens again here, the timeout needs raising.

🤖 Generated with Claude Code

satran004 and others added 2 commits November 22, 2026 12:55
ZeroJ ADR-0062 drops the transitive foundation.icon:blst-java dependency in
favour of an FFM binding, so code that imports supranational.blst no longer
compiles against the next ZeroJ release.

- identity-kyc, nft-ownership, personhood-airdrop, selective-disclosure:
  ProofCompressor compresses through Bls12381Codecs instead of
  P1_Affine/P2_Affine. Output bytes are identical; the decode also checks
  subgroup membership.
- account-ownership: ProofCompressorTest compared against blst-java's
  compress(); it now checks independent py_ecc 8.0.0 known answers for
  [k]G (k = 1, 2, 3, 7, 42, 12345, 987654321) and infinity on G1 and G2.

Bls12381Codecs is in ZeroJ 0.1.0-pre13, so this works on the current pin
and on the post-ADR-0062 snapshot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MJrQUCDE5qGWa2qBzneFXL
Version pins: version.properties, gradle/usecase-versions.gradle fallbacks,
account-ownership/cli/build.gradle defaults and the CLAUDE.md table.
JuLC pre22's julc-cardano-client-lib needs CCL pre8 (RawTx).

JuLC pre22 (JULC0012) rejects switch expressions whose arms have different
types. The inlineDatum helpers in 8 validators returned PlutusData from one
arm and PlutusData.IntData from the others; they now share one PlutusData
local. Script behaviour is unchanged.

ZeroJ pre14's typed Inputs builders range-check values up front and throw
IllegalArgumentException before witness generation. Four negative tests
(DPP ClaimCircuitTest, pedersen NoteCircuitTest and SolvencyCircuitTest,
voting BallotCircuitTest) now assert that, and still check that the circuit
itself refuses the value when the builder is bypassed through the raw
witness map.

proof-of-reserves customer-check-fixtures.json regenerated: CCL pre8 encodes
big integers in PlutusData as tag 2 + a definite-length bytestring instead
of an indefinite-length one. Both decode to the same value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant