From f96114b7fcd648f25fb0350ade1334dd11ce58ac Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Wed, 29 Jan 2020 19:11:50 -0400 Subject: [PATCH] decrypt with correct secret --- services/gunDB/contact-api/streams/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/gunDB/contact-api/streams/index.js b/services/gunDB/contact-api/streams/index.js index 85c7834d..ce5502d3 100644 --- a/services/gunDB/contact-api/streams/index.js +++ b/services/gunDB/contact-api/streams/index.js @@ -139,8 +139,9 @@ const onIncoming = cb => { return } const ourSecret = await SEA.secret(await Utils.pubToEpub(pub), user._.sea) + const mySecret = await Utils.mySecret() - const feed = await SEA.decrypt(encFeed, ourSecret) + const feed = await SEA.decrypt(encFeed, mySecret) if (pubFeedPairsWithIncomingListeners.add(pub + '--' + feed)) { require('../../Mediator')