ZERYNEX
Documentation/Core concepts/Zallet PCZT handoffs
CORE CONCEPTS / WALLET AND RPC ENGINEERS

Zallet PCZT handoffs

Locally handle Zallet-style base64 PCZTs; live Zallet RPC still needs validation.

Zallet PCZT handoffs: local policy checks

Zerynex checks selected Zcash PCZT disclosure rules between transaction creation, proving and signing. Zallet's official RPC documentation describes a PCZT workflow with pczt_create, pczt_inspect, pczt_prove, pczt_sign, pczt_combine and pczt_extract. These RPC methods return/accept PCZTs in base64-encoded transport formats.

Sources:

Install locally, without a hosted service

Option A: clone the source and build the Rust CLI:

EXAMPLE
git clone https://github.com/Oluwa-Laughter/zerynex.git
cd zerynex
cargo build --locked --release

Option B: install CLI into your Cargo home, directly from this repository:

EXAMPLE
cargo install --git https://github.com/Oluwa-Laughter/zerynex --locked --bin zerynex

No Node package manager, browser, paid account, Zcash wallet or API key is needed to perform local PCZT policy linting.

Direct from Zallet's base64 transport

If a developer already holds the base64 PCZT locally in a protected file:

EXAMPLE
zerynex path/to/synthetic.pczt.b64 --input-format base64 --deny-transparent --json

For locally controlled processes, write the base64 to the CLI's standard input:

EXAMPLE
cat path/to/synthetic.pczt.b64 | zerynex - --input-format base64 --deny-transparent --json

This keeps PCZT text out of shell command arguments (and typically shell history). Do not paste a real PCZT into a command, shared terminal log, bug report, LLM prompt or public CI run.

The binary format remains the default:

EXAMPLE
zerynex path/to/synthetic.pczt --deny-transparent --json

Both paths are checked by the same Rust core with the same policy. The input size limit is 8 MiB decoded. No conversion service exists.

Python applications and wallet test suites

The Python adapter can analyze a Zallet-style base64 string directly from a trusted application memory buffer:

EXAMPLE
from zerynex_py import ZerynexClient, Policy

client = ZerynexClient(cli="/absolute/path/to/zerynex")
# pczt_base64 comes from your trusted local application, not an AI agent.
report = client.analyze_base64(
    pczt_base64,
    Policy(deny_transparent=True),
)
print(report.agent_summary())

The string is passed to the Rust CLI over stdin. The Python wrapper never creates a temporary file or makes an RPC request.

TypeScript/Node.js: consume base64 without RPC or temporary files

The npm tarball now exposes client.analyzeBase64() and client.compareBase64Stages() on the same canonical Rust/WASM-backed client. These accept strict, canonical, padded RFC 4648 base64 strings obtained from your own trusted Zallet integration. There is no implicit RPC request, wallet connection or transaction upload:

TYPESCRIPT
import { createBrowserZerynexClient } from '@zerynex/sdk/browser'

// In a trusted application process, obtain the opaque PCZT from your own
// Zallet RPC client. Do not publish it in browser HTML or logs.
const client = createBrowserZerynexClient({ wasm: trustedWasmBytes })
const policy = { profile: 'external_signer', deny_transparent: true }
const report = await client.analyzeBase64(pcztBase64FromTrustedApp, policy)
if (report.findings.length > 0) {
  console.log(report.findings.map(({ rule, field }) => ({rule, field})))
}

// Only after your own prover/signer work: compare two local PCZT snapshots.
const regression = await client.compareBase64Stages(
  priorPcztBase64, nextPcztBase64, policy,
)
if (!regression.no_new_findings) {
  console.warn(regression.added_findings)
}

Both methods honor the same 8 MiB decoded size limit (and smaller per-application maxInputBytes). Base64 whitespace, URL-safe variants, missing/incorrect padding, nonzero unused bits and invalid symbols are rejected before the engine loads. They use sanitized error codes and do not include source bytes in reports. The SDK runs only local analysis and has no spend authority. The package is tested as a real installed npm tarball against synthetic upstream-PCZT-crate fixtures, not a live Zallet producer. Do not pass private PCZTs through browser URLs, analytics, public logs or AI prompts.

Why an extra pre-signing check?

Zallet's pczt_inspect reports a human-readable summary based on information recorded in the PCZT, but the upstream docs warn the contents are not cryptographically verified at inspection time. A PCZT received from another party may have altered outputs or metadata. Zerynex adds explicit, repeatable disclosure rules before or after role handoffs. It does not replace Zallet's inspection, wallet approval, proof verification or signatures.

Use cases to test in your own trusted environment:

  1. Examine the PCZT after pczt_create using a role-appropriate policy.
  2. Verify the PCZT's disclosure policy before handing it to another party.
  3. Run the same rule set on the PCZT after a prover or signer has contributed.
  4. Compare findings, and separately review outputs, amounts and signing authority with the wallet's own pczt_inspect and safety policies.
  5. Only authorize the transaction in your wallet after independent review.

These are integration patterns, not a claim that Zerynex calls Zallet RPC or verifies a full live wallet lifecycle.

The release-pinned Zallet RPC evidence verifies the published beta.3 method/parameter signatures independently of the synthetic fixtures. It does not yet validate an actual Zallet-generated PCZT or wallet signer handoff.

Tests and next interoperability gate

Our tests generate harmless v6 PCZT fixtures with the upstream Rust pczt crate, transport them through base64 and stdin, and confirm that the Rust and Python integrations report identical policy violations. Neither wallet credentials nor sendable transactions are involved.

A full Zallet RPC integration suite would require disposable testnet/regtest wallet fixtures and live pczt_create/prove/sign/extract compatibility tests. It has not been completed. Zerynex does not sign, broadcast, generate proofs, authorize spends or validate cryptographic proofs.

Check locally supplied Zallet producer fixtures

The installable zerynex-zallet-fixture-check command is an offline, opt-in bridge toward producer compatibility evidence. The repository script scripts/check_zallet_pczt_fixture.py invokes the same packaged code. In a disposable, locally controlled Zallet v0.1.0-beta.3 environment, save only nonspendable PCZT output from your own pczt_create test as a canonical base64 .b64 file. Do not use a real wallet or copy a private PCZT into this repository. Record the SHA-256 of the exact base64 file and the policy findings expected at the handoff.

Place a manifest.json beside the .b64 file:

JSON
{
  "version": 1,
  "producer": {
    "release": "v0.1.0-beta.3",
    "commit": "987382f67e622915228686e9f956c6a9c9a7514c",
    "origin": "locally-supplied-zallet-output"
  },
  "cases": [
    {
      "file": "created.b64",
      "sha256": "REPLACE_WITH_64_LOWERCASE_HEX_DIGITS",
      "deny_transparent": true,
      "expect": []
    }
  ]
}

Use sha256sum created.b64 to obtain the digest, then run:

BASH
cargo build --locked --bin zerynex
python3 -m pip install ./packages/python
zerynex-zallet-fixture-check \
  --manifest /protected/local/manifest.json --cli ./target/debug/zerynex

The runner checks the digest, canonical base64, bounded size, and exact rule/field findings. Exit 0 means expectations matched, 2 means they did not, and 1 means invalid input or analyzer failure. Output contains case numbers, counts, and rule IDs only; it omits fixture paths and PCZT bytes. The manifest's producer origin is author asserted, not authenticated by this tool. CI tests both the repository script and an independently installed Python wheel against synthetic, nonspendable PCZTs only. A passing local fixture check is evidence about those supplied bytes, not proof of a running Zallet RPC handoff or signer/prover behavior.

Check the upstream RPC shape without invoking the wallet

Developers can use the offline RPC contract checker to compare a protected local rpc.discover response against a documented PCZT method contract, including an optional check for new required parameters. This is structure-only compatibility detection and does not call Zallet or provide authorization, proof or signing verification.

Offline role fixture testing before wallet integration

The separate zerynex-handoff executable provides synthetic Creator, Updater, Combiner and Redactor policy scenarios without provisioning Zallet. Read docs/handoff-harness.md. This does not establish compatibility with real Zallet RPC, signing, proving or extraction.

Public guides document shipped APIs and clearly identify partial integrations. Internal design, deployment and research notes remain in the source repository. Documentation index