BIP44 & BIP32 chain address look-ahead limits



Summary:

The issue of Mycelium HD wallet not finding all funds is attributed to an edge case in the BIP44 spec. When the user created 16 transactions, only the last one was confirmed, leaving unused addresses on the internal/change chain. According to BIP44, there need not be a lookahead on internal chains since they receive coins that come from associated external chains. However, this approach can lead to significant gaps in internal chain address usage, and it is recommended to look ahead on both external and internal chains when performing account discovery. Additionally, the recommended look-ahead of 20 may not be safe enough, so it should be raised to 100 or higher. It is also advisable for BIP44 to recommend wallets fill in gaps of unused chain addresses by looking back from the current tip of the internal chain's index when creating a new change address to mitigate the size of gaps caused by failed transactions.


Updated on: 2023-06-11T04:24:00.420063+00:00