The good thing is, in 2012 the developer Pieter Wuille developed the BIP32 specification at the base with the hierarchical deterministic wallets. Alongside one another with it, Pieter produced a mathematical functionality to create a master key from which to derive all other keys in a very deterministic way. Ways https://www.plurk.com/p/3gscismmh8