ZIP-317 wallet outreach discussion
A discussion that wallet vendors need to be contacted ahead of ZIP-317 enforcement led the ZF to take it on.
Agenda summary 10
Zebra update: lightwalletd support and DB size reduction
Zcash Foundation · Marek
- The new lightwalletd support work is being wrapped up and is expected to be in the next release. Deduplicating the note commitment trees saved about 13% of space, and the DB size dropped from about 278GB to 244GB.
- Previously the Sapling and Orchard trees were stored for every block height, even when identical to the previous tree; now only unique trees are stored.
ECC core update: mobile SDK and desktop support scope
Electric Coin Company · Zooko, Kris, Daira
- Nick left ECC, and Zooko now directly handles engineering management and product. The current focus is delivering the mobile SDK, and several bug fixes are being tested.
- Nate said they are writing up the Proof-of-Stake feedback and discussions from Zcon4. The Zcash client backend and zcash_client_sqlite can serve as an SDK targeting desktop.
- Str4d built a minimal CLI wallet for testing on top of this, but production use is not recommended.
- Zooko explained that only the iOS and Android SDKs are officially supported products, and that the bundle of crates to be called Zcash Core Libs is not yet a supported target.
- Daira added that internal interfaces are unstable, so people should follow the changelog.
FROST audit results and demo documentation
Zcash Foundation · Conrado
- NCC's audit of the FROST library is finished, and only medium and low severity issues were found. The medium issue was code that panics in certain situations, and all discovered issues were fixed. PRs awaiting review are expected to be merged by the end of this month or early September.
- Documentation is nearly complete so that the Ywallet-based FROST demo shown at Zcon can be reproduced. FROST can already be used through command-line tools, but messages between participants must be copied manually.
- The goal is to work with wallet developers to get them to support FROST. A document explaining the problem of communication between participants and its solutions is being written.
Zcash Shielded Assets (ZSA) wrap-up and next steps
QEDIT · Vivek
- As discussed at Zcon, an enable ZSAs flag was added to the Orchard implementation so ZSAs can be paused or excluded from coinbase transactions, and the circuit documentation was updated. It has not yet been reflected in the ZIP.
- This flag is tied to is_native_asset; when ZSA is off, is_native_asset is always fixed to true. Daira assessed it as having the same purpose as the existing enableSpends/enableOutputs.
- Work so far was in the Orchard V5 transaction structure, and work has begun on moving to a separate V6 structure. Benchmarking of proof size and proving time for the current circuit has also begun.
- Tests and demos were based on Zcashd, but the team is discussing with Foundation engineers how to support ZSA in Zebra as well. For asset swaps, an initial design was prepared, and using proof aggregation is being looked at.
- The team will also answer the backlog of ZIP comments.
Proof of Stake research and security considerations
Electric Coin Company · Nate, Daira
- It was pointed out that the design presented at Zcon has the drawback that security becomes the minimum of the weaker of its two components. To understand this, the ebb and flow paper is being reviewed with Daira.
- It has not yet been confirmed whether the proposed design fits the ebb and flow paper's model, or whether the paper addresses the problem that attack cost becomes the minimum of the two components.
- Daira pointed out that ebb and flow's transaction reordering (sanitization) is not compatible with the scalability approach they proposed, and that scalability must be considered together when designing PoS.
- The paper does not specify the consensus method for BFT and the longest-chain protocol. PoS for BFT and PoW for the longest chain is likely, but not decided. Nate plans to write a piece for general readers summarizing the Zcon discussion.
Zcash Sustainability Fund update
Shielded Labs / Eiger · Tomek
- Eiger's Rust engineer Tomek and others are working on the ZSF, preparing a total of 3 ZIPs. The first ZIP was submitted last week as zips PR #703 and received first review from Daira and Teor.
- The second ZIP proposes eliminating the 4-year halving and smoothing the issuance curve. It keeps the issuance rate at which about half of the allocation is paid as block rewards every four years.
- As a third ZIP, an additional funding approach that redirects part of transaction fees to the ZSF, without opt-out, is under internal discussion. Zooko asked whether the team would propose full EIP-1559-style fees, and was told it has not been decided.
Zcash Wallet Community Developer update
Zcash Wallet Community · Pacu
- They reviewed many Nighthawk PRs and focused on testing the migration code. When moving from an app based on the old ECC reference wallet to the new version, keys must be migrated automatically or by re-entering the seed.
- They are building a darksidewalletd-based test tool with Zingo!. The 'Second Flush of Enthusiasm' scenario measures behavior when a wallet is reopened one, two or three months later.
- A reproducible Docker compose-based regtest Zcashd environment is nearly done, and documentation and a tutorial will also be left behind. There was a Zecwallet Mobile server outage the day before.
- Pacu plans to write guidelines for offline mode handling and for protecting users when an app service shuts down. Pacu will run the light client working group and is looking at ways to adjust the schedule for attendees around the world.
EIP-1559-style fee discussion
Daira, Nate, Zooko, Pacu, Kris
- Nate said the EIP-1559 approach requires agreement on the current fee rate, and that refunds based on per-block fees are hard in a UTXO structure, making it much more complex than simply redirecting fees.
- Daira also said refunding to anonymous senders is especially difficult. From the Zashi wallet UI perspective, Zooko asked that users be able to know the fee before entering transaction information.
- Daira answered that this is not compatible with ZIP-317. Daira explained that charging the same fee for every transaction regardless of cost makes the network vulnerable to denial-of-service attacks such as sandblasting.
- The current minimum fee is about 0.25 US cents. Nate thought that because EIP-1559 fees rise exponentially, attack costs soar. Daira said 1559-type proposals need sufficient security analysis.
- Zooko mentioned that Vitalik originally proposed EIP-1559 as a Zcash ZIP, and Nate added that Filecoin applied it on mainnet first.
ZIP-317 enforcement, wallet outreach, detection keys
Nate, Kris, Pacu, Jack Gavigan, Dan, Zooko
- Nate said that for a smooth ZIP-317 transition, wallet updates and protocol enforcement must go together, and that outreach to multi-coin wallets such as Coinomi is needed.
- Kris explained that most recent transactions take the form of one Sapling note creating 48 dust-value transparent outputs, an attempt to saturate the mempool by exhausting the unpaid action limit.
- The fix is for wallets to adopt ZIP-317, and ECC decided not to do this kind of outreach going forward. Pacu said that because of impersonation risk, a verifiable entity should do it, and the ZF's Dan agreed to lead.
- Nate relayed that Edge's Paul Puey pays a service provider about 5 cents per user per month in their Monero wallet and has confirmed the value of approaches like detection keys.
- Jack Gavigan suggested covering this on a future call, and Zooko added that Zcash detection keys offer far better privacy than the Monero approach of handing a viewkey to the server.
- Jack Gavigan said they would schedule the NU5 retro after ECC's Emergency Mode ends, and Kris answered that wallet outreach and SDK pre-testing would help the most.
Zcash Foundation Minor Grants second round
Zcash Foundation · Dan
- The second round of the Zcash Foundation Minor Grants program opened the day before. It supports up to $25,000, and the deadline is Monday, September 18.
- Details are available at zfnd.org/minorgrants and in the forum thread.
This summary is based on the original meeting notes; check them for exact details.