← All calls
ARBORIST#56

Ledger app lacks ZIP-32 support

An audit of the Ledger app raised the issue that it does not support ZIP-32 key derivation.

Agenda summary 9

  1. Arborist Call time change announcement

    Zcash Foundation · Dodger

    • It was announced that Zcon4 registration is underway and filling up quickly. Side programs before and after the event will also be held at Solo House in Barcelona. From August the late slot moves earlier from 22:30 UTC to 21:00 UTC.
    • The change is meant to make it easier for European participants to join. The early slot time stays the same, the existing Zoom link becomes invalid from August, and the new link will be published in early August after Zcon.
  2. ECC core update: Zcashd / lightwalletd / ShardTree

    Electric Coin Company · Daira, Str4d

    • ECC has recently focused on mobile wallet improvements rather than Zcashd. It finished removing every assumption in the lightwalletd code that all blocks are processed in a single order.
    • The last PR is the non-linear scan implementation written by Kris, with Str4d handling testing and review. In the process, many bugs in the shardtree crate and the PR were fixed.
    • The shardtree crate is still unreleased, without a 0.1 yet, and lives in the incrementalmerkletree repository. It was decided to use shardtree instead of the bridge tree for mobile wallets.
    • Because of SQLite constraints, it was judged that a design change to use Arc instead of Rc is needed for parallel processing. Parallelization does not work yet, and the team will try again next week.
    • A caching layer is being written to solve the problem that upgrading existing wallets is as slow as rescanning from scratch. Afterward, the plan is to put it into the Android and iOS SDKs and check performance on real devices.
  3. Zebra 1.0.1 patch release

    Zcash Foundation · Teor

    • Zebra's first patch release, 1.0.1, came out, and everyone, whether on a release candidate or the first stable release, was strongly urged to upgrade. It fixes connection security bugs and several panics and reduces CPU usage.
    • Komodo's dimxy and the Ziggurat team helped with bug reports and testing. Because Rust 1.70 causes a bug at macOS shutdown, macOS builds are no longer produced. It was explained that it still works and the cached state is safe.
  4. Breaking changes between the Zebra and Zcashd libraries

    Zcash Foundation · Teor, Str4d, Daira

    • Zebra is working to match the changes in Zcashd RPC 5.6.0, which correspond to the wallet's fast spendability (renamed spend before sync).
    • An ECC dependency update removed the undocumented serialization format Zebra had used to store note commitment trees, so conversion code from the old DB format to the new one had to be written.
    • Teor asked how breaking changes could be announced in advance. ECC answered to refer to the main-branch entries in the changelog and the announcements in the library channel, but not to rely on the channel alone.
    • Str4d said implicit serialization without an explicit version was the problem and that such an approach will not be used going forward. Zebra also learned the lesson of not storing undocumented interfaces in the DB.
    • Because the chain has grown to hundreds of GB and a full rebuild is now costly, Zebra just merged an in-place upgrade method that is more efficient than a reindex.
  5. FROST specification v14 and demo

    Zcash Foundation · Conrado

    • FROST specification draft 14 came out this week. It reflects a change to include public key hashing in the binding factor computation, and the test vectors were also updated, so it is close to final.
    • Chelsea found that the design of the re-randomization crate can be simplified. Layering the re-randomized version on top of basic FROST means FROST itself does not need to be modified.
    • In the ongoing audit, the ed448-goldilocks crate had 3 non-serious bugs, which were already fixed. The next audit target is FROST core.
    • A developer-oriented demo community call on the challenges of integrating FROST with Zcash wallets will be held next week, and there will also be a FROST wallet session at Zcon.
  6. Shielded Labs starts developing the Zcash Sustainability Fund

    Shielded Labs · Jason McGee, MArc Henderson

    • Shielded Labs began developing the Zcash Sustainability Fund. After gathering community input for several months, it hired two engineers from Equilibrium Group as contractors.
    • The first milestone is writing two ZIPs. One creates the sustainability fund at the protocol level, and the other modifies the issuance schedule.
    • It will follow the ZIP-0 process, and the ZIP editors advised discussing in the #zips channel on the R&D Discord and opening a draft PR first to refine it together.
  7. ZSF ZIP editing process Q&A

    Zcash Foundation · Teor, Daira, Deirdre, MArc Henderson

    • The ZIP editors said that stacking commits in a single PR is easier to review than opening a new PR for every revision. Two tightly coupled ZIPs are best bundled in one PR, while loosely related ones can use two PRs.
    • Block header changes affect existing ZIPs and the protocol spec written in LaTeX. Updating the spec may go in the same PR but is not required, and ensuring consistency is the editors' responsibility.
    • Daira advised avoiding block header changes if possible and, if needed, following the existing extension approach of the hashBlockCommitments field.
    • Teor asked what support would be available for an initial implementation in Zebra, and it was agreed to discuss the Rust implementation around August 13, after Zcon.
  8. Ziggurat red team update

    Ziggurat · MArc Henderson

    • The Zebra bugs mentioned earlier were found in a red team exercise Ziggurat ran on testnet, which found 4 of differing severity. The results will be published in a blog post.
    • The Zebra side wanted to retest after this release or the next, and Ziggurat answered that it is better to retest once after fixes are done on both nodes. Teor asked to be told one or two weeks ahead of the next exercise.
    • This is because setting up enough Zebra instances on the testnet takes several days.
  9. Ledger app audit and the ZIP-32 support problem

    Taylor Hornby, Str4d, Daira, Conrado, Dodger

    • Taylor Hornby finished auditing Hanh's Ledger hardware wallet app. The key problem raised was that the Ledger API does not support ZIP-32 key and address derivation.
    • The app currently makes shielded keys from transparent keys derived with BIP-32, and if released as is, seed phrases will not be compatible between wallets.
    • Str4d proposed that since Blake2b is already in the firmware, only ZIP-32 derivation for Orchard needs to be implemented, and that generalizing it to BIP-32-style hardened-only derivation would let other chains use it too.
    • As a second-best option, the Zondax approach was introduced. It uses the key at an arbitrary BIP-32 path as the root seed of a ZIP-32 key tree, and can be exported to external wallets.
    • The drawbacks are that transparent addresses differ from the existing Ledger Zcash app, requiring a transfer of funds, and that external seed phrases cannot be imported into Ledger.
    • Dodger said they are communicating with Ledger about obstacles to app submission, so now is not the time to request changes, and suggested raising it when there is progress.

This summary is based on the original meeting notes; check them for exact details.