hdPublicKeyXpub property
- @Deprecated('The xpub is kept out of the event journal; read it from ' 'SecureStorage (wallet_hdpubkey_<walletId>). Will be removed.')
final
Never persisted, and no longer set by the wallet aggregate.
The account xpub exposes every address and the balance of the wallet,
so it is kept only in secure storage (wallet_hdpubkey_<walletId>),
which the aggregate reads when it derives addresses. Earlier releases
also wrote it into this event: such rows still replay and fromMap
still reads the value into this field (so a recovery tool can use it),
but toMap never writes it again (audit 2026-09-14 KM-8).
Implementation
@Deprecated('The xpub is kept out of the event journal; read it from '
'SecureStorage (wallet_hdpubkey_<walletId>). Will be removed.')
final String? hdPublicKeyXpub;