def gen_keys(self, keydir=None, keyname=None, keysize=None, user=None):
        import libnacl.public
        d_key = libnacl.dual.DualSecret()
        keydir, keyname, _, _ = self._get_key_attrs(keydir, keyname,
                                                    keysize, user)
        path = '{0}.key'.format(os.path.join(
            keydir,
            keyname))
        d_key.save(path, 'msgpack')
Get a list of unique times in the file
dataset/ETHPy150Open saltstack/salt/salt/key.py/RaetKey.gen_keys--crossover with--dataset/ETHPy150Open modflowpy/flopy/flopy/utils/datafile.py/LayerFile.get_times