Retroactive Grant Application - ZTrace

GitHub application: Retroactive Grant Application - ZTrace · Issue #115 · Financial-Privacy-Foundation/ZcashCoinholderGrantsProgram · GitHub

## Application Owners

@ELLA0VICTOR

## Organization or Individual Name

Ella Victor

## Additional Team Members

None. I developed ZTrace with AI coding assistance, directed the implementation, tested the developer workflow, and published the project and documentation.

## How did you learn about the program?

The Q4 2026 call for proposals on the Zcash Community Forum.

## Requested Grant Amount (USD)

$2,000

## Category

Infrastructure

## Project Summary

ZTrace helps developers find supported paths where private Zcash wallet information reaches application logs, analytics, and network requests. The completed open-source MVP includes a local JavaScript/TypeScript scanner, controlled browser disclosure tests, supported Zcash artifact inspectors, reusable APIs, and public documentation.

## Project Description

ZTrace is an open-source privacy analysis toolkit for developers building applications on Zcash. It helps them find places where their application code could expose private wallet information through logs, analytics, error reports, or network requests. It is designed for JavaScript and TypeScript projects, including payment interfaces, merchant applications, and websites that connect to Zcash wallets.

A shielded payment is only one part of an application’s privacy. The software around it may also handle a user’s address, balance, transaction history, memos, and other sensitive information. An analytics event, debugging statement, or support request can accidentally include that information. As an application grows, the code that reads a value and the code that shares it can end up several functions or files apart, making the connection difficult to spot during review.

ZTrace examines supported paths through the application’s source code and connects those two points. It identifies where sensitive information originates, follows how the application passes or transforms it, and reports where it reaches a disclosure destination. Each finding includes file and line references, the path the information followed, a severity level, and guidance for reviewing and correcting the affected code. Developers can make a change and run the check again to compare the results.

The scanner recognizes selected wallet integrations and common application patterns, including supported React hooks, local helper functions, and asynchronous operations. Its sensitive-data categories include wallet addresses and accounts, balances, transaction history, memos, viewing keys, spending keys, and private transaction-construction data. Its destination models cover selected logging, analytics, error-monitoring, and network APIs.

Developers can configure ZTrace for their own libraries by describing additional sources of private information and the functions that share it. They can also document intentional disclosures through narrowly defined policies specifying the destination, information category, and payload field. This helps teams review whether the information sent by a feature matches its actual purpose.

ZTrace also provides tests for running applications. Developers supply synthetic private values and define the actions that exercise a feature. The tool checks for supported appearances of those values in console output and outgoing network traffic, including HTTP requests and WebSocket messages. Tests can require specific actions and completion checkpoints, giving developers a clearer indication of whether the intended workflow was exercised. The resulting report identifies observed disclosures and records incomplete checks that need attention.

For developers handling sensitive Zcash artifacts, ZTrace includes inspectors for supported Unified Viewing Keys and Partially Created Zcash Transactions, known as PCZTs. Viewing keys can reveal wallet activity, while PCZTs can carry private information used in transaction construction and signing. The inspectors help developers review the viewing capabilities of supported keys and the private fields visible through the supported transaction parser, together with disclosure decisions for different recipient roles.

The toolkit is available through a command-line interface and reusable APIs. Developers can use it while building a feature, reviewing a change, or running automated checks before release. Reports are available as readable terminal output and structured JSON and SARIF files for integration with other development and code-review tools. Source scanning runs locally, keeping the inspected application code on the developer’s device.

The public website provides an interactive scanner example and documentation covering installation, configuration, API integration, testing, disclosure inspection, and troubleshooting. The repository contains the implementation, reproducible checks, benchmark methodology, and verification reports. Reports and documentation identify supported coverage and areas requiring human review so developers can interpret the results in context.

ZTrace is released under the MIT license. Its purpose is to make privacy review a repeatable part of building Zcash applications, helping developers find unnecessary sharing, understand its cause, and check their corrections as the software evolves.

## Technical Approach (how you did it)

The completed implementation separates source analysis, command-line project handling, browser testing, and Zcash artifact inspection into reusable modules. The public implementation history begins with an MVP commit on October 24, 2026, and records documentation, hardening, packaging, and demonstration preparation through October 25. The work covered by this request is the initial implementation at commit 92d78729c8da53c1d36ffe8b6ce2eff21f6db48c. A separately dated November 12 documentation commit adds contribution guidance and its README link.

**Source-analysis engine.** The engine accepts source text and uses TypeScript’s compiler API with bounded data-flow models to connect sensitive wallet sources to disclosure destinations. Supported propagation includes cross-file ES module imports, local function arguments and returns, assignments, object and array fields, selected asynchronous patterns, and common React hooks and event handlers. Findings retain the source, intermediate path, and destination so a developer can investigate the relevant code. The implementation and its coverage reference are public in packages/core and docs/SCANNER.md.

**Wallet and destination models.** Source recognition uses selected import bindings and supported API shapes, including Noir wallet calls, RHEA adapter patterns, and Ledger utility outputs. Destination models include supported console, analytics, error-monitoring, HTTP, and browser transport calls. Configuration accepts additional source and sink adapters, exclusions, and narrow disclosure policies. Policies can match an exact HTTPS origin, path, category, and field, with a reason for intentional sharing.

**Project handling and developer integration.** The CLI discovers supported application files, reads JSON configuration and supported TypeScript path metadata, and invokes the engine locally. It produces readable terminal output and structured JSON and SARIF reports. Reports include recognized-source and model-coverage information, and selected unsupported operations produce review diagnostics. Exit codes distinguish findings from incomplete analysis or execution errors. Scanner, runtime, and protocol exports support integration into development scripts and automated checks.

**Controlled browser tests.** The runtime harness uses Playwright and a fresh Chromium context to exercise a trusted loopback application with explicitly synthetic private values. Test specifications define actions, required data reads, completion checkpoints, and observation limits. The harness looks for supported plain and encoded marker representations in console values, HTTP URLs, headers and bodies, and WebSocket traffic. External requests are blocked. Missing checkpoints, unsupported redirects, and time or resource limits are reported as incomplete execution rather than successful privacy checks.

**Viewing-key inspection.** The revision-0 Unified Viewing Key decoder checks Bech32m checksum, inverse F4Jumble, network padding, canonical component encoding and ordering, and known lengths. It reports the network, full or incoming viewing scope, and recognized components. Upstream encoding vectors are retained with source provenance and licenses. The documented scope is structural decoding and disclosure interpretation.

**PCZT inspection.** The optional @ledgerhq/zcash-utils native parser runs in an isolated child process with time and memory limits. ZTrace reports the private fields exposed by the parser’s signer projection and applies recipient-role disclosure decisions. This supports review of supported transaction-construction artifacts while keeping the limits of the inventory explicit.

**Verification and reporting.** The repository contains core, CLI, protocol, runtime, adversarial, and installed-package integration checks. The synthetic source benchmark includes labeled leaking and safe programs and reports misses as well as detections. The installed-package test builds a separate consumer using the published Noir SDK and checks leaking and corrected application behavior. SARIF output is checked against the retained official schema. Historical reports, benchmark methodology, fixture provenance, and reproduction commands are linked in the evidence section.

**Website, documentation, and contribution process.** The React website provides an interactive source-analysis example and documentation. Its example invokes the same engine in a Web Worker on the displayed fixture source. Guides cover setup, APIs, configuration, coverage, runtime testing, protocol inspection, troubleshooting, and release verification. The November contribution guide documents setup, focused changes, review, testing, attribution, and safe reporting practices using librustzcash’s contribution style guides as a primary reference.

**Scope of the claims.** Source analysis is bounded by its API models and language approximations. Runtime evidence covers the paths and representations exercised. Viewing-key inspection does not establish full cryptographic validity, and PCZT inspection does not provide a complete inventory of every field. Tests were operated by the applicant and automated tooling; independent adoption or security review is not claimed.

## Time Period of Work Completion

October 2026

## Total Budget (USD)

$20 (approximately).

## Budget Breakdown

- Technology/software: approximately $20 for the AI coding subscription used during development.

- Infrastructure/hosting: $0 claimed.

- Services/contractors: $0 claimed.

- Other expenses: $0 claimed.

- Total cash expenses: approximately $20.

The approximately $20 total records my cash expense for the software subscription. The submitted cash-expense budget does not assign a monetary value to my own development and testing work.

I selected $2,000 as a fixed retroactive grant request based on the scope of the completed contribution: the source-analysis engine, CLI and reusable APIs, runtime disclosure checks, supported Zcash artifact inspectors, documentation, and reproducible verification materials. Development and testing took approximately three to four days. This is a proposed value-based award for the initial release, subject to community assessment;

## Previous Funding

No.

## Previous Funding Details

No previous funding from the Zcash Coinholder Grants Program.

## Other Funding Sources

Yes.

## Other Funding Sources Details

ZTrace was submitted to Zecathon, where a potential prize award is pending. As of November 12, 2026, no grant or prize funding has been received or promised. Winners are scheduled to be announced on November 23, 2026. If ZTrace wins any prize in that competition, I will immediately disclose the award and withdraw this grant request to avoid duplicate funding for the same work.

## Success Metrics

**Source-analysis behavior.** The fixed, self-authored synthetic corpus contains 88 programs: 44 leaking and 44 safe cases. Retained results report 42 detected leaks, two misses, and no safe cases flagged using built-in models. Two explicit custom-library adapters cover the two remaining leaking cases in this corpus. The public methodology explains the labels and evaluation. These results describe the corpus rather than production-wide accuracy.

**Regression and boundary checks.** Retained verification records document 96 core/CLI/protocol regression tests, seven runtime regression tests, and 520 deterministic adversarial checks. These records cover supported flows, configuration, reporting, malformed inputs, and execution boundaries. They are historical author-operated results, available with reproduction commands.

**Installed developer workflow.** The package-consumer test installs the packed tool into a separate project using the published Noir SDK, verifies CLI and API entry points, and checks leaking and corrected React source and controlled browser flows. This provides a reproducible integration workflow beyond calling internal functions directly.

**Observed runtime disclosures.** Retained evidence covers console output, HTTP requests, WebSockets, request headers, redirects, and additional value and resource-boundary cases. Required reads and checkpoints make the configured test’s completion part of the result.

**Protocol and output interoperability.** The repository retains eight upstream F4Jumble vectors and 40 upstream viewing-key encoding vectors, with provenance and licensing, plus a synthetic PCZT fixture. Structured code-scanning reports are checked against the retained official SARIF schema.

**Public access and reproducibility.** The website offers a local browser check on the included leaking and corrected source. Public documentation covers installation and integration. The repository retains the implementation, benchmark evaluator, verification evidence, and coverage boundaries. A recorded walkthrough separately illustrates installation, findings, prepared source corrections, and rescanning.

The ecosystem contribution is an MIT-licensed starting point for application developers who want to review private-data paths and automate supported checks. External developer adoption, independent user acceptance, and an independent security audit have not yet been established. I am available to reproduce the public workflow and follow the administrators’ process for intended-user or representative verification before voting eligibility is confirmed.

## Proof of Completion

- Public repository: GitHub - ELLA0VICTOR/ztrace · GitHub

- Initial public MVP commit, October 24: ztrace v1 mvp · ELLA0VICTOR/ztrace@da2dbcb · GitHub

- Completed implementation snapshot: GitHub - ELLA0VICTOR/ztrace at 92d78729c8da53c1d36ffe8b6ce2eff21f6db48c · GitHub

- Architecture and setup: ztrace/README.md at 92d78729c8da53c1d36ffe8b6ce2eff21f6db48c · ELLA0VICTOR/ztrace · GitHub

- Verification index: ztrace/validation/README.md at 92d78729c8da53c1d36ffe8b6ce2eff21f6db48c · ELLA0VICTOR/ztrace · GitHub

- Benchmark methodology: ztrace/benchmarks/METHODOLOGY.md at 92d78729c8da53c1d36ffe8b6ce2eff21f6db48c · ELLA0VICTOR/ztrace · GitHub

- Benchmark results: ztrace/benchmarks/latest.md at 92d78729c8da53c1d36ffe8b6ce2eff21f6db48c · ELLA0VICTOR/ztrace · GitHub

- Installed-package consumer evidence: ztrace/validation/consumer/latest.json at 92d78729c8da53c1d36ffe8b6ce2eff21f6db48c · ELLA0VICTOR/ztrace · GitHub

- Runtime evidence: ztrace/runtime/evidence at 92d78729c8da53c1d36ffe8b6ce2eff21f6db48c · ELLA0VICTOR/ztrace · GitHub

- Adversarial evidence: ztrace/validation/adversarial/latest.json at 92d78729c8da53c1d36ffe8b6ce2eff21f6db48c · ELLA0VICTOR/ztrace · GitHub

- Threat model: ztrace/docs/THREAT-MODEL.md at 92d78729c8da53c1d36ffe8b6ce2eff21f6db48c · ELLA0VICTOR/ztrace · GitHub

- Source coverage and configuration: ztrace/docs/SCANNER.md at 92d78729c8da53c1d36ffe8b6ce2eff21f6db48c · ELLA0VICTOR/ztrace · GitHub

- Runtime usage and boundaries: ztrace/docs/RUNTIME.md at 92d78729c8da53c1d36ffe8b6ce2eff21f6db48c · ELLA0VICTOR/ztrace · GitHub

- Protocol inspection reference: ztrace/docs/PROTOCOL.md at 92d78729c8da53c1d36ffe8b6ce2eff21f6db48c · ELLA0VICTOR/ztrace · GitHub

- Interactive example: ZTrace — Local privacy analysis

- Documentation: ZTrace — Local privacy analysis

- Recorded demonstration: https://youtu.be/ghWRbBAcE_8

- Contribution guide, documentation commit dated November 12: ztrace/CONTRIBUTING.md at ab8c089d42dcc2f9d594027026d0cc332dbc1809 · ELLA0VICTOR/ztrace · GitHub

## Conflict of Interest Disclosure

No known conflicts of interest.