The good thing is, in 2012 the developer Pieter Wuille developed the BIP32 specification at The bottom on the hierarchical deterministic wallets. Alongside one another with it, Pieter designed a mathematical function to create a learn essential from which to derive all other keys within a deterministic way. Using BIP44 https://ledbookmark.com/story4486600/5-simple-techniques-for-bip39-seed-phrase