electron-main: Enable encryption for Seshat.

This commit is contained in:
Damir Jelić 2019-11-14 12:13:40 +01:00
parent e9352fca9a
commit b90a94bdd9
1 changed files with 1 additions and 2 deletions

View File

@ -256,8 +256,7 @@ ipcMain.on('seshat', async function(ev, payload) {
let p = path.normalize(path.join(eventStorePath, args[0]));
try {
await makeDir(p);
eventIndex = new Seshat(p);
// eventIndex = new Seshat(p, {passphrase: "DEFAULT_PASSPHRASE"});
eventIndex = new Seshat(p, {passphrase: "DEFAULT_PASSPHRASE"});
console.log("Initialized event store");
} catch (e) {
sendError(payload.id, e);