monero.loveA little love for the network.
← All news

Monero / Wallets / Development

Cake Wallet Addresses Trezor Synchronization Failure Affecting Monero Wallets With Many Outputs

Cake Wallet developers propose batching Monero key-image synchronization requests to address a reported Trezor Safe 7 message-buffer limitation that can prevent users from sending XMR.

A handheld signing device beside a stack of individual payment receipts.

A Cake Wallet user can finish scanning the Monero blockchain, see incoming payments and still get stuck at “Proceed on your device” when trying to send XMR. Omar Hatem traced one such failure to the amount of data Cake asks a Trezor Safe 7 to return in one reply. His proposed correction lets the device answer ten outputs at a time. Cake Wallet pull request 3941

On December 5, 2026 UTC, the pull request for CW-1803 was still a draft. Cake Wallet listed v6.5.4 as its latest stable release. That release requests all transfer details in one synchronization step. The report names the Safe 7. The firmware version and phone operating system remain unknown. The author reported 68 passing SDK tests and said the change still needed a device test. Stable releases

Why two equal balances can behave differently

Suppose one wallet receives 1 XMR in a single output. Another receives the same amount in a hundred separate payouts. The second wallet has a hundred pieces of spend history to account for. A P2Pool miner or a shop that accepts small payments can accumulate that history without ever holding a large balance. A transaction can contain several outputs, so counting transactions in a history screen won't tell you how much data the device must return. P2Pool payouts

A Monero wallet uses its private view key to recognize incoming payments. Recognizing a payment leaves a second question open. Has anyone already spent that output? Each spend publishes a key image. The network can reject a second spend bearing the same image while the ring signature conceals which ring member was spent. A wallet that knows an output's key image can recognize the corresponding spend. Exporting this association to someone else can reveal which of your outputs you spent. Monero view-only wallets

The Trezor holds the private spend key. It can derive the key image and sign a proof for the host without giving the host that private key. A transaction key serves a different purpose in creating or proving a payment. Completing a key-image export neither signs a payment nor broadcasts one. A restored wallet can need a device session even after its blockchain scan reaches the current height. Trezor's Monero integration

What crosses the connection

Cake's Monero wallet calls syncTrezor to export transfer details from the native wallet. Its Trezor.keyImageSync adapter passes the output public key, transaction public keys, output index and subaddress information to the Flutter SDK. The SDK begins one export session by sending the device the total output count, a digest of the ordered transfer details and a wallet derivation path. The firmware asks for confirmation and generates a fresh encryption key for this session. Cake's wallet adapter · Firmware export handler

During each step the device derives the requested images and returns encrypted records in order. It counts the outputs and updates its digest for each output. Only at finalization, after checking the count and digest, does it release the session key. Cake then calls its native encrypted-key-image importer. Transaction construction and device approval of a payment are separate operations. Seeing the export finish tells you nothing about whether a transaction has been sent. Cake's import and signing paths

Why 66 appears in the report

The firmware serializes a 32-byte key image and two 32-byte signature components. Encryption adds a 16-byte authentication tag, making a 112-byte encrypted blob. Its 12-byte nonce travels alongside it. Inside protobuf, each field needs a one-byte tag and a one-byte length. That makes the inner record 128 bytes. The surrounding repeated field adds a tag and a two-byte length, bringing each record's contribution to 131 bytes. Monero message definitions

The Trezor Host Protocol (THP) has separate send and receive buffers. Its memory manager allocates 8,704 bytes per buffer and raises a firmware error if the requested length exceeds capacity. The outbound calculation reserves a three-byte application header and a separate 16-byte transport authentication tag. For this reply, 66 records require 8,646 bytes plus 19, or 8,665 bytes. A 67-record reply needs 8,796 bytes. That arithmetic describes one encoded reply. Request sizes vary with the number of additional public keys, and the transport also has to accommodate the request. The screen a user sees depends on how the application handles the error. THP buffer allocation · SDK transport model

What ten outputs per step changes

Paper slips held in separate bundles by orange bands.

For 100 outputs, the old SDK asks for one reply carrying 13,100 bytes of records. The proposed SDK sends ten steps in the same export session. Each reply carries 1,310 bytes of records and occupies 1,329 bytes with the THP allowance. The initialization and finalization exchanges happen once each. The official Monero Trezor client already uses ten outputs per step. Cake is changing its Flutter dependency and its on-screen error handling. The proposal requires no change to Monero's consensus rules or to the device's firmware. Explore batch sizes · Monero's Trezor client

The new SDK checks the reply type, expects one record per requested output and validates the nonce, blob and final encryption-key lengths. Until every check succeeds it holds the accumulating list in memory. A disconnect during the steps leaves Cake without a partial list to import. The SDK logs output ranges, byte counts and elapsed time. The firmware tracks progress through the output count. Neither mechanism provides a saved checkpoint. A fresh attempt starts a new session. End-to-end recovery, including wallet state after a native import error or a repeat import, still needs verification. Proposed SDK implementation

In Cake's existing sheet, a failed call could leave the device prompt on screen. The proposed syncKeyImages view-model method returns the error text. The sheet's _onContinuePressed handler shows it and re-enables the action. That gives someone who lost a connection a way to reconnect and try again. Repeating an oversized request on the stable build does nothing to reduce its size. Application changes

Which configurations the evidence covers

Trezor lists Cake on iOS for Safe 7 and on Android for Safe 7, Safe 5, Safe 3 and Model T. Only Safe 7 is named in CW-1803. Trezor also lists Monero One on iOS for Safe 7, and the desktop Monero GUI and CLI for Safe 5, Safe 3 and Model T. Those listings establish support for Monero. They supply no reproduction of Cake's failure in another application. Cake desktop has no entry in that compatibility table. Trezor's model and platform table

The v6.5.4 Monero package pins SDK revision 591d4b8. The PR replaces the development pin 7fb7ff7 with b482ffe, which includes the incomplete-response check in e9bfd9c. The upstream tests use a fake device and include a dropped connection, a short final batch and unexpected message types. The author mentions a separate local widget test outside the PR. We independently ran all 68 SDK tests under Flutter 3.35.5. Its dependency resolver changed three packages from the upstream lockfile. In a separate fake-device run, all nine requested counts from one to 500 returned complete, ordered results. The 500-output run used 50 data steps. Neither run exercised physical firmware or constructed a transaction. Stable dependency · Validation commit

If your wallet stalls, preserve the wallet files and recovery backup. Record the Cake version, device model, firmware version, action and visible error for official support. The Trezor setup and recovery guide covers device detection and restored balances. Keep the backup words and key-image export private. The reported failure can block access to the send workflow. It supplies no evidence of stolen funds, a disclosed spend key or an unauthorized transaction. Watch the existing PR and the stable release notes for physical-device results and a released correction. Cake Wallet releases

Support Monero Love

Help keep the public nodes and packages running. Send any amount of XMR.

Scan with a Monero wallet to donate to Monero Love.89hGTKxRVA3AUeKAbCRBt5TMSzq3MQZooNNsezCpNFjp2oeJPRx8AJeGKA8ziHZNqab78f4Vr1ntxhPDxX5298nnGZjHkhm