This PR adds restoreKeyPairFromSecretKey function allowing to obtain a keyPair (mainly we need publicKey) from a given secretKey.
The purpose is that wallets, like ZelCore, need to be able to use deterministic derivation of keypairs without storing any values. This method allows wallets use their own secretKey obtaining the needed publicKey respecting derivation path.
In background nacl.sign.keyPair.fromSeed is used.
Test provided.
This PR adds restoreKeyPairFromSecretKey function allowing to obtain a keyPair (mainly we need publicKey) from a given secretKey. The purpose is that wallets, like ZelCore, need to be able to use deterministic derivation of keypairs without storing any values. This method allows wallets use their own secretKey obtaining the needed publicKey respecting derivation path. In background nacl.sign.keyPair.fromSeed is used. Test provided.