The good thing is, in 2012 the developer Pieter Wuille created the BIP32 specification at The bottom on the hierarchical deterministic wallets. With each other with it, Pieter created a mathematical operate to make a master key from which to derive all other keys in a very deterministic way. In https://zenwriting.net/keenanctdp/h1-b-unlocking-the-power-of-bip39-a-comprehensive-look-at-word-lists-and