Added a KeyPairFromSec function which creates a new keypair based on the given seckey