Grant Application - Zcash Wallet Spendability Test Kit

Project Summary

A Zcash deposit can confirm even when the receiving wallet cannot spend it. I will build a release test that gives a wallet a transparent deposit from a v5 or v6 transaction, asks it to spend that exact output, and reports either the mined payment or the step that failed.

Project Description

This was my first implementation of a version of this wallet build test, amount and type of receiving address fixed. I had been wondering if changing the version of the incoming transaction would cause the next payment to fail. I have executed six test cases on a private NU7 Zebra test chain running on Windows. I then repeated the test cases using completely new wallets and executed them on a completely new test chain. The “version” label in each case below refers to the version of the deposit transaction..

Software I tested Deposit from a v5 transaction Deposit from a v6 transaction
ShapeShift native signer, source build before the repair Mined twice Failed before signing twice
ShapeShift native signer, source build after the repair Mined twice Mined twice
zecd 0.10.0, built locally from unmodified release source Mined twice Mined twice

The old signer stopped while adding the v6-funded input. Both affected deposits remained unspent. For each of the ten mined payments, I checked that the assigned deposit was the sole input, the intended recipient received 1,000,000 zatoshi, and the fee was 10,000 zatoshi. The original error and the receipt for the same case after the repair can be inspected side by side. Original signer error · Mined payment after the repair

The corrected ShapeShift signer made a v5 payment even when spending a v6 deposit. A release test that varies only the outgoing format would miss the failure I reproduced. My pilot replays fixed builds and its deposits were funded by transparent-only transactions. The grant would let a team select its own compatible build, test a transparent payout from a transaction that also uses Ironwood, and repeat the payment through a publicly distributed consumer wallet.

Proposed Problem

Someone who bought ZEC through NEAR Intents could receive a confirmed payout and still be unable to send or sell that ZEC through the affected ShapeShift wallet. ShapeShift traced the failure to how its signing software read the transaction that funded the deposit. All five NEAR payouts its investigator sampled used v6. A routine test with a v5-funded balance could pass on the same broken signer. ShapeShift merged the repair on November 9 and published mainnet receipts, including a native-wallet spend of a v6-funded payout. ShapeShift investigation, repair and receipts

SwapKit separately fixed a Trezor integration where newer-format Zcash deposits could prevent sends and swaps. A Gem Wallet contributor also described the difficulty of verifying the whole payment flow during an upgrade and asked for a shared integration test. For a developer preparing a wallet release, the missing check is whether a customer can spend one of these payouts with the build about to ship. To answer it, someone has to produce both kinds of deposit, get them into the wallet and verify which coins the next payment actually spent. SwapKit repair · Gem Wallet discussion

Proposed Solution

A developer will select a supported wallet or signer build and run a command against a fresh local chain. The kit will fund a disposable address, wait for confirmation, then ask that build to pay a second address. The report will identify the build, the deposit, the outgoing payment and its block. If the send stops, it will preserve the stage and the original error. A required case that fails will fail the release check.

The historical ShapeShift failure will stay in the kit as a control. A developer can run the old signer as a candidate to see the check catch the regression, then select the corrected build and verify that the same case mines.

Solution Format

An MIT-licensed command-line kit in the existing public repository, with adapters for the ShapeShift native signer and zecd, a CI example, versioned test cases, JSON receipts and an offline verifier. The consumer-wallet trial will have its own guide with the app version, steps and receipts so a tester can repeat it through the published app. Project repository

Dependencies

I will use Zebra in regtest mode, the public ShapeShift signer source and zecd releases, an Ironwood-capable transaction builder, and Windows and Linux runners. For the desktop trial I will use a released wallet that can connect to a local test backend. Zingo PC is my first candidate because I have already connected it to the pilot. The kit can be built and used without an upstream merge, private API or production funds.

Technical Approach

Each direct-spend case gets a fresh wallet with one eligible output. I will record the exact software digest and network settings, then check the input transaction ID and output index, recipient, amount, fee and mined block. This catches a wallet that pays successfully using some other balance. For the new Ironwood case, I will verify that the mined v6 funding transaction contains a nonempty Ironwood bundle and that the receiving signer or daemon subsequently spends its transparent output. An existing regtest example already produces an Ironwood-to-transparent payment. I will use that work to exercise the receiving wallet. ZIP 229 · Ironwood regtest example

For a consumer wallet that requires shielding first, I will fund both fees. I will verify which deposit the shielding transaction consumed, keep the disposable wallet’s record of the intervening step, and confirm the final recipient’s payment. The report will identify this as a two-step payment so readers can see which facts the chain establishes and which come from the test wallet.

Upstream Merge Opportunities

The kit will live in its own repository. A wallet team can copy the CI example or reuse an individual test case. If a run exposes a wallet-specific defect, its receipt can accompany an upstream report. Delivery of the kit does not depend on a maintainer changing a wallet or accepting a patch.

Open Source License

MIT

Hardware/Software Costs (USD)

$0

Hardware/Software Justification

None.

Service Costs (USD)

$0

Service Costs Justification

None.

Compensation Costs (USD)

$12,600

Compensation Costs Justification

180 hours at $70 per hour. I estimate 50 hours for build selection and CI checks, 80 hours for the Ironwood and consumer-wallet payment cases, 40 hours for packaging and clean-system testing, and a 10-hour allowance for post-release maintenance. The completed pilot accounts for $0 of this request.

Total Budget (USD)

$12,600

Previous Funding

No

Previous Funding Details

No response

Other Funding Sources

No

Other Funding Sources Details

No response

Implementation Risks

The main uncertainty is the consumer-wallet flow. In my separate Zingo PC 2.0.29 trial, the app recognized a v5 deposit but showed zero spendable balance and offered shielding. Its quoted shielding fee would have left less than the intended payment amount. The Send screen also rejected the entered recipient, which Zebra accepted. I did not complete shielding or test a v6 deposit in that app. I will retry with enough funds and a recipient supported by the app. If Zingo cannot complete the route, I will use another publicly distributed wallet that supports local testing. A displayed balance or a blocked attempt will not satisfy the milestone. Desktop trial and screenshot

Potential Side Effects

A passing signer test could be mistaken for a result covering an entire wallet, hardware device or exchange. Every result will name the build, network, funding format and interface exercised. The kit will use disposable test wallets and exclude wallet files, seeds and private keys from published evidence.

Success Metrics

  • A developer can switch between two compatible builds without editing the runner. With the v6 spend required, the known broken build fails CI and the corrected build passes.

  • Zebra confirms an onward payment spending the exact transparent output of a mined v6 transaction containing an Ironwood bundle.

  • One unmodified, publicly distributed consumer wallet completes an onward payment for each deposit version. Each result includes the wallet steps and a confirmed recipient payment.

  • The automated suite runs from a clean Windows environment and a clean Linux environment. I will publish both sets of receipts and report first-time setup and repeat-run times separately.

Startup Funding (USD)

$0

Startup Funding Justification

None.

Milestone Details

  • Milestone: 1
    Amount (USD): 3500
    Expected Completion Date: 2027-01-15
    User Stories:

    • As a wallet developer, I want to test the build I intend to ship so I can catch a send failure before release.
      Deliverables:
    • Build selection by configuration, artifact digests, required cases and CI exit status.
    • Two selectable ShapeShift builds and a documented run using the published Linux zecd distribution.
      Acceptance Criteria: A wallet developer or release tester can select the old signer and see the spend from the v6 deposit fail with the original error. With the corrected build, the onward payment mines for each deposit version. The report identifies each build and links each result to its receipt or error.
  • Milestone: 2
    Amount (USD): 5600
    Expected Completion Date: 2027-01-29
    User Stories:

    • As a payout integrator, I want to know whether a wallet can spend a transparent payout created by a transaction that also uses Ironwood.
    • As a wallet tester, I want to repeat the send through the same application a customer can download.
      Deliverables:
    • A mined Ironwood funding case and a confirmed spend of its transparent output in a supported signer or daemon.
    • Completed v5- and v6-funded payment cases in one publisher-distributed consumer wallet, with steps and receipts for each.
      Acceptance Criteria: An integrator can verify the funding transaction, its Ironwood bundle and the exact output spent. A wallet tester can repeat both app cases and verify the final recipient and amount. A shield-first route also identifies the shielding transaction and the wallet record connecting the steps.
  • Milestone: 3
    Amount (USD): 3500
    Expected Completion Date: 2027-04-13
    User Stories:

    • As a release engineer, I want to run the published cases on a clean machine and attach results a colleague can verify offline.
      Deliverables:
    • Tagged release by February 12 with Windows and Linux setup, a CI example, downloadable receipts and a contribution guide.
    • Clean-run results and timings for both systems, followed by 60 days of issue triage and up to 10 hours of maintenance for the published cases.
      Acceptance Criteria: A release engineer or representative can follow the guide on a clean runner, execute a required case, and verify its receipt offline. Both platform runs and their timings are public. At the end of the support period I will publish the issues reported, fixes made and any remaining limitations.

Supporting Documents

Pilot report : six cases on each of two fresh chains, with links to the individual receipts and failures.

Machine-readable results : the wallet cases, transaction IDs, block heights and hashes.

Offline verification instructions : two commands to install the verifier’s dependency and check the archived payments, including signatures and block hashes.

1 Like