The good news is, in 2012 the developer Pieter Wuille made the BIP32 specification at The bottom on the hierarchical deterministic wallets. Jointly with it, Pieter created a mathematical function to create a master vital from which to derive all other keys in a deterministic way. BIP39 and 44, Alternatively, https://files.fm/u/42yjf8vs7r