From 717b570ec95ccde9d7c2cee05800f09ef858a182 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Thu, 8 Oct 2020 07:35:56 -0400 Subject: [PATCH 1/2] remove log --- src/routes.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/routes.js b/src/routes.js index 70cf450a..0e51da48 100644 --- a/src/routes.js +++ b/src/routes.js @@ -3010,7 +3010,6 @@ module.exports = async ( }) => { const keys = path.split('.') const { tryAndWait } = require('../services/gunDB/contact-api/utils') - console.log(keys) return tryAndWait((gun, user) => { // eslint-disable-next-line no-nested-ternary let node = startFromUserGraph From 3a5f3bd04d1cdeb4e12dc74f80f82d03d132ea83 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Thu, 8 Oct 2020 07:36:10 -0400 Subject: [PATCH 2/2] use ePub not pub --- services/gunDB/rpc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/gunDB/rpc.js b/services/gunDB/rpc.js index 3611789b..8d56592d 100644 --- a/services/gunDB/rpc.js +++ b/services/gunDB/rpc.js @@ -43,7 +43,7 @@ const deepDecryptIfNeeded = async (value, publicKey) => { if (user.is.pub === publicKey) { sec = getMySecret() } else { - sec = await SEA.secret(publicKey, user._.sea) + sec = await SEA.secret(await pubToEpub(publicKey), user._.sea) } const decrypted = SEA.decrypt(value, sec)