Split recoverKeyPair method for testing