<<  >> (p.1752)
    Author Topic: [XMR] Monero - A secure, private, untraceable cryptocurrency  (Read 4675010 times)
    birr
    Hero Member
    *****
    Offline Offline

    Activity: 870
    Merit: 585


    View Profile
    June 28, 2017, 01:27:31 PM
     #35021

    I'm pleased to hear that subaddresses are on the roadmap.  Sounds like it might be a little clumsy to use them, however:

    One slight caveat with this scheme is that when restoring a wallet from the seed, the wallet might miss transfers to subaddresses if they aren't stored in the hashtable yet. To mitigate this issue, for each account, the wallet generates 100 (a constant SUBADDRESS_LOOKAHEAD_MINOR defined in wallet2.h) subaddresses of indices beyond the "fresh" index. The wallet also generates 10 (a constant SUBADDRESS_LOOKAHEAD_MAJOR defined in wallet2.h) accounts beyond the current largest major index. This means that the wallet restoration process is guaranteed to find incoming transfers to subaddresses as long as the major and minor indices of the used subaddresses differ by less than those predefined numbers. Even if the differences are bigger than those, you can still make the wallet recognize the incoming transfers by just expanding the hashtable manually and rescanning the blockchain.
    (from https://github.com/monero-project/monero/pull/2056)

    It sounds a little bit like the way Bitcoin handled change addresses many years ago, before the advent of HD address generation.  Have a table of pre-generated addresses, and make sure you don't run out of them.  It would be nice to have a more elegant solution for monero subadresses, one that eliminates inconvenience and complication.
Page 1751
Viewing Page: 1752